:root {
    --f-font1: "Raleway", sans-serif;
    --f-fontbutton: "Raleway", sans-serif;
    --f-bigtext: "Raleway", sans-serif; /*"Space Mono", monospace;*/
    --f-upper: ;
    --c-bg: #f0f0f0;
    --c-white: #ffffff;
    --c-text: #282828;
    --c-tasti: #5e5e5e;
    --c-tasti-secondari: #c4e77e;
    --c-text-con-sfondo: #deff4e;
    --c-text-secondario: #6c6c6c;
    --c-footer: #ececec;
    --b-radius-big: 24px;
    --b-radius-toggle: 20px;
    --b-border: 0px solid #000000;
    --b-border3d:none;/* 7px 7px 0px #313131;*/
    --m-marginright: 0px;

    /* BOOTSTRAP OVERRIDES */
    --bs-body-line-height: 1.2;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--f-font1);
    font-weight: 700;
    text-transform: var(--f-upper);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.2 !important;
}

/* ELIMINA BARRE SCORRIMENTO BROWSER */
html, body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE / Edge vecchi */
  overflow-x: hidden;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}
.no-userselect {
    -webkit-tap-highlight-color: transparent; /* Rimuove il flash azzurro */
    -webkit-user-select: none; /* Impedisce la selezione del testo su WebKit */
    -moz-user-select: none; /* Impedisce la selezione su Firefox */
    -ms-user-select: none; /* Impedisce la selezione su Edge */
    user-select: none; /* Standard */
    outline: none !important; /* Forza la rimozione del contorno */
    touch-action: manipulation; /* Evita il doppio tap zoom su mobile */
}
.margin-main {
    margin: 0px 41px 0px 41px;
}
@media (max-width: 1024px) {
    .margin-main {
    margin: 0px 27px 0px 27px;
    }
}
@media (max-width: 600px) {
    .margin-main {
    margin: 0px 19px 0px 19px;
    }
}

/* CONTRASTO */
.yeeeep, 
.yeeeep * {
  mix-blend-mode: difference;
  color: #ffffff !important; /* oppure black, difference fa la magia */
}

/* ANIMATION */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(14px); }
}

/* ===========================
   NAVBAR WRAPPER
   =========================== */

.paf-navbar {
    width: 100%;
    padding: 20px 40px;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}

.paf-navbar-inner {
    width: 100%;
    max-width: 1520px;
    padding: 0 10px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
    
}

/* LOGO */

.paf-logo-effect {
    padding: 31.5px 51px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;
}
@media (min-width: 1600px) {
    .paf-logo-effect {
        left: calc((100vw - 1640px) / 2 + 20px);
    }
}
@media (max-width: 1024px) {
    .paf-logo-effect {
        padding: 33px 34px;
    }
}
@media (max-width: 600px) {
    .paf-logo-effect {
    padding: 31px 24px;
    }
}

.paf-logo {
    display: inline-flex;
    align-items: center;
    margin-right: auto;
    
}
.paf-logo-effect-svg {
    width: 91px;
    z-index: 30;
    color: var(--c-text);
}
@media (max-width: 600px) {
.paf-logo-effect-svg {
        width: 88px;
        padding-right: 7px;
    }
}
.paf-logo-svg {
    width: 90px;
    color: rgba(255, 0, 0, 0);

}

@media (max-width: 1024px) {
    .paf-logo-svg {
        width: 86px;
    }
}
@media (max-width: 600px) {
.paf-logo-svg {
        width: 18vw;
        margin-right: 13px;
    }
}

/* ===========================
   DESKTOP SEARCH BAR
   =========================== */

.paf-search-desktop {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    background: white;
    border-radius: var(--b-radius-big);
    padding: 5px 6px 5px 25px;
    max-width: 60%;
    margin: 0 auto;
    border: var(--b-border);
    box-shadow: var(--b-border3d);
}


.paf-search-left {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    flex: 1;
}


.paf-search-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: Roboto Condensed, sans-serif ;
    font-weight: 400;
    font-size: 15px;
    text-transform: uppercase;
    color: var(--c-text);
    cursor: pointer;
    padding: 10px 0;             /* allarga area */
    flex: 1;                     /* ogni sezione prende spazio */
}
/* Evita che il testo/icone "stringano" l'area cliccabile */
.paf-search-item span,
.paf-search-item svg {
    pointer-events: none;        /* evita click su icona/testo */
}
.paf-search-divider {
    flex: 0 0 auto;
}

.paf-search-label {
    white-space: nowrap;
}

.paf-search-divider {
    width: 1px;
    height: 20px;
    background: rgba(0, 0, 0, 0.18);
}

.paf-search-submit {
    margin-left: auto;
    width: 42px;
    height: 42px;
    border-radius: 30px;
    border: var(--b-border);
    background: var(--c-tasti);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    filter: brightness(1);
    transition: filter 0.15s ease;
}

.paf-search-submit:hover {
  filter: brightness(0.9);
}

.paf-search-submit:active {
  filter: brightness(0.9);

}



/* SVG base */

