* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root{
  --primary-bg-color: #f7fbfc;
  --title-color: #000000;

  --link-button-color: #ffffff;
  --link-txt-color: #000000;
  --link-active-bg-color1: #4849a0;
  --link-active-bg-color2: #293d86;
  --link-active-txt-color: #ffffff;

  --card-bg-color: #a0c7cf;
  --card-title-color: #082636;
  --card-subtitle-color: #000000;

  --card-sedi-bg-color: #d9e6ef;
  --card-sedi-subtitle-color: #2c5f7a;

  --footer-primary-color: #4d7d8a;
  --footer-secondary-color: #b4d2d4;
  --footer-text-color: #08264C;
}

html{
  scroll-behavior: smooth;
}

html, body{
  font-size: 100%;
  font-family: "Jost", Arial, sans-serif;
  line-height: 1.5em; 
  background-color: var(--primary-bg-color);
  background-image: url(../../images/landing.jpg);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 16% center;
}

/*-----------------*/
/*AIUTI ALLA NAVIGAZIONE*/
/*-----------------*/

.navigationHelper{
  position: absolute;
  top: 0;
  left: 0;
  z-index: 9999;
}

.navHelper{
  display: inline-block;
  padding: 1em;
  background-color: var(--link-active-bg-color2);
  color: var(--link-active-txt-color);
  text-decoration: none;
  font-weight: bold;
  position: absolute;
  left: -9999px;
}

.navHelper:focus{
  position: static;
  left: auto;
  outline: 3px solid #ff0;
}

/*---------------------*/
/*SEZIONE HEADER E MENU*/
/*---------------------*/

.sticky-header{
  width: 54%;
  margin: 0 auto;
  border-radius: 1.6em;
  position: sticky;
  top: 0.5em;
  z-index: 1000;
  transition: all 0.3s ease;
}

header{
  background-color: transparent;
  height: auto;
  border-radius: 2.4em;
  margin: 0.5em auto;
}

.sticky-header.scrolled {
  background-color: #acd2e6fb;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#menu{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;     
}

#menu ul{
  list-style: none;
  display: flex; 
  align-items: center; 
  justify-content: center;
  gap: 0.8em; 
}

/* Stile comune a tutti i link (bottoni) */
#menu ul li a, 
#card_intro a, 
#card_sedi a, 
.footer-buttons a {
  display: inline-block;
  text-decoration: none;
  background-color: var(--link-button-color); 
  color: var(--link-txt-color);
  border-radius: 1.3em;
  padding: 1.2em;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover comune a tutti i link (bottoni) */
#menu a:hover,
#card_intro a:hover,
#card_sedi a:hover,
.footer-buttons a:hover {
  background: linear-gradient(135deg, var(--link-active-bg-color2) 0%, var(--link-active-bg-color1) 100%);
  color: var(--link-active-txt-color);
}

#menu ul li a{
  border: 2px solid #000000;
}

#menu ul li a#currentLink {
  background: linear-gradient(135deg, var(--link-active-bg-color2) 0%, var(--link-active-bg-color1) 100%);
  color: var(--link-active-txt-color); 
  cursor: default;
}

#logo {
  height: 4.8em; 
  width: auto;
  margin-right: 1em;
}

#linkProfilo, #linkProfiloActive { 
  background-color: transparent;
  padding: 0;
  border-radius: 50%;
  border: 2px solid black;
  margin-left: 1em;
}

#linkProfilo{
  background-color: #ffffff;
}

#linkProfiloActive {
  background: linear-gradient(135deg, var(--link-active-bg-color2) 0%, var(--link-active-bg-color1) 100%);
}

#menu #linkProfilo:hover{
  background: linear-gradient(135deg, var(--link-active-bg-color2) 0%, var(--link-active-bg-color1) 100%);
  color: inherit;
}

#imgProfilo{ 
  height: 3.7em;
  width: 3.7em;
  border-radius: 50%;
  display: block;
}

#burgerInput{
  display: none;
}

.burgerMenu{
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 0.8em;
}

.burgerMenu span{
  width: 30px;
  height: 3px;
  background-color: #000000;
  transition: all 0.3s ease;
}

