/* --- IMPOSTAZIONI DI BASE --- */
body {
    margin: 0;
    background-color: black;
    color: white;
    font-family: "Century Gothic", sans-serif;
    font-family: "Century Gothic", "Gill Sans", sans-serif;
    font-weight: bold;
    font-style: italic;
    height: 100vh;
    position: relative;
}

/* --- LOGO E CLAIM --- */
.header {
    position: absolute;
    top: 20px;
    left: 50px;
}

.logo {
    height: 60px; /* Regoleremo più avanti */
}

.claim {
    font-style: italic;
    font-weight: bold;
    margin-top: 10px;
    font-size: 50px;
    line-height: 1.2; /* compatta leggermente le due righe */
}

/* --- TESTO IN BASSO A SINISTRA NUVOLE DI LUOGHI --- */
.footer-text {
    position: absolute;
    bottom: 40px;
    left: 50px;
    font-style: italic;
    font-weight: bold;
    font-size: 120px;
}

/* --- VIDEO DI SFONDO --- */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;       /* Adatta il video allo schermo */
    z-index: -1;             /* Manda il video dietro a tutto */
    filter: brightness(50%); /* Oscura leggermente per far risaltare il testo */
}

/* --- MENU ORIZZONTALE IN ALTO --- */
.main-menu {
    position: absolute;
    top: 30px; /* allineato verticalmente con il logo */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.main-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 40px; /* distanza tra le voci */
}

.main-menu li {
    display: inline-block;
}

.main-menu a {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    color: white;
    font-family: "Century Gothic", "Gill Sans", sans-serif;
    font-weight: bold;
    font-style: normal; /* niente corsivo */
    font-size: 20px;
    border-radius: 15px; /* bordi smussati */
    background-color: rgba(255, 255, 255, 0.15); /* bianco trasparente */
    transition: all 0.3s ease;
}

/* Effetti al passaggio del mouse */
.main-menu a:hover {
    transform: scale(1.08);
    background-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* --- MAPPA DELL’ITALIA --- */

/* --- MAPPA DELL’ITALIA NELLA HOME (DESTRA) --- */
.mappa-container {
  position: fixed;
  top: 50%;
  right: 50px;           /* 🔹 stessa distanza che usi a sinistra per logo e testi */
  transform: translateY(-50%);
  width: 30%;            /* 🔹 regola qui la grandezza */
  max-width: 750px;
  z-index: 3;
}

.mappa-container svg {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Aspetto delle regioni --- */
.mappa-container svg path {
  fill: rgba(0, 0, 0, 0.5);
  stroke: white;
  stroke-width: 1.2px;
  transition: all 0.3s ease;
}

.mappa-container svg path:hover {
  fill: rgba(255, 255, 255, 0.8);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
  cursor: pointer;
}
/* --- MENU A TENDINA ELEGANTE (VERSIONE FINALE) --- */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Freccetta */
.arrow {
    transition: transform 0.3s ease;
}

/* --- CONTENITORE UNICO DEL MENU A TENDINA --- */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    right: 0;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    width: 220px;
    text-align: right;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.25);

    /* 🔹 forza il layout a blocchi normali */
    display: block !important;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

/* --- VOCI INTERNE --- */
.dropdown-menu li {
    display: block;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

/* --- LINK INTERNI --- */
.dropdown-menu li a {
    display: block;
    padding: 0 20px 0 0; /* lascia solo il padding orizzontale */
    margin: 0;
    color: white;
    text-decoration: none;
    font-family: "Century Gothic", "Gill Sans", sans-serif;
    font-weight: bold;
    font-style: normal;
    text-align: right;
    background: none;
    border: none;
    transition: color 0.3s ease;

    /* 🔹 controllo reale della distanza verticale */
    line-height: 1.5em; /* voci più vicine = 1.0 | più lontane = 1.5 */
}

/* --- EFFETTO HOVER MINIMALE --- */
.dropdown-menu li a:hover {
    color: rgba(255, 255, 255, 0.7);
}



/* Hover sobrio sul colore */
.dropdown-menu li a:hover {
    color: rgba(255, 255, 255, 0.7);
    background: none;
    transform: none;
}

/* Hover elegante solo sul colore */
.dropdown-menu li a:hover {
    color: rgba(255, 255, 255, 0.7);
    transform: none;
    background: none;
}

/* Hover elegante solo con il colore */
.dropdown-menu li a:hover {
    color: rgba(255, 255, 255, 0.7); /* 🔆 leggero schiarimento al passaggio */
    transform: none;
    background: none;
}

/* Link interni */
.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    font-family: "Century Gothic", "Gill Sans", sans-serif;
    font-weight: bold;
    font-style: normal;
    transition: background 0.3s ease, transform 0.2s ease;
}

/* Effetto hover sui link */
.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
}

/* --- Stato aperto --- */
.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown.open .arrow {
    transform: rotate(180deg); /* Freccetta ruota verso l'alto */
}

/* --- LOGO CLICCABILE (senza riquadro, effetto elegante) --- */
.logo-link {
    display: inline-block;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.08); /* leggero aumento di scala */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6)); /* alone luminoso */
}
/* Pin borgo: cerchio più grande, solo contorno bianco */
.pin-borgo {
    width: 1.3em;          /* leggermente più grande dei pin normali */
    height: 1.3em;
    border-radius: 50%;    /* cerchio */
    border: 2px solid #fff;
    background-color: transparent; /* nessun riempimento */
}