.paf-icon {
    width: 16px;
    height: 16px;
    display: block;
    fill: none;
    stroke: black;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.icon-colored
{
    stroke: var(--c-text-con-sfondo);
}
/* ===========================
   RIGHT BUTTONS (DESKTOP)
   =========================== */

.paf-right {
    display: flex;
    align-items: center;
    gap: 0px;
}

.paf-btn-structure {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16.5px 28px 16.5px 25px;
    border-radius: var(--b-radius-big);
    box-shadow: var(--b-border3d);
    background: var(--c-tasti);
    border: var(--b-border);
    cursor: pointer;
    font-family: var(--f-fontbutton);
    font-weight: 600;
    font-size: 15px;
    text-transform: var(--f-upper);
    color: var(--c-text-con-sfondo);
    margin-right: var(--m-marginright);
    filter: brightness(1);
    transition: filter 0.15s ease;
}

.paf-btn-structure:hover {
  filter: brightness(0.9);
}

.paf-btn-structure:active {
  filter: brightness(0.9);

}


.paf-icon-btn1 {
    width: 50px;
    height: 50px;
    border-radius: var(--b-radius-big);
    box-shadow: var(--b-border3d);
    background: var(--c-tasti);
    border: var(--b-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: var(--m-marginright);
    filter: brightness(1);
    transition: filter 0.15s ease;
}

.paf-icon-btn1:hover {
  filter: brightness(0.9);
}

.paf-icon-btn1:active {
  filter: brightness(0.9);

}

.paf-icon-btn2 {
    width: 50px;
    height: 50px;
    border-radius: var(--b-radius-big);
    box-shadow: var(--b-border3d);
    background: var(--c-tasti);
    border: var(--b-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: var(--m-marginright);
    transition: transform 0.3s ease;
    filter: brightness(1);
}
.paf-icon-btn2:hover {
  transform: rotate(180deg);
  filter: brightness(0.9);
}
.paf-icon-btn2:active {
  filter: brightness(0.9);

}
.paf-menu-toggle {
    background: var(--c-tasti);
}

/* Quando menu aperto */

/* LINEA SUPERIORE → diventa diagonale */
.paf-menu-toggle.is-open .paf-burger span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

/* LINEA CENTRALE → sparisce */
.paf-menu-toggle.is-open .paf-burger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

/* LINEA INFERIORE → diventa diagonale opposta */
.paf-menu-toggle.is-open .paf-burger span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}


/* ===========================
   DROPDOWN MENU (DESKTOP + TABLET + MOBILE)
   =========================== */
.paf-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    display: none;
    z-index: 9990; /* sotto la navbar, sopra il resto */
}

.paf-menu-overlay.is-open {
    display: block;
}
.paf-menu-panel {
    position: fixed; 
    top: 91px;
    right: 50px;
    width: 260px;
    background: var(--c-white);
    border-radius: var(--b-radius-big);
    border: var(--b-border);
    box-shadow: var(--b-border3d);
    padding: 29px 29px 29px;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 9998; /* vicino alla navbar */
    animation: fadeUp .35s ease;
}


.paf-menu-panel.is-open {
    display: flex;
}

.paf-menu-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 16px;
}

.paf-menu-divider {
    margin: 10px 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.14);
}

.paf-menu-link-strong {
    font-weight: 500;
    font-size: 15px;
    font-family: var(--f-font1);
    letter-spacing: 0.3px;
}

.paf-menu-section span,
.paf-menu-section div {
    cursor: pointer;
}


/* ===========================
   MOBILE/TABLET SEARCH PILL (“Dove andiamo?”)
   =========================== */

.paf-mobile-search-toggle1 {
    display: none; /* hidden on desktop */
    align-items: center;
    padding: 5.5px 5px 5.5px 24px;
    border-radius: var(--b-radius-big);
    box-shadow: var(--b-border3d);
    border: var(--b-border);
    cursor: pointer;
    font-family: var(--f-fontbutton);
    font-size: 17px;
    font-weight: 700;
    color: var(--c-text);
    margin-left: auto;
    margin-right: var(--m-marginright);
    background-color: white;
    gap: 45px;
}
.paf-mobile-search-toggle2 {
    display: none; /* hidden on desktop */
    align-items: center;
    padding: 5.5px 5px 5.5px 24px;
    border-radius: var(--b-radius-big);
    box-shadow: var(--b-border3d);
    border: var(--b-border);
    cursor: pointer;
    font-family: var(--f-fontbutton);
    font-size: 17px;
    font-weight: 700;
    color: var(--c-text);
    margin-left: auto;
    margin-right: var(--m-marginright);
    background-color: white;
    gap: 45px;
}
@media (max-width: 1024px){
    .paf-mobile-search-toggle2 {
        display:flex;
    }
}
.search-toggle-show {
    transition: opacity .1s ease;
}

.search-toggle-show.show {
    display: flex;
    opacity: 1;
    animation: fadeUp .40s ease;
}

.search-toggle-show.hide {
    animation: fadeDown .3s ease;
    opacity: 0;
}

.paf-mobile-search-text {
    white-space: nowrap;
}

.paf-mobile-search-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius:  var(--b-radius-toggle);
    border: var(--b-border);
    background: var(--c-tasti);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: brightness(1);
    transition: filter 0.15s ease;
    margin-left: auto;
}

.paf-mobile-search-icon-wrap:hover {
  filter: brightness(0.9);
}

.paf-mobile-search-icon-wrap:active {
  filter: brightness(0.9);

}
.paf-hidden {
    animation: fDown 0.3s forwards;
}

.paf-visible {
    animation: fUp 0.3s forwards;
}
/* ANIMATION */
@keyframes fUp {
    from { opacity: 0; transform: translateY(0); }
    to   { opacity: 1; transform: translateY(14px); }
}

@keyframes fDown {
    from { opacity: 1; transform: translateY(14px); }
    to   { opacity: 0; transform: translateY(0); }
}
/* ===========================
   MODALE DI PRENOTAZIONE (TABLET + MOBILE)
   =========================== */

.paf-booking-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: flex-start;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    z-index: 40;
    padding-top: 13vh; 
}

.paf-booking-overlay.is-open {
    display: flex;
}

.paf-booking-module {
    width: 100%;
    max-width: 500px;
    background: var(--c-white);
    box-shadow: var(--b-border3d);
    border-radius: var(--b-radius-big);
    border: var(--b-border);
    padding: 26px 28px 24px;
    position: relative;
    animation: fadeUp .35s ease;
}

.paf-date-wrapper,
.paf-booking-field-wrapper {
    position: relative;
}

.paf-date-click-area {
    position: absolute;
    inset: 0;
    cursor: pointer;
    z-index: 5;
}

.paf-booking-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: var(--b-radius-toggle);
    border: 0.5px solid #dbdbdb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    background: var(--c-white);
}

.paf-booking-title {
    margin: 0 0 17px;
    font-size: 16px;
    font-weight: 800;
}

