*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}
html{
    scroll-behavior:smooth;
}
body{
    color:#333;
    background-color:#faebdc;
    line-height:1.6;
}
section{
    padding:30px 10%;
}


/*#region FONT Styles */
h1{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "WindSong", cursive;
    font-weight:600;
    font-style: normal;
    z-index: 1;
}
h2 {
    font-family: "Poiret One", sans-serif;
    font-weight: 500;
    font-style: normal;
    text-align:center;
    margin-bottom:30px;
    margin-top: 10px;
    font-size:2rem;
}
h3 {
  font-family: "Varela", cursive;
  font-weight:600;
  font-style: normal;
}
h4{
    font-family: 'Poller One', cursive;
    font-weight:400;
    font-size: 25px;
    font-style:normal;
}
h5{
    font-family: 'Lobster', cursive;
    font-weight:400;
    font-size: 22px;
    font-style:normal;
}
p{
   font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
/*#endregion*/
/*#region NAVBAR */
nav{
    position:fixed;
    width:100%;
    height:70px;
    top:0;
    left:0;
    background:rgba(0,0,0,0.6);
    padding:15px 5%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    z-index:1000;
}
.nav-sinistro{
    list-style:none;
    display:flex;
    gap:35px;
    list-style-type: none;
}

.nav-destro{
    list-style:none;
    display:flex;
    gap:20px;
    list-style-type: none;
    margin-left: auto;
}
nav a{
    color:white;
    text-decoration:none;
    font-weight:300;
    transition:0.3s;
    font-size: 1rem; /* oppure 1rem o 1.1rem */
    letter-spacing: 0.2px;
}

nav a:hover{
    color:#d4b48c;
}
nav img {
  width: 25px;
  height: 25px;
  margin-right: 15px;
  transition: transform 0.2s;
  vertical-align: middle;
  filter: invert();
}
.menu-toggle{
    display:none;
    font-size:30px;
    color:white;
    cursor:pointer;
}
/* ICONA 🌐 */
.globe {
    font-size: 0.4rem;
    opacity: 0.6; /* effetto trasparente */
    transition: 0.2s;
}
.globe img{
    width: 18px;
    height: 18px;
}

/* hover leggero (effetto premium) */
.lingua:hover .globe {
    opacity: 0.9;
}

.lingua {
    margin-left: 15px;
    display: flex;
    align-items: center;
    position: relative;

}

.lingua select {
    background: transparent;
    color: white;
    border: none;
    font-size: 0.8rem;
    font-weight: 300;
    font-family: "Raleway", sans-serif; /* uguale al sito */
    
    padding: 2px 18px 2px 4px; /* meno spazio interno */
    cursor: pointer;
    outline: none;
    
    appearance: none; /* rimuove stile base */
    -webkit-appearance: none;
    -moz-appearance: none;

    position: relative;
}
.lingua::after {
    content: "▾";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: white;
    pointer-events: none;
    padding: 2px 4px 2px 4px;
}

/* hover elegante */
.lingua select:hover {
    background: rgba(255,255,255,0.25);
    opacity: 0.7;
}
/* overlay sfondo scuro */
.overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.5);
    opacity:0;
    visibility:hidden;
    transition:0.3s;
    z-index:999;
}
/*#endregion*/
/*#region HEADER-HERO PARALLAX */
header{
    height:100vh;
    background-image:url('Immagini/Ingresso-AI-New.jpg');
    background-size:cover;
    background-position:center;
    background-attachment:fixed; /* PARALLAX */
    display:flex;
    flex-direction: column;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:white;
    padding:150px 20px;
    position: relative;
}
header::after{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    z-index: 0;
    pointer-events: none;    
}
.hero-content{
    position:relative;
    z-index:1;
}
.hero-content img {
   
   width: 250px;
  height: 100px;
}  
header h1{
    font-size:4rem;
    text-shadow: 2px 2px 4px #000000;
}

header p{
    margin:20px 0;
    font-size:1.2rem;
     text-shadow: 2px 2px 4px #000000;
}
.aca-toggle-btn {
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.8);
    border-radius: 8px;
    padding: 12px 28px;
    cursor: pointer;
    z-index: 1;
    position: relative;
    backdrop-filter: blur(4px);
    transition: background 0.2s, transform 0.15s;
    margin-top: 10px;
}
.aca-toggle-btn:hover {
    background: rgba(255,255,255,0.28);
}
.aca-toggle-btn:active {
    transform: scale(0.97);
}