/*-----------------*/
/*SEZIONE BREADCRUMB*/
/*-----------------*/
#breadcrumb{
  justify-content: center;
  display: flex;
  align-items: center;
  padding: 0.4em 1em; 
  margin: 0em auto; 
  width: fit-content; 
  border-radius: 0.8em;
}

#breadcrumb p{
  color: #000000; 
  font-size: 1.1em;
  margin: 0;
}

#breadcrumb span{   
  color: #000000;
  font-weight: bold; 
}

/*-----------------*/
/*SEZIONE MAIN*/
/*-----------------*/

/*index.html*/

#landing_title{      
  height: calc(100vh - 11em);
  display: flex;
  flex-direction: column;
  padding-top: 4%;
}

#landing_title h1, 
#landing_title h2 {
  color: var(--title-color);
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: 0.04em;
}

#landing_title h1{
  width: 40%;
  font-size: 5em;
  font-weight: 900;
  margin-bottom: 4.5%;
  margin-left: 38%;
}

#landing_title h1 abbr{
  text-decoration: none;
}

#landing_title h2{
  width: 50%;
  text-align: right;
  font-size: 1.7em;
  font-weight: 400;
  margin-left: 32%;
}

.drop{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 6%;
  height: 3.1em;
  background-color: var(--primary-bg-color);
  margin: -3px auto 0;
  border-radius: 1.6em 1.6em 0 0;
  cursor: pointer;
}

.drop span{
  width: 0.2em;
  height: 1.7em;
  background-color: black;
  border-radius: 1em;
}

.drop span:nth-child(1){
  height: 1em;
  transform: rotate(45deg) translate(-7px, -5px);
}

.drop span:nth-child(3){
  height: 1em;
  transform: rotate(-45deg) translate(7px, -5px);
}

main{
  padding-top: 1em;
  padding-bottom: 3em;
  background-color: var(--primary-bg-color);
  width: 100%;
  height: 100%;
}

/* Stile comune per tutte le card */
#card_intro,
#card_unisciti,
#card_sceglierci,
#card_sedi {
  display: flex;
  width: 90%;
  height: 28em;
  margin: 3em auto 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
  border-radius: 1.4em;
}

#card_intro,
#card_unisciti,
#card_sceglierci{
  background-color: var(--card-bg-color);
}

.card_main_title{
  font-size: 2.4em;
  line-height: 1.3em;
  color: var(--card-title-color);
}

#card_intro img,
#card_sceglierci img{
  height: 100%;
  width: 44%;
  object-fit: cover;
}


/* Prima card - INTRO */
#card_intro{
  margin-top: 2.5em;
}

#card_intro div{
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  width: 52%;
  margin-left: 4%;
  padding-right: 2%;
}

#card_intro h2{
  width: 100%;
  text-align: left;
}

#card_intro p{
  font-size: 1.3em;
  line-height: 1.5em;
  color: var(--card-subtitle-color);
}

#card_intro a{
  margin: 0 auto 0 0;
  border: 2px solid #000000;
}

#card_intro img{
  margin-left: auto;
  border-radius: 0 1.4em 1.4em 0;
}

/* Seconda card - UNISCITI*/
#card_unisciti{
  flex-direction: column;
}

#card_unisciti_title{
  margin: 0 auto 1em;
  padding-top: 1em;
  height: 22%;
}

#card_unisciti_title h2{
  margin: auto;
  text-align: center;
}

#card_unisciti_title p{
  font-size: 1.4em;
  line-height: 1.5em;
  margin-top: 0.2em;
} 

#card_unisciti ul{
  list-style-type: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 74%;
  width: 80%;
  margin: 1em auto 0;
  justify-content: space-around;
  padding-bottom: 1.2em;
}

#card_unisciti li{
  display: flex;
  flex-direction: column;
  justify-items: stretch;
  background-color: #ffffff;
  border-radius: 1.2em;
  height: 100%;
  width: 20%;
  transition: all 0.4s ease;
}

#card_unisciti li p{
  margin-top: 0.2em;
  text-align: center;
}