.paf-booking-field {
    padding: 12px 0;
    font-size: 15px;
    font-family: Roboto Condensed, sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
}

.paf-booking-divider {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.15);
}

.paf-booking-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.paf-booking-submit {
    width: 100%;
    margin-top: 26px;
    padding: 14px;
    border: var(--b-border);
    border-radius: 10px;
    background: var(--c-tasti);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: var(--c-text-con-sfondo);
    filter: brightness(1);
    transition: filter 0.15s ease;
}

.paf-booking-submit:hover {
  filter: brightness(0.9);
}

.paf-booking-submit:active {
  filter: brightness(0.9);

}


/* ====================================
   MODERN BURGER ANIMATION
==================================== */

.paf-burger {
    width: 15px;
    height: 10px;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s ease;
}

.paf-burger span {
    height: 1.8px;
    width: 100%;
    background: var(--c-text-con-sfondo);
    border-radius: var(--b-radius-big);
    display: block;
    transition: 0.4s ease;
    transform-origin: center;
}
/* ===========================
   RESPONSIVE
   =========================== */

/* --- da 1025px in su: Desktop --- */

@media (min-width: 1025px) {
    .paf-search-desktop {
        display: flex;
    }
    .paf-btn-structure {
        display: inline-flex;
    }
}

/* --- fino a 1024px: Tablet & Mobile --- */

@media (max-width: 1024px) {

    .paf-navbar {
        padding: 18px 24px;
    }
    .paf-menu-panel {
        top: 86px;
        right: 34px;
        }
    .paf-navbar-inner {
        gap: 0px;
    }

    .paf-search-desktop {
        display: none;
    }

    .paf-btn-structure {
        display: none;
    }

    .paf-mobile-search-toggle1 {
        display: flex !important;
        opacity: 1 !important;
    }

}

/* --- fino a 600px: Mobile (solo piccoli aggiustamenti) --- */

@media (max-width: 600px) {
    .paf-navbar {
        padding: 19px 14px 19px 11px;
    }
    .paf-mobile-search-toggle1,
    .paf-mobile-search-toggle2 {
        font-size: 16px;
        padding: 6px 8px 6px 20px;
        gap: 17px;
    }
    .paf-booking-module {
        max-width: 600px;
        width: calc(100% - 48px);
    }
    .paf-menu-panel {
        right: 22px;
        }
}

/*
============================================
FISSI SOTTO
============================================*/

/* --- BOTTOM RIGHT: always visible --- */

.paf-bottom-face {
    position: fixed;
    right: 33px;
    bottom: 17px;
    border: none;
    background: transparent; /* niente sfondo */
    padding: 0;
    cursor: pointer;
    z-index: 9999;
}

.paf-bottom-face img {
    width: 76px;
    height: 76px;
    display: block;
}

@media (max-width: 1024px) {
    .paf-bottom-face {
    right: 17px;
    bottom: 24px;
    }
}

/* FOTO CHE RUOTANO =======================

==========================================*/
.hero-section {
  position: relative;
  z-index: 5;
  margin-bottom: 0;
}
.img-wrapper {
  position: absolute;
  width: 200px;         
  aspect-ratio: 3 / 4; /* proporzione fissa */
  overflow: hidden;
  border-radius: 0px;
  transform-origin: center;
margin-bottom: 0;
  
  
}
.hero-images {
  position: absolute;
  width: 100%;
  pointer-events: none;
  z-index: 5;

}
.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;

}
.img-1 { top: -50px; right: 460px; transform: rotate(-7deg); }/* right aumentato di 70  */
.img-2 { top: 120px; right: 610px; transform: rotate(1deg); }/* right aumentato di 50 */
.img-3 { top: 204px; right: 800px; transform: rotate(3deg); }/* right aumentato di 50  */

@media (max-width: 1024px) {
    .img-wrapper {
    width: 220px;
    }

  .img-1 { top: 165px; right: 2%; transform: rotate(-6deg);}
  .img-2 { top: 380px; right: 19%;}
  .img-3 { top: 590px; right: 40%; }
}
@media (max-width: 600px) {
    .img-wrapper {
    width: 190px;
    }
  .img-1 { top: 152px; left: 56%; transform: rotate(4deg); }
  .img-2 { top: 358px; left: 25%;}
  .img-3 { top: 530px; left: -1%; transform: rotate(1deg); }
}



/* ====================================
  QUI PARTE IL MAIN
==================================== */

.paf-container {
    width: 100%;
    max-width: 1600px;
    padding: 0 0px;
    margin: 0 auto;
    padding-top: 100px;

}
@media (max-width: 1024px) {
    .paf-container {
    padding-top: 96px;
    }
}
@media (max-width: 600px) {
    .paf-container {
    padding-top: 90px;
    }
}
.area1 {
    padding-top: 25px;
}
@media (max-width: 1024px) {
    .area1 {
    padding-top: 20px;
    }
}
@media (max-width: 600px) {
    .area1 {
    padding-top: 18px;
    }
}

h1 {
    font-family: var(--f-bigtext);
    font-weight: 1000;
    font-size: 100px;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -0.02em;
    white-space: nowrap;
    z-index: 5;
    position: relative;
    padding: 0 5px;
}
@media (max-width: 1024px) {
    h1 {
    padding: 0 0.5px;
    font-size:90px;
    }
}
@media (max-width: 600px) {
    h1 {
    font-size: 15vw;
    padding: 0 1px;
    }
}

