/* Reset base */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #082339;
    color: #F1F0EC;
    line-height: 1.6;
    padding: 0;
}


header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #082339;
    padding: 20px 40px;
    border-bottom: 3px solid #FFDE59;
}

/* Logo + titolo */
.logo-title {
    display: flex;
    align-items: center;
}

.logo {
    width: 90px;
    margin-right: 15px;
}

.title-block h1 {
    margin: 0;
    font-size: 1.8em;
    color: #FFDE59;
}

.title-block h1 a {
    text-decoration: none;
    color: #FFDE59;
}

.title-block h2 {
    margin: 5px 0 0;
    font-size: 0.9em;
    color: #F1F0EC;
    line-height: 1.4em;
}

/* Menu in alto a destra */
nav {
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #F1F0EC;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.95em;
}

nav a:hover {
    color: #FFDE59;
    text-decoration: underline;
}

/* Contenuti principali */
main {
    padding: 20px 15px;  /* 20px sopra/sotto, 15px destra/sinistra */
    max-width: 100%;     /* occupa tutta la larghezza */
    margin: 0;           /* niente margini automatici */
}

.content h2 {
    color: #FFDE59;
    margin-bottom: 15px;
}

.alert {
    background-color: #660000;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 0.9em;
}

footer {
    text-align: center;
    font-size: 0.8em;
    padding: 20px;
    color: #999;
    margin-top: 40px;
    border-top: 1px solid #FFDE59;
}
/* ---------------- HEADER ---------------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #082339;
    color: #F1F0EC;
}

.logo-title {
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    margin-right: 15px;
}

.title-block h1, .title-block h2 {
    margin: 0;
}

.title-block h1 a {
    color: #FFDE59;
    text-decoration: none;
}

.title-block h2 {
    font-size: 0.9em;
    color: #F1F0EC;
    line-height: 1.2em;
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #F1F0EC;
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #FFDE59;
    text-decoration: underline;
}

/* ---------------- MISSION ---------------- */
.mission {
    background-color: #F1F0EC;
    color: #082339;
    margin: 20px auto;
    padding: 20px 30px;
    border-radius: 6px;
    max-width: 900px;
}

.mission h2 {
    color: #FFDE59;
    margin-bottom: 10px;
}

/* ---------------- NEWS / ALERT ---------------- */
.news {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 30px;
}

.alert-box {
    background-color: #FFDE59;
    color: #082339;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-weight: bold;
}

/* ---------------- TEAM / MEMBRI ---------------- */
.team {
    max-width: 900px;
    margin: 30px auto;
    padding: 0 30px;
}

.team h2 {
    color: #FFDE59;
    margin-bottom: 15px;
}