#card_unisciti img{
  border-radius: 1em 1em 0 0;
  height: 88%;
  width: 100%;
  object-fit: cover;
}

#card_unisciti li:hover{
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
  transform: scale(1.05);
}

/* Terza card - PERCHE SCEGLIERCI*/
#card_sceglierci{
  flex-direction: row-reverse;
}

#div_sceglierci{
  width: 49%;
  display: flex;
  flex-direction: column;
  margin-top: 2%;
  margin-right: 3%;
}

#div_sceglierci h2{
  text-align: left;
}

#div_sceglierci ul{
  list-style: none;
  margin-top: 0;
}

#div_sceglierci li{
  margin-top: 1%;
}

#div_sceglierci h3{
  font-size: 1.6em;
  line-height: 1.5em;
  text-align: left;
}

#div_sceglierci p{
  font-size: 1.2em;
  line-height: 1.5em;
}

#card_sceglierci img{
  margin-right: auto;
  border-radius: 1.4em 0 0 1.4em;
}

/* Quarta card - SEDI */
#card_sedi{
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#card_sedi::before{
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url(../../images/torreindex.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
  z-index: 0;
  border-radius: 1.4em;
}

#card_sedi div{
  width: 54%;
  height: fit-content;
  padding: 2em 2em 2.5em;
  background-color: var(--card-sedi-bg-color);
  text-align: center;
  border-radius: 1.4em;
  position: relative;
  z-index: 1;
}

#card_sedi h2{
  font-size: 2em;
  line-height: 1.5em;
  margin-bottom: 0.2em;
}

#card_sedi p{
  margin-bottom: 2em;
  font-size: 1.2em;
  line-height: 1.5em;
  color: var(--card-sedi-subtitle-color);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--footer-primary-color) 0%, var(--footer-secondary-color) 100%);
  color: var(--card-title-color);
  padding: 2em 0 0 0;
}

.footer-buttons {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 2em;
  margin-bottom: 2em;
}

.footer-buttons a{
  text-transform: none;
  padding: 0.8em;
}

.footer-container {
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: row;
}

.left-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 35%;
  margin-left: auto;
}

.vertical-divider {
  width: 2px;
  height: auto;
  background-color: rgba(0, 0, 0, 0.2);
  margin: 0 3em;
}

.right-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 35%;
  margin-right: auto;
  padding-top: 0.6em;
}

.left-footer img {
  height: 6em;
  width: auto;
  margin-bottom: 0.3em;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1em;
  margin: 2em 0;
}

.contatto-item {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.contatto-item .icon {
  width: 2em;
  height: 2em;
}

.contatto-item p {
  margin: 0;
  font-size: 1em;
}

.title-item, .times-item{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 1.2em 0;
}

.title-item h2 {
  color: #000000;
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 0.3em;
}

.title-item abbr {
  text-decoration: none;
}

.title-item p {
  font-size: 1.2em;
  color: var(--footer-text-color);
}

.times-item h3 {
  font-size: 1.1em;
  font-weight: 600;
  margin-bottom: 0.3em;
  text-transform: uppercase;
}

.times-item p {
  font-size: 1em;
  color: var(--footer-text-color);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.4em;
}

.footer-social a {
  width: 3.2em;
  height: 3.2em;
  background-color: var(--link-button-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.footer-social a:hover {
  transform: scale(1.1);
}

.footer-social img {
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  margin: 0;
}

.footer-copyright {
  margin-top: 1.6em;
  padding: 1em 0;
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.footer-copyright p {
  margin: 0;
  font-size: 1em;
  font-weight: 500;
}

.main_std {
    background-color: white;
    padding: 40px;
    border-radius: 15px;      /* Arrotondamento leggermente minore del contenitore esterno */
}

.dashboard-container {
    max-width: 800px; /* Larghezza desiderata */
    margin: 0 auto; /* Centratura */
    width: 100%;
}

.page_background{
  background-image: url(../../images/back.jpg);
}

.main_std{
  margin-top: 4%;
  padding: 2em;
}

#title_std{
  margin-top: 2%;
  text-align: center;
}

#title_std h1, 
#title_std h2{
  color: var(--title-color);
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: 0.04em;
}

#title_std h1{
  line-height: 1em;
  font-size: 5em;
  font-weight: 900;
  margin-bottom: 0.4em;
}

#title_std h2{
  font-size: 1.7em;
  font-weight: 400;
}