h2 {
    font-family: var(--f-bigtext);
    font-weight: 800;
    font-size: 20px;
    text-align: left;
    line-height: 1.1;
    letter-spacing: -0.01em;
    z-index: 5;
    position: relative;
    padding: 0 2.5px;
}
@media (max-width: 1024px) {
    h2 {
    font-size:20px;
    }
}
@media (max-width: 600px) {
    h2 {
    font-size: 19px;

    }
}
.spacemain{
    margin-bottom:-5.5em;
}
@media (max-width: 1024px) {
    .spacemain {
    margin-bottom: 30px;
    }
}
@media (max-width: 600px) {
    .spacemain {
    margin-bottom: 15px;
    }
}
.text-container {
  overflow: hidden; /* Nasconde la parte del testo che è fuori dal contenitore */
}
h1.animated-text {

  transform: translateY(1em);
  animation: slide-up 1s cubic-bezier(0.25, 0.8, 0.25, 1) 0s forwards;
}
h1.animated-text2 {
  
  transform: translateY(1em);
  animation: slide-up2 1s cubic-bezier(0.25, 0.8, 0.25, 1) 0.1s forwards;
}
/* Keyframes per animare l'effetto */
@keyframes slide-up {
  0% {
    transform: translateY(1em); 
    
  }

  100% {
    transform: translateY(0); 

  }
}
/* Keyframes per animare l'effetto */
@keyframes slide-up2 {
  0% {
    transform: translateY(1em); 

  }

  100% {
    transform: translateY(0); 
  }
}

/* ====================================
  TESTI BIRBANTELLI
==================================== */
h3 {
    font-size: 17px;
    letter-spacing: -0.0em;
    font-weight: 800;
    position: relative;
    z-index: 30;
}
@media (max-width: 1024px) {
    h3 {
    font-size: 16px;
    }
}

.text-h3 {
  width: 100%;
  margin-bottom: 0;
  display: flex;
  justify-content: flex-end; /* il contenitore sta a sinistra */
  padding-right: 100px;
}

.content-h3 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 290px;
  text-align: right;
  margin-bottom: 0;

}
@media (max-width: 1024px) {
    .content-h3 {
    width: 60%;
    }
    .text-h3 {
    padding-right: 60px;
    padding-top: 40px;
    }
}
@media (max-width: 600px) {
    .content-h3 {
    width: 70%;
    }
}
.content-h3 img {
    margin-top: -5em;
    margin-right: 6em;
    width: 36px;
    height: 36px; 
    display: block;
    position: absolute;
}
@media (max-width: 600px) {
    .content-h3 img {
    width: 33px;
    height: 33px; 
    }
}

/* Dove andiamo del MAIN */
.wrap-search-main {
    display: none;
}

.paf-mobile-search-main {
    display: none;
    background-color: white;
    z-index: 30;
    padding: 9px 9px 9px 21px!important;
    border-radius:var(--b-radius-big);
    align-items: center;
    box-shadow: var(--b-border3d);
    border: var(--b-border);
    cursor: pointer;
    font-family: var(--f-fontbutton);
    font-size: 17px;
    font-weight: 700;
    color: var(--c-text);
    }


/* mostra SOLO su mobile/tablet */
@media (max-width: 1024px) {
    .wrap-search-main {
        display: block;
    }
    .paf-mobile-search-main {
        margin: 0px auto 25px !important;
        position: relative;
        display: flex;     
        width: 100%;
        transform: scale(1.1);
        justify-content: flex-start;
        align-items: center; 
    }
}
@media (max-width: 600px) {
    .paf-mobile-search-main {
        margin: 0px auto 37px !important;
        padding: 7px 7px 7px 22px !important;
        gap: 18px;
    }
}
.wrap-search-main{
    margin: 0 6px 0 6px;
}
@media (max-width: 600px) {
.wrap-search-main{
    margin: 0 4px 0 4px;
}
}
/* EFFETTO MOVIMENTO.   */
.moving {
    position: relative;
    animation-name: move;
    animation-duration: 1.5s;
    animation-iteration-count: infinite;
}
@keyframes move {
    0%  { left: 0px; top: 0px;}
    50% { left: 0px; top: 5px;}
    100% { left: 0px; top: 0px;}
}

/* TESTO SCORREVOLE */
.marquee-wrap {
    width: 100vw;
    overflow: hidden;
    white-space: nowrap;
    margin-left: 50%; /* annullare il padding parent */
    transform: translateX(-50%);
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 40px;
    margin-bottom: 40px;
    z-index: 1;
}
@media (max-width: 1024px) {
    .marquee-wrap {
    margin-top: 0vh;
    margin-bottom: 15vh;
    }
}
@media (max-width: 600px) {
    .marquee-wrap {
    margin-bottom: 15vh;
    }
}
.marquee-content {
    display: inline-flex;
    width: fit-content;
    animation: scroll-loop 55s linear infinite;
    will-change: transform;
    margin-top: 0px;
}

.marquee-content h3 {
    display: inline-block;
    white-space: nowrap;
}

@keyframes scroll-loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/*  CARD SCROLLABILI - STRUTTURE ============================*/


.paf-hscroll {
    width: 100%;
    box-sizing: border-box;
    scroll-padding-left: 51px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;   /* IE / Edge */
    scrollbar-width: none;      /* Firefox */
}
.paf-hscroll::-webkit-scrollbar {
    display: none;              /* Chrome / Safari / Opera */
}

.paf-hscroll-inner {
    margin: 0;
    display: flex;
    gap: 24px;
}
.paf-hscroll-inner > .paf-card:first-child {
    margin-left: 51px;  /* margine iniziale */
}

/* CARD */
.paf-card {
    flex: 0 0 230px;
    background: transparent;
    overflow: hidden;
    scroll-snap-align: start;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

/* IMG */
.paf-card-img img {
    width: 100%;
    object-fit: cover !important;
    display: block !important;
    border-radius: 10px;
}

@media (min-width: 1025px) {
    .paf-card-img img {
        height: 230px !important;
    }
}

/* RESPONSIVE RICERCA */

.paf-card-img:hover {
  filter: brightness(0.8);
}

.paf-card-img:active {
  filter: brightness(0.8);

}
.paf-card-img {
    position: relative;
}

/* BODY */
.paf-card-body {
    padding: 0.6em 0;
}

/* TOP (prezzo + tipo) */
.paf-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4em;
}
.paf-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #ffffffdf;
    color: var(--c-text);
    font-size: 12px;
    font-weight: 600;
    padding: 0.4em 0.9em;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 2;
    pointer-events: none;
}
.paf-price {
    background: var(--c-tasti);
    color: var(--c-text-con-sfondo);
    font-size: 13px;
    font-family: var(--f-font1);
    font-weight: 600;
    padding: 0.35em 0.9em;
    border-radius: 0.8em;
}