/*#endregion*/
/*#region Verifica Disponibilità */
.aca-wrap {
    font-family: inherit; /* eredita il font del sito */
    padding: 1.5rem 0;
    max-width: 700px;
    width: 100%;
  }
  .aca-row {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    flex-wrap: wrap;
  }
  .aca-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 0 0 auto;
  }

  .aca-field label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    background-color: #a4efc397;
    text-transform: uppercase;
    text-align: left;
    padding-left: 15px;
    color: #4d4b4b; /* ← adatta al colore del tuo sito */
  }
  /* Date: larghezza fissa, mostra solo la data senza spazi vuoti */
  .aca-field.date {
    flex: 0 0 125px;
    min-width: 0;
  }
  /* Ospiti: stretto, basta un numero */
  .aca-field.ospiti {
    flex: 0 0 80px;
    min-width: 0;
  }
  /* Email: prende tutto lo spazio rimanente */
  .aca-field.email {
    flex: 1 1 140px;
    min-width: 160px;
  }
.aca-btn img{
     width: 25px;
    }
  .aca-field input {
    font-family: inherit;
    font-size: 14px;
    color: #222; /* ← adatta */
    background: #f8f4f4;
    border: 1px solid #ccc; /* ← adatta */
    border-radius: 6px;
    padding: 9px 11px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s;
    cursor: pointer;
  }
    .aca-field select {
    font-family: inherit;
    font-size: 14px;
    color: #222; /* ← adatta */
    background: #fff;
    border: 1px solid #ccc; /* ← adatta */
    border-radius: 6px;
    padding: 9px 11px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s;
    cursor: pointer;
  }
  .aca-field input:focus {
    border-color: #888;
  }
  .aca-btn {
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #222; /* ← adatta */
    background:#e9e5e5aa;
    border: 1px solid #222; /* ← adatta */
    border-radius: 6px;
    padding: 5px 11px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s;
    flex-shrink: 0;
    align-self: flex-end; /* ← si allinea in basso come gli altri */
    height: auto;         /* ← si adatta all'altezza del campo vicino */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .aca-btn:hover {
    background: #f5f5f5; /* ← adatta */
  }
  .aca-btn:active {
    transform: scale(0.98);

  }
  .aca-msg {
    margin-top: 8px;
    font-size: 12px;
    min-height: 16px;
    color: #c0392b; /* errore */
  }
  .aca-msg.ok {
    color: #27ae60; /* successo */
  }
/*#endregion*/
/*#region ABOUT */
.about{
    text-align:center;
    background:#f8f8f8;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}
/*#endregion*/
/*#region GALLERY */
.gallery{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
    grid-auto-rows: 10.5rem;
    grid-auto-flow: dense;
    gap: 10px;
    padding: 20px;
}
.gallery figure {
    container: figure / inline-size;
    overflow: hidden;
    display: grid;
    gap: 20px;
    border-radius:10px;
    box-shadow: 0 2px 5px rgba(104, 104, 104, 0.9);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
}

.gallery .gallery-item {
    grid-area: 1 / 1 / -1 / -1;
    display: block;
    text-decoration: none;
}

.gallery img{
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    grid-area: 1 / 1 / -1 / -1;
    transition: transform 0.9s ease;
    transform: scale(1);
    border-radius:10px;
    border: 1px solid white;
    
    display: block;
}

.gallery figure:hover img {
    transform: scale(1.125);
}
/*#endregion*/
/*#region PRICE */
.price{
    display: grid;
    grid-template-columns: 50% 50%;
    justify-content: center;
    gap: 30px;
    padding: 20px;
}

.price div{
    background-color: #f7f9f8;
    align-items: center;
    padding: 40px;
    text-align: center;
    border-radius:10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.347);
    width: auto;
    
}
.price img{
    width: 30px;
    margin-right: 0.5rem;
}

/*#endregion*/

/*#region MODAL CAROUSEL */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.modal.is-open {
    display: block;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.modal__dialog {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
}

.modal__figure {
    margin: 0;
    width: min(1100px, 100%);
    /* dvh = viewport reale su mobile (evita overflow con barra browser) */
    height: min(80dvh, 760px);
    max-height: calc(100dvh - 36px);
    display: grid;
    grid-template-rows: 1fr auto auto;
    gap: 10 px;
    min-height: 0; /* permette alla riga dell'immagine di restringersi */
}
/*#endregion*/
/*#region SERVICES */
.services{
    background:#f8f8f8;
    text-align:center;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.services ul{
    list-style:none;
    column-count: 3; /* Specifica il numero di colonne desiderato (3) */
    column-gap: 38px; /* Aggiunge spazio tra le colonne */
}

.services li{
    margin:15px 0;
    font-size:1.1rem;
}
/*#endregion*/
/*#region DOVE */
#map {
    flex: 1;
    height: 550px;
    border-radius: 12px;
    align-items:center;
    margin-left: 20px;
}
.location_intro {
     grid-column: 1 / -1; /* occupa tutta la larghezza */
     margin-bottom: 20px;
     text-align: center;
}
.location_intro a{
   color:#000;
  text-decoration:none;
}
.location_intro img {
    width: 35px;
    height: 35px;
}
 .location {
    display: grid;
    grid-template-columns: 40% 60%;
    justify-content: space-between; /* Spazio tra testo e immagine */
    align-items:center; /* Allinea verticalmente in alto */           
    max-width: 1200px; /* Larghezza massima della sezione */
    gap: 0.5rem;
    margin: 50px auto; /* Centra la sezione nella pagina e dà margine top/bottom */
    margin-top: 0px;
    align-items:center;
}
.location_content {
    padding-right: 40px; /* Spazio a destra per non toccare l'immagine */
}
.lopcation_content a{
    text-align: center;
}
/* LISTA */
.location__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.loc-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 10px;
    background: #f9f8f8;
    cursor: pointer;
    transition: all 0.25s ease;
}
.loc-item:hover {
    background: #eee;
    transform: translateX(5px);
}
/* ICONE SVG STYLE */
.icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    background: #2b2b2e18;
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
}
.icon img{
    width: 35px;
    height: 35px;
}
.location-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.location-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #f8f8f8;
    transition: all 0.2s ease;
}
.location-item:hover {
    background: #f0f0f0;
    transform: translateX(4px);
}
.location-item img {
    width: 22px;
    height: 22px;
}
.location-item strong {
    display: block;
    font-size: 0.95rem;
}
.location-item span {
    font-size: 0.85rem;
    color: #777;
}
/*#endregion*/
/*#region DISCOVER */
.discover {
    margin-top: 20px;
}