/*-----------------*/
/* DONA ORA */
/*-----------------*/


/*-----------------*/
/* CHI SIAMO */
/*-----------------*/

.titolo_terziario {
  font-size: 2em;
  font-weight: 600;
  color: #082636;
  margin: 2em 0 1em;
  padding-left: 1em;
  border-left: 5px solid #4f5abb;
}

.testo_std {
  background-color: #ffffff;
  width: 80%;
  margin: 2em auto;
  padding: 2.5em;
  border-radius: 1.4em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  line-height: 1.8em;
}

.testo_std p {
  font-size: 1.2em;
  color: #2c5f7a;
  margin-bottom: 1.2em;
}

.testo_std ul {
  list-style-position: inside;
  margin-left: 1.5em;
  margin-top: 1em;
}

.testo_std li {
  font-size: 1.2em;
  color: #2c5f7a;
  margin-bottom: 0.8em;
  padding-left: 0.5em;
}

.testo_std dl {
  margin-top: 2em;
}

.testo_std dt {
  font-size: 1.4em;
  font-weight: 700;
  color: #082636;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.testo_std dd {
  font-size: 1.2em;
  color: #2c5f7a;
  margin-left: 2em;
  margin-bottom: 1em;
  line-height: 1.8em;
}

#fondatori {
  background: linear-gradient(135deg, #a0c7cf 0%, #d9e6ef 100%);
  width: 80%;
  margin: 3em auto;
  padding: 2.5em;
  border-radius: 1.4em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  text-align: center;
}

#fondatori h4 {
  font-size: 2em;
  font-weight: 700;
  color: #082636;
  margin-bottom: 1em;
}

#fondatori p {
  font-size: 1.2em;
  color: #2c5f7a;
  margin-bottom: 1.5em;
}

#fondatori ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
  max-width: 600px;
  margin: 0 auto;
}

#fondatori li {
  background-color: #ffffff;
  padding: 1.2em;
  border-radius: 0.8em;
  font-size: 1.2em;
  font-weight: 600;
  color: #082636;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#fondatori li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/*-----------------*/
/*  DOVE TROVARCI  */
/*-----------------*/

.search-container {
  width: 90%;
  margin: 2em auto 1em;
  text-align: center;
}

.search-container label {
  display: block;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--card-title-color);
  margin-bottom: 0.5em;
}

.search-container input {
  width: 70%;
  padding: 0.8em 1.2em;
  font-size: 1em;
  border: 2px solid #acd2e6;
  border-radius: 2em;
  background-color: #ffffff;
  transition: all 0.3s ease;
}

.search-container input:focus {
  outline: none;
  border-color: #253096;
  box-shadow: 0 0 0 4px rgba(22, 29, 93, 0.15);
}

.sedi_container{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2em;
  width: 90%;
  margin: 3em auto;
}

@media screen and (max-width: 1000px) {
  .sedi_container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sedi_container abbr{
  text-decoration: none;
}

.sede {
  background-color: #ffffff;
  border-radius: 1.2em;
  padding: 1.5em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sede.hidden {
  display: none;
}

.sede:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sede h3 {
  color: #082636;
  font-size: 1.5em;
  margin-bottom: 1em;
}

.sede img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.8em;
  margin-bottom: 1em;
}

.sede p {
  font-size: 1em;
  line-height: 1.5em;
  margin-bottom: 0.8em;
  color: #2c5f7a;
}

.sede a {
  color: #4f5abb;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.sede a:hover {
  color: #3d4799;
  text-decoration: underline;
}


/*TUTTI I FORM!! */

form, .form_std, #prenotaForm {
  max-width: 380px;
  margin: 1% auto;
  background: var(--card-sedi-bg-color);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(172, 210, 230, 0.4);
  overflow: hidden;
}