.paf-type {
    font-weight: 500;
    font-size: 13px;
    border-radius: 24px;
    padding: 0.3em 0.8em;
    border: 1px solid var(--c-text);
    margin-bottom: 0;
}
.paf-inline {
    display: inline-flex;
    align-items: center;

}

.paf-inline svg {
    flex-shrink: 0;
    width: 1em;
    height: 1em;
}
/* LOCATION */
.paf-loc {
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 0.2em;
    margin: 0 0 0.5em 0;
}
.paf-loc svg{
    width: 0.9em !important;
    height: 0.9em !important;
    
}
.paf-dettagli {
    background: var(--c-tasti);
    color: var(--c-text);
    font-size: 14px;
    text-align: center;
    font-family: var(--f-font1);
    font-weight: 800;
    padding: 0.45em 1.3em;
    margin-bottom: 0.6em;
    border-radius: var(--b-radius-big);
    filter: brightness(1);
    transition: filter 0.15s ease;
}

.paf-dettagli:hover {
  filter: brightness(0.9);
}

.paf-dettagli:active {
  filter: brightness(0.9);
}


/* TITOLO */
.paf-title {
    font-family: Roboto Condensed, sans-serif;
    text-transform: uppercase;
    font-weight: 300;
    margin: 0 0 0 0;
    font-size: 16px;
    white-space: nowrap;

}

/* INFO ICONS */
.paf-info {
    display: flex;
    align-items: center;
    gap: 3.5em;
    font-family: Roboto Condensed, sans-serif;
    text-transform: uppercase;
    font-size: 15px;
    font-weight: 300;
    color: var(--c-text);
    margin-bottom: 0.3em;
}

.paf-info img {
    width: 0.9em;
    margin-right: 0.1em;
}
.type-title {
    margin: 30px 0 0 52px;
    padding: 0;
}
.truncate {
  display: inline-block;      /* o block a seconda del layout */
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;    /* qui appaiono i tre puntini (...) */
  vertical-align: middle;
}

@media (max-width: 1024px) {
    .type-title {
        margin: 38px 0 0 33px;
    }
}
@media (max-width: 600px) {
    .type-title {
        margin: 35px 0 0 23px;
    }
}
/* RESPONSIVE */
@media (max-width: 1024px) {
    .paf-hscroll {
        scroll-padding-left: 51px;
    }
    .paf-hscroll-inner > .paf-card:first-child {
        margin-left: 34px;  /* margine iniziale */
    }
    .paf-hscroll-inner {
        gap: 20px;
    }
    .paf-card {
        flex: 0 0 230px;
    }
    .paf-card-img img {
        height: 230px;
    }
}
@media (max-width: 600px) {

    .paf-card {
        flex: 0 0 151px;
    }
    .paf-card-img img {
        height: 151px;
    }
    .paf-hscroll-inner > .paf-card:first-child {
    margin-left: 24px;
    }
    .paf-info {
        font-size: 11.5px;
        gap: 2em;
    }
    .paf-title {
        font-size: 15px;
    }
    .paf-hscroll-inner {
        gap: 12px;
    }
    .paf-type {
        font-size: 10px;
    }
    .paf-price {
        font-size: 10px;
    }
    .paf-badge {
        font-size: 11px;
        top: 12px;
        left: 12px;
    }
    .paf-loc {
        font-size: 13px;
    }
    .paf-loc svg{
        width: 0.8em !important;
        height: 0.8em !important;
        
    }
}

/* ARROW */

/* Wrapper per posizionare frecce */
.paf-hscroll-wrap {
  position: relative;
}

/* Bottoni freccia */
.paf-arrow {
  position: absolute;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: none; 
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  background: var(--c-tasti); 
  color: var(--c-text-con-sfondo);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform .12s ease, opacity .12s ease;
  padding: 0;
  stroke-width: 4px;
}
.top-arrow1{
  top: 36.5%;
}
.top-arrow2{
  top: 40%;
}
/* posizioni */
.paf-arrow-left  { left: 25px; }
.paf-arrow-right { right: 50px; }

/* effetto hover/focus */
.paf-arrow:hover,
.paf-arrow:focus {
  transform: translateY(-50%) scale(1.04);
  outline: none;
}

/* stato disabilitato */
.paf-arrow[disabled] {
  opacity: 0;
  pointer-events: none;
}