.discover__intro {
    max-width: 700px;
    margin-bottom: 40px;
    margin: auto;
}

.discover h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 10px;
    text-align: center;
}
.discover h3 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.discover p {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}

.discover__section {
    margin-top: 20px;
}
/*#endregion*/
/*#region ACTIVITIES */
.activities {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}
.card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}
.card img {
    width: 100%;
    height: clamp(180px, 25vw, 240px);
    object-fit: cover;
    transition: transform 0.4s ease;
}
.card__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
}
.card:hover img {
    transform: scale(1.08);
}
.card:active {
    transform: scale(0.98);
}
/*#endregion*/
/*#region EVENTS */
.events {
    overflow-x: auto;
    padding-bottom: 10px;
    margin-left: 15px;
    margin-right: 15px;
     scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    position: relative;
    scroll-behavior: smooth;
    cursor: grab;
}
.events-wrapper {
    position: relative;
    overflow: visible;
    padding: 0 25px;
}
.events:active {
    cursor: grabbing;
}
.events__track {
    display: flex;
    gap: 12px;
    scroll-snap-type: x mandatory;
}
.event-card {
    min-width: 240px;
    position: relative;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: block;
    height: 450px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    flex-shrink: 0;
    flex: 0 0 85%; /* mobile: quasi full width */
    transition: transform 0.3s ease;
     scroll-snap-align: start;
}
.event-card img{
    width: 100%;
    height: 280px;
    object-fit: cover; /* Taglia l'immagine senza deformarla */
    transition: transform 0.5s ease;
    display: block;
    margin: 0;
}
.btn-leggi {

    display: inline-block;
    padding: 10px 20px;
    background-color: #bbc2bd35;
    color: #272626;
    border-color: #000;
    border-style:outset;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-leggi:hover {
    background-color: #a6aea8b9;
}
.event-card:hover {
    transform: translateY(-5px);
}

.event-date {
    font-size: 0.8rem;
    color: #888;
}
.events::-webkit-scrollbar {
    display: none;
}
.events__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;

    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 20px;
    cursor: pointer;

    display: grid;
    place-items: center;
}
.events__btn--prev {
    left: 0;
}
.events__btn--next {
    right: 0;
}
/*#endregion*/
/*#region CONTACT */
.contact{
  display: flexbox;
  text-align:center;
  justify-items: center;
  line-height: 2.8;
  background:#f8f8f8;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
 
}
.contact a{
color:#000;
  text-decoration:none;
}

.contact img{
  width: 25px;
  height: 25px;
  margin-right: 15px;
  transition: transform 0.2s;
  vertical-align:middle;
}

.contact img:hover{
   transform: scale(1.15);
}

.social-links {
  display: flex;
  margin-bottom: 15px;
  margin-right: -15px;
}


.social-links img {
  width: 160px;
  height: 40px;
  transition: transform 0.2s;
}

.social-links img:hover {
  transform: scale(1.15);
}
/*#endregion*/
/*#region FOOTER */
footer{
    background:#222;
    color:white;
    text-align:center;
    padding:15px;
}
footer img{
    width: 13px;
    filter: invert();
}
/*#endregion*/

/*#region @Media 1 Phone */