.member {
    display: inline-block;
    width: 150px;
    margin-right: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.member img {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    border: 2px solid #FFDE59;
    border-radius: 4px;
}

.member h3 {
    margin: 8px 0 0;
    color: #FFDE59;
    font-size: 1em;
}

.member p {
    margin: 3px 0 0;
    font-size: 0.85em;
    color: #F1F0EC;
}

/* ---------------- FOOTER ---------------- */
footer {
    text-align: center;
    padding: 15px;
    margin-top: 40px;
    border-top: 2px solid #FFDE59;
    color: #F1F0EC;
    font-size: 14px;
}

footer .arg-disclaimer {
    margin-top: 10px;
    font-size: 12px;
    color: #aaa;
    line-height: 1.4em;
}


/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
    .logo-title {
        flex-direction: column;
        align-items: flex-start;
    }

    nav {
        margin-top: 10px;
    }

    .member {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .member {
        width: 100%;
    }
}
/* LIVELLI AREA RISERVATA */
.levels {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.level-box {
    height: 80px;
    background-color: #F1F0EC;
    color: #082339;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 20px;
    border: 3px solid #FFDE59;
    transition: 0.3s;
}

.level-box:hover {
    background-color: #FFDE59;
    color: #082339;
}


.level-box {
    width: 50px;
    height: 50px;
    background-color: #F1F0EC;
    color: #082339;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    border: 2px solid #FFDE59;
    transition: 0.3s;
}

.level-box:hover {
    background-color: #FFDE59;
    color: #082339;
}

.level-section {
    margin-top: 20px;
    padding: 15px;
    border: 2px solid #FFDE59;
    border-radius: 4px;
    background-color: #082339;
    color: #F1F0EC;
}

.results {
    margin-top: 40px;
    padding: 20px;
    border: 2px solid #FFDE59;
    border-radius: 4px;
    background-color: #082339;
    color: #F1F0EC;
}
.results h2 {
    color: #FFDE59;
    margin-bottom: 15px;
}
.results ul {
    list-style: none;
    padding-left: 0;
}
.results li {
    margin: 5px 0;
}

/* BOX AGENZIA */
.about-top {
  margin: 40px;
  padding: 20px;
  color: #F1F0EC;
}

.about-box {
  background: #F1F0EC;
  color: #082339;
  margin: 40px;
  padding: 30px;
  border-radius: 8px;
}

.about-title {
  color: #082339;
  margin-top: 40px;
  font-size: 1.2em;
}

.about-intro {
  margin: 40px;
  margin-top: 50px;
  margin-bottom: 30px;
}

/* HOME GRID */
.home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 20px;
}

.home-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.grid-card {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.grid-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(8, 35, 57, 0.7);
  color: #FFDE59;
  text-align: center;
  padding: 20px;
}

.grid-card h3 {
  margin: 0;
  font-size: 1.5em;
  text-transform: uppercase;
}

.grid-card:hover .overlay {
  background: rgba(8, 35, 57, 0.9);
}

/* PAGINA ERRORE */
.error-box {
  background: #F1F0EC;
  color: #082339;
  text-align: center;
  margin: 50px 20px;
  padding: 40px;
  border-radius: 8px;
}

.error-box h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #082339;
}

.btn-back {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: #082339;
  color: #FFDE59;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  text-transform: uppercase;
}

.btn-back:hover {
  background: #FFDE59;
  color: #082339;
  text-decoration: underline;
}

/* Divisorio generico: */

.section-divider {
    border-top: 2px solid #FFDE59; /* linea gialla */
    margin: 40px 0;               /* distanza verticale sopra e sotto */
    width: 80%;                   /* lunghezza della linea */
    margin-left: auto;
    margin-right: auto;            /* centrato */
}

/* ====== HEADER & LOGO: leggera crescita + mobile ====== */
header { padding: 24px 40px; }            /* un po' più alto */
.logo { width: auto; height: 90px; }      /* logo più visibile */

@media (max-width: 768px) {
  header { padding: 28px 24px; }
  .logo { height: 120px; }                /* ancora più grande su mobile */
  .title-block h1 { font-size: 2rem; }
  .title-block h2 { font-size: 1.05rem; line-height: 1.35em; }
}

/* ====== Margini extra per "Chi siamo" e box M/S/P ====== */
.about-intro { margin: 60px 40px 40px; }  /* più spazio sopra */
.about-box    { margin: 50px 40px; padding: 40px; }

/* ====== Divisore sezioni (già definito, lo rafforziamo un pelo) ====== */
.section-divider { border-top-width: 2px; margin: 48px 0; }

/* --- PAGINA ABOUT --- */
.page-intro {
  margin: 40px auto;
  max-width: 900px;
  color: #F1F0EC;
}

.org-structure {
  margin: 40px auto;
  max-width: 1000px;
  background: #F1F0EC;
  padding: 20px;
  border-radius: 10px;
}

.org-structure h3 {
  color: #082339;
  margin-top: 30px;
  margin-bottom: 15px;
}