/* Mostra frecce SOLO su dispositivi con puntatore 'fine' (desktop) */
@media (hover: hover) and (pointer: fine) {
  .paf-arrow {
    display: inline-flex;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity .14s ease, transform .12s ease;
  }

  .paf-hscroll-wrap:hover .paf-arrow,
  .paf-hscroll-wrap:focus-within .paf-arrow {
    opacity: 1;
    pointer-events: auto;
  }

  .paf-arrow[disabled] {
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* ingrandimento al passaggio sulla singola freccia */
  .paf-hscroll-wrap .paf-arrow:hover,
  .paf-hscroll-wrap .paf-arrow:focus {
    transform: translateY(-50%) scale(1.04);
  }
}

/* Piccole regolazioni per schermi stretti (opzionale) */
@media (max-width: 1024px) {
  .paf-arrow { display: none !important; }
}
/* Nascondi definitivamente le frecce su device touch / schermi stretti */
@media (pointer: coarse), (hover: none) , (max-width: 1024px) {
  .paf-arrow {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
/* Rispetta prefer-reduced-motion: niente animazioni */
@media (prefers-reduced-motion: reduce) {
  .paf-arrow { transition: none; }
}
/* FOOOOOTERRRRRRRR

*/
/* --- COLONNA NEWSLETTER --- */
.paf-footer{
background-color: var(--c-bg);
padding: 0 0 0 0;
}
.footer-container {
    width: 100%;
    max-width: 1700px;

    margin: 0 auto;
}

.footer-newsletter {
    width: 100%;
    max-width: 520px;
}

/* TITOLO */
.ft-news-title {
    font-family: var(--f-font1);
    font-weight: 1000;
    font-size: 38px;
    margin: 0 0 0.1em 0;
    letter-spacing: 0.02em;
    margin-left: -0.1em;
    text-transform: uppercase;
}

/* SOTTOTITOLO */
.ft-news-subtitle {
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.6em;
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
}

.ft-news-eyes {
    width: 26px;
    margin-top: -1.2em;

}

/* --- CAMPO INPUT + BOTTONE --- */
.ft-news-input-row {
    display: flex;
    width: 90%;
    background: #ffffff;
    padding: 5px;
    box-shadow: var(--b-border3d);
    border: var(--b-border);
    border-radius: var(--b-radius-big);
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    margin-right: 15%;
    max-width: 600px;
}

.ft-news-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 16px;
    padding: 12px 12px;
    font-weight: 500;
}

.ft-news-input:focus {
    outline: none;
}

.ft-news-btn {
    flex-shrink: 0;
    background: var(--c-tasti); 
    padding: 12px 23px;
    border: var(--b-border);
    border-radius:30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    color: var(--c-text-con-sfondo);
    filter: brightness(1);
    transition: filter 0.15s ease;
}

.ft-news-btn:hover {
  filter: brightness(0.9);
}

.ft-news-btn:active {
  filter: brightness(0.9);

}


/* PRIVACY */
.ft-news-privacy {
    font-size: 0.8em;
    margin-top: 5px;
    line-height: 1.1;
    font-weight: 400;
    max-width: 4880px;
    padding-right: 10%;
}

/* WRAPPER DELLE 3 COLONNE */
.footer-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    padding: 0 110px 110px 110px;
}

/* Ogni colonna */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 7px;
    
}

/* Larghezze (desktop) */
.col-1 { width: 46%; }
.col-2 { width: 30%; font-size: 15px;} 
.col-3 { width: 24%; } 

/* Titoli */
.footer-col h4 {
    font-size: 15px;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 8px;
}
    .footer-col a {
        text-decoration: none;
        color: inherit;
        display: block;
        font-weight: 400;
        line-height: 1;
        font-size: 16px;
        text-transform: uppercase;
        font-family: Roboto Condensed, sans-serif;
    }

/* SOCIAL */
.footer-social {
    display: flex;
    gap: 30px;

}

.footer-social img {
    width: 17px;
    height: 17px;
    display: block;
    margin: 0; 
}

/* POWERED */
.footer-powered {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 13px;
}

/* RIGA FINALE (DESKTOP) */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    
}

@media (max-width: 1024px) {
    .ft-news-input-row {
        display: flex;
        width: 100%;
    }
    .ft-news-subtitle {
        margin-bottom: 0.9em;
    }
    .footer-bottom {
        flex-direction: column;     /* STACCA - LE DUE COSE */
        gap: 0px;
        margin-top: 30px;
    }
    .footer-social {
        justify-content: center;
    }
    .footer-columns {
        display: grid;
        grid-template-columns: 1fr 1fr; /* DUE COLONNE */
        gap: 80px 20px;
        padding: 0 100px 60px 100px;
    }
    .footer-col h4 {
        font-size: 15px;
    }
    .col-1 {
        grid-column: 1 / 3;
        width: 100%;
    }
    .footer-col a {
        line-height: 1.9;
        font-size: 16px;
    }
    .col-2, .col-3 {
        display: block;
        width: 100%;
    }

    .footer-powered {
        justify-content: center;
    }
}

/* MOBILE (più padding solo) */
@media (max-width: 600px) {
    .footer-social {
        margin-top: 0px;
    }
    .footer-columns {
        gap: 50px 20px;
        padding: 0 5px 60px 5px;
    }
    .footer-bottom {
        margin-top: 20px;
            margin-bottom: 5px;
    }
    .col-2 { font-size: 13.5px;}
}








/* PAGINA IMMOBILI - ESPERIENZE - CONVENZIONI ------------------------------*/




/* Variabili utili (personalizzabili) */
:root{
  --gutter: 18px;
  --page-max-width: 1420px;
  /* dimensioni mappa (usate dal toggle) */
  /* dimensioni mappa (usate dal toggle) */
  --map-min-h: 300px;            /* altezza mappa ridotta (mobile/tablet) */
  --map-max-h: 490px;           /* altezza mappa allargata (toggle) */
  --map-default-h: 720px;       /* fallback/default */
  /* altezza griglia desktop: opzionale ricalcolo */
  --results-grid-desktop-h: calc(77vh); /* valore originale: puoi sovrascriverlo al desktop con calc */
--filter-primary-btn-w: 120px; /* desktop e tablet*/
--filter-primary-btn-m: 135px; /* mobile */
}

.filter-bar__primary .btn--primary {
  flex: 0 0 var(--filter-primary-btn-w);
  width: var(--filter-primary-btn-w);
  min-width: var(--filter-primary-btn-w);
  max-width: var(--filter-primary-btn-w);
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .filter-bar__primary .btn--primary {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }
}


/* contenitore pagina */
.page-x {
  display: flex;
  justify-content: center;
  padding: var(--gutter);
  margin: 140px 0 0 0;
  padding-top: 0;
  padding-bottom: 0;
}

.layout-x {
  width: 100%;
  max-width: var(--page-max-width);
  display: grid;
  gap: 30px;
  align-items: start;
  margin: 0 33px 0 33px;
}

.divisione-page2 {
  grid-template-columns: 37fr 63fr; 
  gap: 45px;
}

/* COL SINISTRA: mappa */
.col--map {
  position: relative;
  border-radius: 12px;
  overflow: visible;
  background-color: #c9c9c9;
}