@media (max-width:780px){
header h1{
    font-size:3rem;
}
header {
    background-attachment: scroll;
    }
.aca-row {
      flex-wrap: wrap;
    }
    /* Date: affiancate, metà larghezza ciascuna */
.aca-field.date {
      flex: 1 1 calc(50% - 2px);
    }
    /* Ospiti: piccolo, circa 80px */
.aca-field.ospiti {
      flex: 0 0 80px;
    }
    /* Email: prende il resto accanto a Ospiti */
.aca-field.email ,.aca-btn{
      flex: 1 1 0;
      min-width: 0;
    }
.gallery { 
    padding: 14px 0; }
.gallery { 
    grid-auto-rows: 10.5rem; }
    
.menu-toggle{
    display:block;
    position: absolute;
    right: 20px;
    top: 20px;
}
.events__btn {
    display: none;
    }
.nav-destro{
    position:fixed;
    top:0;
    right:-260px;
    width:260px;
    height:100vh;
    background:#111;
    flex-direction:column;
    align-items:flex-start;
    padding-top:100px;
    padding-left:30px;
    transition:0.4s ease;
    z-index:1001;
}
.nav-destro li{
    margin:15px 0;
}
.nav-destro.active{
    right:0;
}
.lingua {
    position: absolute;
    right: 60px;
    top: 20px;
    align-items:end;
}

.lingua select {
    font-size: 0.9rem;
}
.lingua::after {
    right: 4px;
    transform: translateY(-50%);
    font-size: 0.7rem;
    pointer-events: none;
    padding: 2px 2px 2px 4px;
}
.services ul{
    column-count: 1;
}
.overlay.active{
    opacity:1;
    visibility:visible;
}
.modal__dialog {
    padding: 12px;
}
.modal__figure {
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
}
.modal__btn--prev {
    left: 10px;
}
.modal__btn--next {
    right: 10px;
}
.location{
  grid-template-columns: 1fr; /* una colonna */
}
.location_intro {
    grid-column: auto; /* opzionale */
}
}
/*#endregion*/
/*#region @Media 2 max Phone mini Tablet*/

/* Gallery Desktop: */
@media (min-width: 780px) {
    .gallery figure:nth-child(1) {
        grid-area: span 2 / span 2;
    }

    .gallery figure:nth-child(4n + 1) {
        grid-row: span 2;
    }

    .gallery figure:nth-child(4n + 2) {
        grid-column: span 2;
    }
    .activities {
        grid-template-columns: repeat(2, 1fr);
    }
    .event-card{
          flex: 0 0 55%; /* mobile: quasi full width */
    }
    
}
/*#endregion*/
/*#region @Media 3 laptop/desktop*/

@media (min-width: 992px) {
.activities {
    grid-template-columns: repeat(3, 1fr);
}
.event-card {
    flex: 0 0 300px; /* dimensione fissa elegante */
}
.modal__dialog {
    padding: 0;
}

.modal__figure {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
}

.modal__img {
    border-radius: 0;
}
}
/*#endregion*/
/*#region @Media 4 large laptop/desktop*/

@media (min-width: 1200px) {
.activities {
    grid-template-columns: repeat(4, 1fr);
}

.modal__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    min-height: 0;
}
.modal__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}
.modal__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
    padding: 0;
    cursor: pointer;
}
.modal__dot.is-active {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.95);
}
.modal__dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.modal__caption {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-size: 0.95rem;
    min-height: 1.2em;
}
.modal__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 28px;
    display: grid;
    place-items: center;
    user-select: none;
}
.modal__btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.modal__btn--prev {
    left: 14px;
}

.modal__btn--next {
    right: 14px;
}

.modal__btn--close {
    top: 18px;
    right: 18px;
    transform: none;
    font-size: 20px;
}
}
/*#endregion*/
/*#region @Media iPad landscape */
 
@media (min-width: 769px) and (max-width: 1100px) {
    nav {
        padding: 15px 2%;
    }
    .nav-sinistro {
        gap: 30px;
    }
    .nav-destro {
        gap: 10px;
    }
    nav a {
        font-size: 1rem;
    }
    nav img {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }
}
 
/*#endregion*/
/*#region @Media 5 Hover */
@media (hover: hover) {
    .card:hover img {
        transform: scale(1.08);
    }
}
/*#endregion*/
/*#region FOOTER DEV CREDIT */
.footer-dev {
    font-size: 0.78rem;
    color: #aaa;
    margin-top: 6px;
    font-family: "Raleway", sans-serif;
    font-weight: 300;
    letter-spacing: 0.03em;
}
.footer-dev strong {
    color: #ccc;
    font-weight: 500;
}
.footer-dev a {
    color: #bbb;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    transition: color 0.2s, border-color 0.2s;
}
.footer-dev a:hover {
    color: #d4b48c;
    border-bottom-color: #d4b48c;
}
/*#endregion*/