fieldset.form, .form_std fieldset, #prenotaForm fieldset {
  border: none;
  margin: 15px;
  padding: 0 0 10px 0;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(172, 210, 230, 0.2);
  overflow: hidden;
}

fieldset.form legend, .form_std legend, #prenotaForm legend {
  width: 100%;
  padding: 18px;
  margin: 0 0 15px 0;
  background: #acd2e6;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  box-sizing: border-box;
  border-radius: 0.8em; 
  display: block;
  border: none;
}

fieldset.form > div, .form_std fieldset > div, #prenotaForm fieldset > div {
  margin: 0 25px 15px 25px;
}

.input_std label, label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c5f7a;
  font-size: 14px;
}

.input_std input, select, textarea, #prenotaForm input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #acd2e6;
  border-radius: 0.8em;
  font-size: 14px;
  background: #f9fcfe;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

#prenotaForm input:focus, 
.input_std input:focus, 
.form_std select:focus,
select:focus,
input[type="date"]:focus {
  outline: none;
  border-color: #4f5abb;
  background: white;
  box-shadow: 0 0 0 4px rgba(172, 210, 230, 0.15);
}

/* Il contenitore serve solo a gestire lo spazio, non deve avere bordi */
.select_sedi {
    width: 100%;
    max-width: 300px; /* Larghezza stretta */
    margin: 10px 0;   /* Allinea a sinistra (0 a destra) */
    display: block;
}

/* Applichiamo lo stile direttamente alla select */
.select_sedi select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #acd2e6;
    border-radius: 0.8em;
    font-size: 14px;
    background: #f9fcfe;
    transition: all 0.3s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.select_sedi select:focus {
    outline: none;
    border-color: #4f5abb;
    background: white;
    box-shadow: 0 0 0 4px rgba(172, 210, 230, 0.15);
}

small, .form_std small {
  display: block;
  margin-top: 5px;
  color: #2C5F7A;
  font-size: 12px;
  line-height: 1.4;
}

.radio_std {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  padding: 10px 14px;
  background: #f9fcfe;
  border: 2px solid #acd2e6;
  border-radius: 0.8em;
  margin-bottom: 10px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.radio_std:hover {
  background: #e8f4f8;
}

.radio_std input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #4f5abb;
  cursor: pointer;
}

.radio_std label {
  margin: 0;
  
  cursor: pointer;
  font-weight: 500;
}
.radio_std:has(input[type="radio"]:checked) {
  border-color: #4f5abb; 
  background: #f9fcfe;
}

.radio_std input[type="radio"]:checked {
  accent-color: #4f5abb;
}

.button_std {
  padding: 0;
  margin: 0;
}

.button_std .button {
  display: inline-block;
  padding: 8px 18px;          
  margin-top: 10px;           
  background-color: #a7cce7;  
  color: #000000;             
  text-decoration: none;      
  font-size: 14px;            
  font-weight: 600;
  border-radius: 0.8em;          
  cursor: pointer;
}

.button_std button, 
.button_std input[type="submit"]{
  width: calc(100% - 30px);
  padding: 16px;
  margin: 20px 15px 15px 15px;
  
  background: #acd2e6;
  color: #1a1a1a;
  
  border: none;
  border-radius: 0.8em;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  box-shadow: 0 4px 15px rgba(172, 210, 230, 0.3);
}

.button_std button:hover, .button_std .button:hover,
.button_std input[type="submit"]:hover {
  background-color: #4f5abb;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(79, 90, 187, 0.4);
}

.button_std button:active, 
.button_std input[type="submit"]:active {
  background-color: #3d4799;
  color: #ffffff;
  transform: scale(0.98);
}

.profile-header {
  display: flex;
  justify-content: center; 
  align-items: flex-start;
  margin-top: 50px;
  margin-bottom: 80px;
  gap: 120px; 
  max-width: 600px; 
  margin-left: auto;
  margin-right: auto;
}


.profile-picture {
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
  width: 130px;
  height: 130px;
  
}

.profile-picture img {
  width: 130%;
  height: 130%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #acd2e6;
  box-shadow: 0 4px 15px rgba(172, 210, 230, 0.3);
  transition: opacity 0.3s ease;
}