/* contenit mappa */
.map {
  width: 100%;
  min-height: 180px;
  transition: height 300ms ease;
  will-change: height;
  border-radius: 12px;
  overflow: hidden;  
}
.map-search {
  height: var(--map-prima-pag);
}
.map-immobile {
  height: var(--map-specifica-pag);
}
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}

.map.map--collapsed {
  height: var(--map-min-h);
}
.map.map--expanded {
  height: var(--map-max-h);
}

.paf-icon-svg {
    width: 16px;
    height: 16px;
    display: block;
    fill: none;
    stroke: var(--c-text-secondario);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 1024px) {
  .layout-x {
    gap: 13px;
    margin: 0 16px 0 16px;
  }
  .divisione-page2 {
    grid-template-columns: 1fr;
  }
  .page-x {
    margin: 110px 0 0 0;
  }
}

@media (max-width: 640px) {
  .page-x {
    margin: 100px 0 0 0;
  }
  .layout-x {
    gap: 15px;
    margin: 0 6px 0 6px;
  }
}

@media (min-width: 1025px) {
  .page-x {
    height: auto;
    overflow: visible;
  }
}

/* colonne generiche */
.colonna { min-width:0; } 

/* COL SINISTRA: mappa */
.col--map {
  position: relative;
border-radius: 12px;
overflow: visible;
background-color: #c9c9c9;
}

/* contenit mappa */
.map {
  width:100%;
  height: var(--map-default-h);
  min-height: 180px;
  transition: height 300ms ease;
  will-change: height;
  border-radius: 12px;
  overflow: hidden;  

}
.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}

.map.map--collapsed {
  height: var(--map-min-h);
}
.map.map--expanded {
  height: var(--map-max-h);
}

/* pulsante mappa sopra sotto */
.map-toggle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -1.25em; /* attaccato al bordo inferiore */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 33px;
  padding: 1px;
  border-radius: 20px;
  background: white;
  border: none;
  cursor: pointer;

}

/* barra filtri (BLU) */
.filter-bar {
  display: flex;
  gap: 0px;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0;
  background-color: transparent;
}

.filter-bar__primary,
.filter-bar__secondary {
  display: flex;
  gap: 0px;
  align-items: center;
  
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8em 1.2em 0.8em 1.2em;
  background: transparent;
  cursor: pointer;
  border-radius: 20px;
}

.btn--primary { 
    background-color: white;
    border: none !important;
    font-family: Raleway, sans-serif;
    font-weight: 700;
    font-size: 16px;
}
.touch{
    background-color: #c4e77e !important;
    color: var(--c-text) !important;
}
.btn--secondary {
    background-color: white;
    border: none !important;
    font-family: Roboto Condensed, sans-serif;
    font-weight: 400;
    font-size: 15px;
}

.btn__text { font-size: 1rem; }

.results {
  margin-top: var(--gutter);
}

/* griglia risultati */
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* desktop: 3 colonne */
  gap: 18px;
  padding-bottom: var(--gutter);
  max-height: var(--results-grid-desktop-h);
  overflow-y: auto;
}

/* risultato singolo (card) — struttura */
.result-card {
  display: flex;
  flex-direction: column;
  min-height: 160px;
  padding: 12px;
}

/* media area placeholder */
.result-card__media {
  width:100%;
  height: 140px;
  margin-bottom: 8px;
}

/* -------- POSIZIONAMENTO: SECONDARY A DESTRA SOLO SU DESKTOP -------- */
@media (min-width: 640px) {
  .filter-bar__secondary {
    margin-left: auto;
  }
}
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr; /* una colonna su tablet/mobile */
    margin: 0 16px 0 16px;
    gap: 13px;/* distanza colonne*/
}
.btn--secondary {
    font-weight: 300;
}
.filter-bar {
margin: 0.8em 0 1.6em 0;
}
.page2 {
  margin: 89px 0 100px 0;
}
.results-grid {
  gap: 24px;
}
  .map-toggle { display: inline-flex; }
  .map { height: var(--map-min-h); }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
    max-height: none;
    overflow: visible;
  }

  @media (max-width: 640px) {
    .layout {
        margin: 0 6px 0 6px;
        gap: 15px;/* distanza colonne*/
    }
    .results-grid {
    gap: 16px;
    }
    .filter-bar {
      flex-direction: column;
      align-items: stretch;
      gap: 8px;
      padding-left: 0; padding-right: 0;
    }
    .filter-bar__primary { 
        order: 1;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center; }

    .filter-bar__secondary { 
        order: 2; 
        width: 100%; 
        display: flex; 
        justify-content: space-between; 
    }
    .filter-bar__primary .btn--primary {
    max-width: var(--filter-primary-btn-m);
    }
}

@media (min-width: 1025px) {
  /* nascondi il map-toggle su desktop */
  .map-toggle { display: none; }

  .results-grid {
    grid-template-columns: repeat(3, 1fr);
    max-height: var(--results-grid-desktop-h);
    overflow-y: auto;
  }

  /* barra filtri in riga */
  .filter-bar {
    flex-direction: row;
    align-items: center;
  }
}

/* Utility visibilità accessibile */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  
}
}

.divisione-page2 {
  grid-template-columns: 37fr 63fr; 
  gap: 45px;
}