.person-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.person-card {
  position: relative;
  flex: 1 1 200px; /* invece di 33%, più compatto */
  max-width: 220px; /* larghezza massima per renderle più piccole */
  min-width: 180px;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.person-card img {
  width: 100%;
  height: auto;
  display: block;
}

.person-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(8, 35, 57, 0.85);
  color: #F1F0EC;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  text-align: center;
  transition: opacity 0.3s ease;
}

.person-card:hover .person-overlay {
  opacity: 1;
}

.detail-card h4 {
  margin: 0;
  font-size: 1.1em;
  color: #FFDE59;
}

.detail-card h5 {
  margin: 5px 0;
  font-size: 0.9em;
  font-weight: bold;
}

.detail-card p {
  font-size: 0.85em;
  line-height: 1.3em;
}




.reserved-title {
    text-align: center;
    color: #FFDE59;
    margin: 20px 0;
    font-size: 2em;
    letter-spacing: 2px;
}









/* Layout generale */
.reserved-container { padding: 20px; }
.reserved-grid { 
    display: flex;
    gap: 20px;
    margin: 0;             /* niente margini extra, ci pensano i 15px del main */
    width: 100%;
    box-sizing: border-box;
}

/* Sidebar = 1/5 della larghezza */
.sidebar { 
    flex: 1; 
    max-width: 20%; 
    border-right: 2px solid #ccc; /* linea grigina divisoria */
    padding-right: 10px;          /* un po' di spazio dal bordo */
}

/* Stile base dei pulsanti nella sidebar */
.sidebar button {
    display: block;
    width: 100%;
    padding: 8px;
    margin-bottom: 6px;
    background: transparent;      /* 🔹 trasparente */
    border: none;
    cursor: pointer;
    text-align: left;
    text-decoration: underline;   /* 🔹 sottolineato */
    color: #FFDE59;                  /* colore del testo */
    transition: background 0.2s, color 0.2s;
}

/* Al passaggio del mouse */
.sidebar button:hover {
    background-color: rgba(255, 222, 89, 0.2); /* giallo leggero trasparente */
    color: #ccc;
}

/* Pulsante selezionato */
.sidebar button.active {
    background-color: #FFDE59; /* giallo pieno */
    color: #000;
    font-weight: bold;
    text-decoration: none;      /* 🔹 niente sottolineatura quando attivo */
}

/* Contenuto = 4/5 della larghezza */
.content-area { 
    flex: 4; 
    min-height: 500px;
}

/* Livelli */
.levels { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.level-box {
    background:#F1F0EC;
    color:#082339;
    padding:10px;
    cursor:pointer;
    border:2px solid #FFDE59;
    text-align:center;
    width:50px;
    transition:0.3s;
}
.level-box:hover { background:#FFDE59; color:#082339; }
.level-box.active { background:#FFDE59; color:#082339; font-weight:bold; }

/* Documenti */
.doc-list { list-style:none; padding:0; margin:0; }
.doc-list li {
    margin-bottom:10px;
    cursor:pointer;
    text-decoration:underline;
    color:#FFDE59;
}
.doc-list li:hover {
    color:#082339;
    background:#FFDE59;
    padding:2px 5px;
    border-radius:3px;
}
.hidden { display:none; }

/* Contenuto a destra */
.doc-image {
    max-width:85%;
    max-height:80vh;
    border:6px solid #ccc;
    box-shadow:6px 6px 10px rgba(0,0,0,0.6);
    display:block;
    margin:auto;
    transform: rotate(0deg);
    transition: transform 0.6s ease-in-out;
}
.doc-iframe {
    width:90%;
    height:80vh;
    border:4px solid #ccc;
    box-shadow:6px 6px 10px rgba(0,0,0,0.6);
    transition: transform 0.6s ease-in-out;
}

/* Responsive */
@media(max-width:768px){
    .reserved-grid { flex-direction:column; margin:10px; }
    .sidebar { width:100%; margin-bottom:20px; }
}