.profile-picture.is-default #remove-photo-btn {
    display: none;
}

.profile-picture::after {
  content: 'Modifica Foto';
  position: absolute;
  top: 65%;
  left: 65%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 130%;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; 
}


#imgProfilo.nav-profile-icon {
    height: 3.7em;
    width: 3.7em;
    border-radius: 50%;
    object-fit: cover;
}

.remove-photo {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background-color: #ff4d4d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    font-family: Arial, sans-serif;
}


.remove-photo:focus {
    outline: 3px solid #ff4d4d;
    outline-offset: 2px;
}

.profile-picture:hover .remove-photo {
    opacity: 1;
    transform: scale(1);
}

.remove-photo:hover {
    background-color: #d93636;
    transform: scale(1.1);
}

.profile-picture:hover::after {
  opacity: 1;
}

.profile-picture:hover img {
  opacity: 0.8;
}

.profile-picture input[type="file"] {
  display: none;
}

.button-container {
  margin-top: 30px;   
  right: 50px;
  display: flex;
  flex-direction: column;
  gap: 15px;              
  float: right;           
  margin-left: 20px;      
  max-width: 200px;
}

.btn-custom {
  display: inline-block;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  min-width: unset; 
  margin: 0; 
  padding: 10px 15px; 
  border-radius: 0.8em;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-logout {
    background-color: #acd2e6;
    color: #000000;
}


.btn-logout:hover {
    background-color: #4f5abb;
    color: white;
}

.btn-delete {
    background-color: #e58d8d;
    color: #000000;
}

.btn-delete:hover {
    background-color: #c24242;
    color: white;
}

#disclaimer {
  max-width: 620px;
  margin: 1rem auto;
  margin-top: 8rem;
  padding: 0.6rem 0.9rem;
  background-color: transparent;
  border-left: 2px solid #c62828;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #444;
}

#disclaimer strong {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #111;
}

#disclaimer p {
  margin: 0 0 0.75rem 0;
}

#disclaimer p:last-child {
  margin-bottom: 0;
}
#disclaimer-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #082636;
  margin: 2.5em auto 1em;
  max-width: 80%;
}


@media (max-width: 600px) {
  #disclaimer {
    padding: 1.25rem;
    font-size: 0.9rem;
  }
}

/* Titolo della sezione sobrio */
.titolo-dashboard {
    font-family: 'Jost', sans-serif;
    font-size: 1.4rem;
    color: #1a3a5a;
    margin-bottom: 25px;
    font-weight: 700;
    display: block;
    border-bottom: 2px solid #acd2e6; /* Linea azzurra sottile */
    padding-bottom: 5px;
    width: fit-content;
}

/* Lista dati verticale (Senza griglia) */
.lista_dati {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Contenitore di ogni riga */
.lista_dati div {
    padding: 12px 0;
    border-bottom: 1px solid #f0f4f8; /* Separatore leggerissimo */
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
}

/* Rimuove l'ultimo bordo per pulizia */
.lista_dati div:last-child {
    border-bottom: none;
}

/* Etichette (DT) */
.lista_dati dt {
    width: 180px;      /* Allinea tutti i dati sulla stessa colonna immaginaria */
    font-size: 0.85rem;
    color: #7f8c8d;
    text-transform: uppercase;
    font-weight: 600;
    flex-shrink: 0;    /* Impedisce all'etichetta di restringersi */
}

/* Valori (DD) */
.lista_dati dd {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 500;
}

/* Gruppo Sanguigno sobrio ma chiaro */
.lista_dati dd.evidenziato {
    color: #d90429;
    font-weight: 700;
}

/*-----------------*/
/* TASTO INDIETRO  */
/*-----------------*/

.back-button-container {
  margin-left: 2%;
  text-align: left;
  position: absolute;
}

.back-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #a7cce7; /* Stesso azzurro degli altri bottoni */
  color: #1a1a1a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border-radius: 0.8em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(172, 210, 230, 0.3);
}

.back-button:hover {
  background-color: #4f5abb; /* Blu scuro hover */
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(79, 90, 187, 0.4);
  transform: translateY(-2px);
}