.divisione-page3 {
  display: grid;
  grid-template-columns: 65fr 35fr;
  align-items: start;
  margin-bottom: 14px;
  gap: 50px;
}
h6 {
    font-size: 16px !important;
    font-family: "Roboto Condensed", sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    color: var(--c-text-secondario) !important;
}
h5 {
    font-size: 18px !important;
    font-family: "Roboto Condensed", sans-serif !important;
    font-weight: 300 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.pagina-specifica {
    background-color: white;
    border-radius: 13px;
    margin: 0 0 2em 0;
    padding: 2em;
}
.flex-specifica {
    margin: 0;
    margin-bottom: 0.5em;
    padding-top: 0 !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.date-specifica-wrapper{
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px ;
    font-family: "Roboto Condensed", sans-serif ;
    font-weight: 300;
}
.titolo-pagina-specifica{
    font-family: var(--f-bigtext);
    font-weight: 700;
    font-size: 25px;
    margin-bottom: 0.3em;
}
.indirizzo-specifica {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.cin-specifica {
    margin-bottom: 1em ;
}
.desc-specifica-noeffect {
    margin: 1em 0 2em 0;
}

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 40px;
    margin: 24px 0 28px;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 300;
    color: #5e5e5e;
}

@media (max-width: 768px) {
    .servizi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 20px;
    }
}
.servizio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}
.servizio-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.paf-price-specifica {
    background: var(--c-tasti);
    color: var(--c-text-con-sfondo);
    font-size: 14px;
    font-family: var(--f-font1);
    font-weight: 600;
    padding: 0.35em 0.9em;
    border-radius: 0.8em;
    margin-right: 0.4em;
}
.modulo-fisso{
    position: static;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.modulo-fisso-main {
    padding: 12px 20px 12px 20px;
    border-radius: 15px;
    box-shadow: var(--b-border3d);
}
.modulo-fisso-more {
    background-color: white;
}
.modulo-fisso-prenota {
    background-color: white;
}
.modulo-fisso-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--f-font1);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-align: left;
    color: var(--c-text);
}

.booking-toggle-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.booking-toggle-header h2 {
    margin: 0;
    font-size: 20px;
}

.booking-toggle-header .flex-specifica {
    margin: 0;
    gap: 12px;
}

.booking-toggle-header .paf-price-specifica {
    font-size: 13px;
    padding: 0.25em 0.7em;
}

.booking-toggle-header .date-specifica-wrapper h6 {
    font-size: 13px !important;
}

@media (max-width: 767px) {
    #modulo-fisso-prenota .booking-toggle-header {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    #modulo-fisso-prenota .booking-toggle-header h2 {
        font-size: 17px;
        width: 100%;
        margin-bottom: 2px;
    }
}

.modulo-fisso-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--c-tasti-secondari);
    position: relative;
    transition: transform 0.2s ease;
}
.modulo-fisso-toggle-icon::before {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--c-text);
    border-bottom: 2px solid var(--c-text);
    transform: rotate(45deg);
}

.modulo-fisso-panel-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
}

.modulo-fisso-panel.is-open .modulo-fisso-panel-content {
    max-height: 2000px;
    opacity: 1;
    margin-top: 15px;
}
.modulo-fisso-panel.is-open .modulo-fisso-toggle-icon {
    transform: rotate(180deg);
}

.extra {
    margin-bottom: 2em;
}
.extra h5 {
    margin-bottom: 8px !important;
}

/* Gallery Grid (da photoswipe.css del mock) */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    height: 500px; /* Altezza desktop */
    margin-bottom: 2em;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}
.gallery-grid a {
    display: block;
    width: 100%;
    height: 100%;
}
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-grid a.hero {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}
.gallery-grid a:nth-of-type(n+6) {
    display: none;
}

@media (max-width: 1024px) {
    .divisione-page2,
    .divisione-page3 {
        grid-template-columns: 1fr;
        gap: 0px;
    }
    .gallery-grid {
        height: 300px; /* Altezza ridotta per mobile/tablet */
        gap: 6px;
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        height: 220px; /* Altezza ancora più compatta per smartphone */
        gap: 4px;
        border-radius: 10px;
    }
}

/* GALLERIA INTERMEDIA (MODAL) */
.paf-full-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 11000;
    overflow-y: auto;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.paf-full-gallery.is-active {
    display: block;
    opacity: 1;
}

.paf-gallery-header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.paf-close-gallery {
    background: var(--c-tasti);
    color: var(--c-text-con-sfondo);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

.paf-gallery-grid-v {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
    max-width: 1200px;
    margin: 0 auto;
}

.paf-gallery-item {
    width: 100%;
    cursor: pointer;
    overflow: hidden;
}

.paf-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.paf-gallery-item:hover img {
    transform: scale(1.02);
}

/* Logica Alternanza 1-2-1 */
/* Ogni 3 elementi, il primo occupa 2 colonne (riga intera) */
.paf-gallery-item:nth-child(3n+1) {
    grid-column: span 2;
    height: 500px;
}

.paf-gallery-item:nth-child(3n+2),
.paf-gallery-item:nth-child(3n+3) {
    grid-column: span 1;
    height: 300px;
}

@media (max-width: 768px) {
    .paf-gallery-item:nth-child(3n+1) { height: 300px; }
    .paf-gallery-item:nth-child(3n+2),
    .paf-gallery-item:nth-child(3n+3) { height: 200px; }
}

/* BOTTOM SHEET MOBILE (sotto 767px) */
@media (max-width: 767px) {
  #modulo-fisso-prenota {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.12);
    background: #fff;
    padding-bottom: env(safe-area-inset-bottom);
    --sheet-peek: 108px;
    transform: translateY(var(--sheet-translate, calc(100% - var(--sheet-peek))));
    transition: transform 0.25s ease;
  }
  
  #modulo-fisso-prenota.is-dragging {
    transition: none;
  }
  
  #modulo-fisso-prenota .modulo-fisso-toggle {
    padding: 10px 0 8px;
    touch-action: none;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  
  #modulo-fisso-prenota .modulo-fisso-toggle::before {
    content: "";
    display: block;
    width: 52px;
    height: 5px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.16);
    margin: 4px auto 10px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  }
  
  #modulo-fisso-prenota .modulo-fisso-toggle-icon {
    display: none;
  }
  
  #modulo-fisso-prenota .modulo-fisso-toggle h2 {
    margin: 0;
    font-size: 18px;
  }
  
  #modulo-fisso-prenota .modulo-fisso-panel-content {
    max-height: none;
    opacity: 1;
    margin-top: 12px;
    overflow-y: auto;
    max-height: calc(92vh - var(--sheet-peek));
  }
  
  #modulo-fisso {
    padding-bottom: calc(var(--sheet-peek, 72px) + 10px + env(safe-area-inset-bottom));
  }
}