/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700;900&family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-blue: #003366;
    --light-blue: #0077be;
    --mediterranean-white: #f8f9fa;
    --sand-beige: #f4e4bc;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--mediterranean-white);
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 900;
}

h1 { 
    font-size: 4.5rem; 
    line-height: 1.1; 
    text-shadow: 2px 4px 10px rgba(0,0,0,0.6);
}

h2 { font-size: 3rem; margin-bottom: 2.5rem; }
h3 { font-size: 1.6rem; letter-spacing: 1px; }

p { font-weight: 300; overflow-wrap: break-word; word-break: break-word; }
strong { font-weight: 600; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Language Selector */
.lang-selector {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 20px;
}

.lang-selector a {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.lang-selector a:hover {
    color: var(--light-blue);
    background: #eef7ff;
}

.lang-selector a.lang-active {
    color: white;
    background: var(--light-blue);
}

/* Header & Navigation - rimosso, vedi sotto */

/* Header NON più fixed - diventa statico, niente spazio vuoto sotto */
header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

body {
    padding-top: 0 !important;
    margin: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo img {
    height: 130px;
    width: auto;
    display: block;
    padding: 10px 0;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
    text-decoration: none;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--light-blue);
}

.btn-small {
    background: var(--light-blue);
    color: white !important;
    padding: 10px 25px;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-small:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
}

/* Menu Toggle (hamburger) - hidden on desktop */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-blue);
    padding: 8px;
    margin-left: 10px;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 150px;
    max-width: 900px;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 2px 8px rgba(0,0,0,0.5);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: block;
    padding: 15px 40px;
    background: var(--light-blue);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
}

.btn:hover {
    background: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline:hover {
    background: white;
    color: var(--primary-blue);
}

/* Sections */
section {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 3rem;
    margin-top: 15px;
}

/* Intro Section */
.sigillo-qualita {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: white;
    padding: 20px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 5;
}

/* Grid System */
.grid {
    display: grid;
    gap: 30px;
}

/* Room Cards */
.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

.card-img {
    height: 300px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card-content {
    padding: 30px;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 20px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--light-blue);
}
.card-features span {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Experience Items */
.experience-item {
    position: relative;
    height: 450px;
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    color: white;
}

.experience-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: var(--transition);
}

.experience-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    z-index: 2;
}

.experience-item h3, .experience-item p {
    position: relative;
    z-index: 3;
    color: #ffffff !important;
    text-shadow: 2px 3px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.5);
}

/* Contrasto universale: testo su immagini */
.view-card h3, .view-card p {
    color: #ffffff !important;
    text-shadow: 2px 3px 8px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.5);
}

/* ATMOSFERA 3-column grid */
.atmosfera-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Footer - OCEANO ANIMATO TUTTO SFONDO */
footer {
    background: linear-gradient(135deg,
        #0a1929 0%,
        #0c2540 20%,
        #1e4976 40%,
        #2e6b9c 60%,
        #1e4976 80%,
        #0c2540 100%) !important;
    background-size: 300% 300% !important;
    color: white;
    padding: 60px 0 20px !important;
    margin-bottom: 0 !important;
    position: relative;
    overflow: hidden;
    animation: ocean-flow 8s ease-in-out infinite;
    box-shadow: inset 0 20px 60px rgba(0,30,60,0.6);
}

@keyframes ocean-flow {
    0% { background-position: 0% 30%; }
    25% { background-position: 50% 70%; }
    50% { background-position: 100% 30%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 30%; }
}

/* STRATO 1: Onde animate che coprono TUTTO il footer (piu grande di prima) */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(56,189,248,0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(99,179,237,0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(125,211,252,0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 90%, rgba(56,189,248,0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 20%, rgba(99,179,237,0.25) 0%, transparent 50%);
    background-size: 200% 200% !important;
    animation: wave-shimmer-full 10s ease-in-out infinite !important;
    pointer-events: none;
    z-index: 0 !important;
    mix-blend-mode: screen;
}

@keyframes wave-shimmer-full {
    0% { background-position: 0% 0%; opacity: 0.7; }
    50% { background-position: 100% 100%; opacity: 1; }
    100% { background-position: 0% 0%; opacity: 0.7; }
}

/* STRATO 2: Bolle che salgono dal basso verso l'alto */
footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image:
        radial-gradient(circle at 15% 100%, rgba(56,189,248,0.4) 0%, transparent 6%),
        radial-gradient(circle at 35% 100%, rgba(99,179,237,0.3) 0%, transparent 5%),
        radial-gradient(circle at 55% 100%, rgba(125,211,252,0.35) 0%, transparent 7%),
        radial-gradient(circle at 75% 100%, rgba(56,189,248,0.3) 0%, transparent 6%),
        radial-gradient(circle at 90% 100%, rgba(99,179,237,0.35) 0%, transparent 5%);
    background-size: 200% 100%;
    animation: bubbles-rise 12s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes bubbles-rise {
    0% { background-position: 0% 100%; opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { background-position: 200% 0%; opacity: 0.3; }
}

footer .container,
footer > div,
footer > .container > * {
    position: relative;
    z-index: 5 !important;
}

@media (max-width: 768px) {
    footer {
        padding: 40px 0 16px !important;
        margin-bottom: 90px !important;
        background-size: 400% 400% !important;
    }
}

.footer-logo { text-align: center;
    display: block;
    margin-bottom: 5px;
}

.footer-logo img {
    height: 100px;
    width: auto;
    max-width: 280px;
}

/* ========================================
   MOBILE RESPONSIVE — v7 CLEAN
   Corregge: hero tagliata, overflow, griglie
   inline, hamburger, bottoni, form, footer
   ======================================== */

@media (max-width: 768px) {

    /* ---- GLOBAL ---- */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* NON usare max-width: 100% su * perché rompe position:absolute della hero */
    img {
        max-width: 100%;
        height: auto;
    }

    .container {
        padding: 0 15px;
        width: 100%;
    }

    /* ---- TYPOGRAPHY ---- */
    h1 {
        font-size: 1.7rem !important;
        line-height: 1.2 !important;
        letter-spacing: 1px !important;
        word-break: break-word;
    }
    h2 {
        font-size: 1.4rem !important;
        margin-bottom: 1rem !important;
        letter-spacing: 1px !important;
    }
    h3 {
        font-size: 1.15rem !important;
        letter-spacing: 0.5px !important;
    }
    h4 {
        font-size: 1rem !important;
    }
    p {
        font-size: 0.92rem !important;
        line-height: 1.6 !important;
    }

    /* ---- HEADER ---- */
    header {
        padding: 0;
    }
    
    body {
        padding-top: 50px !important;
    }

    nav {
        flex-direction: column !important;
        align-items: center !important;
        padding: 6px 0 !important;
        gap: 4px !important;
    }

    .logo {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .logo img {
        height: 100px !important;
        width: auto !important;
        max-width: 100% !important;
        padding: 4px 0 !important;
    }

    /* Language selector sotto il logo su mobile */
    .lang-selector {
        display: flex !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
        padding: 4px 0 !important;
        order: 3;
    }

    .lang-selector a {
        font-size: 0.85rem !important;
        padding: 2px 6px !important;
    }

    .menu-toggle {
        position: absolute !important;
        right: 15px !important;
        top: 15px !important;
        z-index: 1001 !important;
    }

    /* Nascondi nav desktop */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        padding: 16px 0;
        gap: 0;
        z-index: 999;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 20px;
        font-size: 0.9rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links li:last-child a {
        margin: 10px 20px;
        border-bottom: none;
        text-align: center;
    }

    /* Mostra hamburger */
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* Selettore lingua compatto */
    .lang-selector {
        gap: 4px;
        margin-left: 6px;
    }

    .lang-selector a {
        font-size: 0.65rem;
        padding: 3px 5px;
    }

    /* ---- HERO ---- */
    .hero {
        height: 100svh;
        min-height: 500px;
        /* NON usare overflow:hidden qui — è già nella regola base */
    }

    /* L'immagine hero NON deve avere max-width: 100% — è position:absolute */
    .hero-bg {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .hero-content {
        padding: 80px 20px 30px !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .hero h1 {
        font-size: 1.55rem !important;
        margin-bottom: 0.8rem !important;
    }

    .hero > .hero-content > span {
        font-size: 0.75rem !important;
        letter-spacing: 3px !important;
    }

    .hero p {
        font-size: 0.9rem !important;
        margin-bottom: 1.2rem !important;
    }

    .hero-btns {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .hero-btns .btn {
        width: 85% !important;
        max-width: 260px !important;
        padding: 11px 20px !important;
        font-size: 0.8rem !important;
        letter-spacing: 1px !important;
        text-align: center !important;
    }

    /* ---- SECTIONS ---- */
    section {
        padding: 40px 0 !important;
    }

    .section-title {
        margin-bottom: 25px !important;
    }

    .section-title h2 {
        font-size: 1.35rem !important;
    }

    /* ---- GRIDS (incluse inline) ---- */
    /* Forza tutte le griglie a colonna singola */
    .grid,
    [style*="grid-template-columns"] {
        display: block !important;
    }

    /* Spaziatura tra blocchi che erano in griglia */
    .grid > *,
    [style*="grid-template-columns"] > * {
        margin-bottom: 20px;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* ---- INTRO SECTION ---- */
    .intro-img-wrapper {
        margin-bottom: 50px; /* spazio per il sigillo che esce */
    }

    .sigillo-qualita {
        width: 80px !important;
        height: 80px !important;
        bottom: -15px !important;
        right: -5px !important;
        padding: 10px !important;
    }

    /* ---- CARDS ---- */
    .card {
        margin-bottom: 16px;
    }

    .card-img {
        height: 180px !important;
    }

    .card-content {
        padding: 16px !important;
    }

    .card-features {
        font-size: 0.82rem !important;
        gap: 10px !important;
        flex-wrap: wrap;
    }

    /* ---- EXPERIENCE ITEMS ---- */
    .experience-item {
        height: 220px !important;
        padding: 20px !important;
        border-radius: 16px !important;
    }

    /* ---- VIEW CARDS (Scorci da sogno) ---- */
    .view-card {
        height: 250px !important;
        border-radius: 16px !important;
        overflow: hidden;
        position: relative;
        margin-bottom: 16px;
    }

    .view-card img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        max-width: none !important;
    }

    /* ---- BUTTONS ---- */
    .btn,
    a.btn,
    button.btn {
        display: inline-block !important;
        padding: 12px 16px !important;
        font-size: 0.78rem !important;
        letter-spacing: 0.5px !important;
        max-width: 100% !important;
        width: auto !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        box-sizing: border-box !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }

    .btn-small {
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
    }

    /* ---- FIX CRITICO: BOTTONE "SCOPRI I NOSTRI APPARTAMENTI" ---- */
    .hero-btns a.btn,
    .hero-btns button,
    a.btn[href="#camere"] {
        display: block !important;
        width: calc(100% - 32px) !important;
        max-width: 320px !important;
        margin: 8px auto !important;
        padding: 14px 16px !important;
        font-size: 0.78rem !important;
        line-height: 1.3 !important;
        letter-spacing: 0.5px !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        box-sizing: border-box !important;
        text-align: center !important;
        border-radius: 50px !important;
    }

    /* Anche il bottone hero-cta-btn deve essere block e non uscire */
    .hero-cta-btn {
        display: block !important;
        width: calc(100% - 32px) !important;
        max-width: 320px !important;
        margin: 16px auto !important;
        padding: 14px 20px !important;
        font-size: 0.85rem !important;
        word-break: break-word !important;
        box-sizing: border-box !important;
    }

    /* ---- HERO CTA BUTTONS (PRENOTAZIONE DIRETTA / RESERVA) ---- */
    .hero-cta-btn {
        padding: 14px 24px !important;
        font-size: 0.95rem !important;
        margin-top: 16px !important;
        word-wrap: break-word !important;
        max-width: 90% !important;
        line-height: 1.3 !important;
    }

    /* ---- HERO BTNS CONTAINER (prenotazione+airbnb) ---- */
    .hero-btns {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }

    .hero-btns > * {
        width: 100% !important;
        max-width: 320px !important;
    }

    /* ---- HERO TEXT ---- */
    .hero h1 {
        font-size: 1.8rem !important;
        line-height: 1.15 !important;
        padding: 0 12px !important;
    }

    .hero p {
        font-size: 0.92rem !important;
        padding: 0 16px !important;
        line-height: 1.5 !important;
    }

    /* ---- SECTION TITLE ---- */
    .section-title h2 {
        font-size: 1.6rem !important;
        line-height: 1.15 !important;
    }

    .section-title p {
        font-size: 0.92rem !important;
        padding: 0 8px !important;
    }

    /* ---- SCONTO 10% BAR (non sovrapporre al bottone "Scopri") ---- */
    [style*="Sconto 10%"] {
        margin-top: 24px !important;
        padding: 18px 16px !important;
    }

    [style*="Sconto 10%"] > div,
    [style*="Sconto 10%"] > p {
        font-size: 0.9rem !important;
    }

    /* ---- VIEW CARD (Scorci da sogno) - non tagliare ---- */
    .view-card {
        height: 220px !important;
        margin-bottom: 14px !important;
    }

    .view-card h3 {
        font-size: 1.05rem !important;
    }

    .view-card p {
        font-size: 0.78rem !important;
    }

    /* ---- EXPERIENCE ITEM (Mare cristallino / Pet / Gusto) ---- */
    .experience-item {
        height: 200px !important;
        padding: 16px !important;
    }

    .experience-item h3 {
        font-size: 0.95rem !important;
    }

    .experience-item p {
        font-size: 0.75rem !important;
    }

    /* Bottone prenota nelle card: full width */
    .card-content .btn {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-top: 14px !important;
    }

    /* ---- FORM (sezione prenota) ---- */
    .booking-form {
        padding: 24px 16px !important;
        border-radius: 16px !important;
    }

    .form-grid {
        display: block !important;
    }

    .form-group {
        margin-bottom: 14px;
        width: 100% !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100% !important;
        padding: 12px !important;
        font-size: 0.9rem !important;
        box-sizing: border-box;
    }

    .booking-form .btn[type="submit"],
    .booking-form button[type="submit"] {
        width: 100% !important;
        padding: 13px !important;
        font-size: 0.9rem !important;
        margin-top: 16px !important;
    }

    /* ---- RECENSIONI ---- */
    .container[style*="max-width: 800px"] {
        max-width: 100% !important;
    }

    /* Padding interno delle card recensioni */
    [style*="padding: 50px 40px"] {
        padding: 24px 16px !important;
    }

    /* ---- FOOTER ---- */
    footer {
        padding: 40px 0 24px !important;
    }

    footer .grid,
    footer [style*="grid-template-columns"] {
        display: block !important;
    }

    footer .grid > *,
    footer [style*="grid-template-columns"] > * {
        margin-bottom: 28px;
        width: 100% !important;
    }

    .footer-logo img {
        height: 76px !important;
    }

    .footer-bottom {
        margin-top: 30px !important;
        padding-top: 20px !important;
        font-size: 0.8rem !important;
    }

    /* ---- MODAL ---- */
    .modal-content {
        width: 95% !important;
        padding: 20px !important;
        border-radius: 12px !important;
    }

    /* ---- IMMAGINI GENERICHE NELLE SEZIONI ---- */
    /* Immagini con altezze fisse inline (es. panoramica, mappa) */
    .parking-img img,
    .sea-access-img img,
    .structure-card img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        border-radius: 16px !important;
    }

    /* Immagine panoramica e mappa con altezza fissa */
    [style*="height: 500px"],
    [style*="height: 450px"] {
        height: 220px !important;
    }

    /* Padding inline grandi */
    [style*="padding: 120px 0"],
    [style*="padding: 100px 0"] {
        padding: 40px 0 !important;
    }

    [style*="padding: 60px 0"] {
        padding: 30px 0 !important;
    }

    /* Gap inline grandi */
    [style*="gap: 80px"],
    [style*="gap: 60px"] {
        gap: 20px !important;
    }

    /* Font-size inline grandi su titoli */
    [style*="font-size: 2.8rem"],
    [style*="font-size: 2.5rem"],
    [style*="font-size: 2rem"] {
        font-size: 1.4rem !important;
    }

    [style*="font-size: 1.4rem"],
    [style*="font-size: 1.2rem"],
    [style*="font-size: 1.15rem"],
    [style*="font-size: 1.1rem"] {
        font-size: 0.92rem !important;
    }

    /* main padding-top per pagine interne */
    main[style*="padding-top"] {
        padding-top: 70px !important;
    }

    /* ---- PAGINE INTERNE: main offset ---- */
main {
        padding-top: 0 !important;
    }

    /* ---- PRENOTA: form inline grids ---- */
    form[style*="display: grid"],
    form > [style*="display: grid"] {
        display: block !important;
    }

    form > [style*="display: grid"] > .form-group,
    form [style*="grid-template-columns"] > .form-group {
        width: 100% !important;
        margin-bottom: 16px;
    }

    /* Card form prenotazione */
    [style*="padding: 50px"][style*="border-radius: 30px"],
    [style*="padding: 50px"][style*="border-radius: 20px"] {
        padding: 20px 16px !important;
        border-radius: 16px !important;
    }

    /* Submit button grande */
    button.btn[style*="padding: 20px"],
    button[style*="font-size: 1.1rem"] {
        padding: 13px 20px !important;
        font-size: 0.9rem !important;
    }

    /* ---- DOVE SIAMO: altezze fisse ---- */
    [style*="height: 500px"][style*="object-fit"] {
        height: 200px !important;
    }

    /* Wrapper mappa iframe */
    [style*="height: 450px"][style*="border-radius"] {
        height: 220px !important;
    }

    /* ---- FOOTER GRID ---- */
    .footer-grid {
        display: block !important;
    }

    .footer-grid > * {
        margin-bottom: 24px;
    }

    /* ---- CHI SIAMO: immagini gallery ---- */
    [style*="height: 250px"] {
        height: 180px !important;
    }

    /* ---- STRUCTURE SHOWCASE ---- */
    .structure-card img {
        width: 100% !important;
        height: auto !important;
        border-radius: 16px !important;
    }

    /* ---- PARKING / SEA ACCESS ---- */
    .parking-section .grid,
    .sea-access .grid {
        display: block !important;
    }

    .parking-text,
    .sea-access-text,
    .parking-img,
    .sea-access-img {
        width: 100% !important;
        margin-bottom: 20px;
    }

    /* ---- EMOTIONAL VIEWS (Scorci da sogno) ---- */
    .atmosfera-grid {
        grid-template-columns: 1fr !important;
    }
    .atmosfera-grid .view-card {
        min-height: 250px !important;
    }

    /* ---- BOOKING SECTION (homepage) ---- */
    #prenota .grid {
        display: block !important;
    }

    #prenota > .container > .grid > div {
        width: 100% !important;
        margin-bottom: 20px;
    }

    /* ---- LISTA con flex inline ---- */
    li[style*="display: flex"] {
        align-items: flex-start !important;
        font-size: 0.88rem !important;
    }

}

/* ---- BREAKPOINT EXTRA SMALL (< 400px) ---- */
@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.3rem !important;
    }

    .hero-btns .btn {
        width: 92% !important;
        font-size: 0.75rem !important;
    }

    .lang-selector a {
        font-size: 0.6rem !important;
        padding: 2px 4px !important;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5rem;
    color: var(--primary-blue);
    cursor: pointer;
    z-index: 10;
}

#modalVideo {
    width: 100%;
    border-radius: 15px;
}

#modalGallery img {
    width: 100%;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ========================================
   REGOLE SPECIFICHE PAGINE INTERNE
   ======================================== */

/* footer-grid (usato in camere.html, prenota.html, dove-siamo.html) */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Immagine panoramica */
.panoramica-wrapper img {
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* ---- SUPPORTO MULTILINGUA: nomi file specifici ---- */
@media (max-width: 768px) {
    /* Corrispondenza per pagine di prenotazione estere */
    form[action*="formsubmit.co"],
    .booking-form {
        display: block !important;
    }

    /* Assicura che i link 'btn' nelle card camere estere siano full width */
    .card-content a.btn[href*="book.html"],
    .card-content a.btn[href*="reservar.html"],
    .card-content a.btn[href*="reserver.html"],
    .card-content a.btn[href*="buchen.html"] {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-top: 14px !important;
    }
}

/* ===== FLOATING BUTTONS ===== */
.floating-buttons {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    z-index: 99999 !important;
}

.floating-btn {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.floating-btn:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 6px 25px rgba(0,0,0,0.5) !important;
}

.floating-btn.whatsapp {
    background-color: #25D366 !important;
}

.floating-btn.whatsapp i {
    color: white !important;
    font-size: 32px !important;
}

.floating-btn.call {
    background-color: #0077be !important;
}

.floating-btn.call i {
    color: white !important;
    font-size: 26px !important;
}

/* ===== MOBILE FLOATING BUTTONS ===== */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px !important;
        right: 15px !important;
        gap: 12px !important;
    }
    
    .floating-btn {
        width: 55px !important;
        height: 55px !important;
    }
    
    .floating-btn.whatsapp i {
        font-size: 28px !important;
    }
    
    .floating-btn.call i {
        font-size: 24px !important;
    }
}

/* Video Hero */
video.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Struttura Section */
.struttura .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .struttura {
        padding: 60px 0 !important;
    }
    .struttura .grid {
        grid-template-columns: 1fr !important;
    }
}

/* Video hero - sfondo nero durante il caricamento */
video.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    background: #000;
}

/* Riduzione spazi sezioni e top hero */
.hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

main section {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

main section.section-title,
main section.contact,
main section.rooms,
main section.about-section,
main section.sea-access {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
}

/* Hero top spacing - ridotto del 65% */
.hero {
    margin-top: 0 !important;
}

/* === MOBILE SPACING FIX === */
@media (max-width: 768px) {
    /* Sezioni compatte su mobile */
    main section,
    section {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    
    .hero {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Margini sezioni ridotti */
    .section-title {
        margin-bottom: 20px !important;
    }
    
    h1 {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
    }
    
    h2 {
        font-size: 1.2rem !important;
        margin-bottom: 12px !important;
    }
    
    h3 {
        font-size: 1.05rem !important;
        margin-bottom: 8px !important;
    }
    
    p {
        font-size: 0.88rem !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }
    
    /* Card compatte */
    .card {
        margin-bottom: 15px !important;
    }
    
    .card-content {
        padding: 15px !important;
    }
    
    /* Footer compatto */
    footer {
        padding: 30px 0 20px 0 !important;
    }
    
    footer .container > div {
        margin-bottom: 20px !important;
    }
    
    /* Bottoni flottanti pi� piccoli */
    .floating-btn {
        width: 45px !important;
        height: 45px !important;
    }
    
    .floating-buttons {
        bottom: 15px !important;
        right: 12px !important;
        gap: 8px !important;
    }
}

/* === COMPATTAZIONE AGGRESSIVA === */
h1, h2, h3, h4 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    line-height: 1.2 !important;
}

p {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
    line-height: 1.5 !important;
}

.section-title {
    margin-bottom: 20px !important;
}

.section-title span {
    margin-bottom: 4px !important;
    display: block;
}

.section-title h2 {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

/* Card padding ridotti */
.card-content {
    padding: 15px !important;
}

.card-content h3 {
    margin-bottom: 8px !important;
}

.card-content p {
    margin-bottom: 8px !important;
}

.card-features {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    gap: 6px !important;
}

/* Struttura sezioni compatte */
.structure-showcase,
.sea-access,
.parking-section,
.about-section,
.rooms-section {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

/* MOBILE - compattazione estrema */
@media (max-width: 768px) {
    h1 { font-size: 1.3rem !important; margin-bottom: 6px !important; }
    h2 { font-size: 1.15rem !important; margin-bottom: 6px !important; }
    h3 { font-size: 1rem !important; margin-bottom: 6px !important; }
    p { font-size: 0.85rem !important; margin-bottom: 6px !important; line-height: 1.4 !important; }
    
    .section-title {
        margin-bottom: 12px !important;
    }
    
    .card-content {
        padding: 10px !important;
    }
    
.card-features {
        gap: 4px 6px !important;
        margin: 6px 0 !important;
        flex-wrap: wrap !important;
    }
    
    .card-features span {
        font-size: 0.75rem !important;
    }
}

/* === FIX SPAZIO TOP === */
body, html {
    margin: 0 !important;
    padding-top: 0 !important;
}

header {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* ============================================
   v12.136 - MOBILE REFRESH (NON TOCCA .card APPARTAMENTI)
   ============================================ */

html {
  font-size: clamp(14px, 3.5vw, 16px);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 90px;
}

.container {
  padding-left: clamp(12px, 3vw, 24px);
  padding-right: clamp(12px, 3vw, 24px);
  max-width: 100%;
  box-sizing: border-box;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.marquee-strip {
  overflow: hidden;
  width: 100%;
  padding: 30px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  position: relative;
  margin: 60px 0;
}
.marquee-strip::before,
.marquee-strip::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.marquee-strip::before {
  left: 0;
  background: linear-gradient(90deg, #0f172a 0%, transparent 100%);
}
.marquee-strip::after {
  right: 0;
  background: linear-gradient(-90deg, #0f172a 0%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee-scroll 18s linear infinite;
}
.marquee-track:hover {
  /* NON pausare - deve sempre scorrere */
}
.marquee-track .marquee-item {
  flex: 0 0 280px;
  height: 200px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.marquee-track .marquee-item:hover {
  transform: scale(1.08) translateY(-5px);
  z-index: 4;
}
.marquee-track .marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.marquee-track .marquee-item:hover img {
  transform: scale(1.12);
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.text-shine {
  background: linear-gradient(90deg, #1a5276 0%, #2e86c1 30%, #f4d35e 50%, #2e86c1 70%, #1a5276 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shine-move 4s linear infinite;
}
@keyframes shine-move {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  animation: stagger-fade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
@keyframes stagger-fade {
  to { opacity: 1; transform: translateY(0); }
}

/* === MOBILE RESPONSIVE (max-width 768px) === */
@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Hero - FIX DEFINITIVO bottone non piu tagliato */
  .hero {
    min-height: 100vh !important;
    height: auto !important;
    padding: 110px 16px 160px !important;
    overflow: visible !important;
  }
  .hero > .container,
  .hero > div {
    position: relative !important;
    z-index: 5 !important;
  }
  .hero h1, .hero h2 {
    font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 16px !important;
  }
  .hero p {
    font-size: clamp(0.95rem, 4vw, 1.1rem) !important;
    line-height: 1.5 !important;
  }
  .hero-btns {
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
  }
  .hero-btns .btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 18px !important;
    font-size: 0.92rem !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.3 !important;
  }

  /* Banner SCONTO 10% - layout verticale */
  section[style*="fff8e1"] .container > div {
    flex-direction: column !important;
    text-align: center !important;
    padding: 24px 18px !important;
    gap: 20px !important;
  }
  section[style*="fff8e1"] .container > div > div:first-child {
    width: 100px !important;
    height: 100px !important;
    margin: 0 auto !important;
  }
  section[style*="fff8e1"] h2 {
    font-size: 1.3rem !important;
    line-height: 1.2 !important;
  }
  section[style*="fff8e1"] p {
    font-size: 0.92rem !important;
  }
  section[style*="fff8e1"] a[href="book.html"] {
    width: 100% !important;
    padding: 14px 20px !important;
    font-size: 0.92rem !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    white-space: normal !important;
  }
  section[style*="fff8e1"] a[href="book.html"] i {
    margin-left: 8px !important;
  }

  /* Banner PACCHETTO */
  #pacchetto-promo {
    padding: 12px 14px !important;
    font-size: 0.88rem !important;
  }
  #pacchetto-promo > div {
    flex-wrap: wrap !important;
    gap: 8px !important;
    text-align: center !important;
    justify-content: center !important;
  }
  #pacchetto-promo a {
    padding: 8px 14px !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
  }

  /* Galleria grid - 1 colonna mobile */
  .gallery-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .gallery-item,
  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    height: auto !important;
    min-height: 240px !important;
  }
  .gallery-item img {
    aspect-ratio: 4 / 3 !important;
    height: auto !important;
  }
  .gallery-item[data-tilt] {
    transform: none !important;
  }

  /* Sezioni generiche */
  section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .section-title h2 {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    line-height: 1.2 !important;
  }
  .grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Bottoni generici */
  .btn,
  button.btn {
    padding: 12px 18px !important;
    font-size: 0.92rem !important;
    box-sizing: border-box !important;
  }

  /* Marquee su mobile */
  .marquee-track .marquee-item {
    flex: 0 0 220px !important;
    height: 160px !important;
  }

  /* Bottoni floating compatti */
  .floating-buttons {
    bottom: 18px !important;
    right: 14px !important;
    gap: 10px !important;
  }
  .floating-btn {
    width: 52px !important;
    height: 52px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35) !important;
  }
  .floating-btn.whatsapp i { font-size: 26px !important; }
  .floating-btn.call i { font-size: 22px !important; }

  /* Cookie banner non sovrapposto */
  #cookie-banner {
    bottom: 90px !important;
    font-size: 0.85rem !important;
    padding: 10px 14px !important;
  }

  /* Testi lunghi - no overflow orizzontale */
  h1, h2, h3, h4, p, a, span, button {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }

  /* Form grid */
  .form-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 400px) {
  .hero h1, .hero h2 { font-size: 1.6rem !important; }
  .section-title h2 { font-size: 1.4rem !important; }
  .marquee-track .marquee-item {
    flex: 0 0 180px !important;
    height: 130px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track {
    animation: none !important;
  }
}

@media (hover: none) {
  .gallery-item:hover { transform: none !important; }
  .btn:hover { transform: none !important; }
}

/* === FIX SPECIFICI v12.136 === */
.banner-sconto-text {
  min-width: 0 !important;
  flex: 1 1 280px !important;
}

.btn-hero-scopri {
  letter-spacing: 0 !important;
}

@media (max-width: 768px) {
  /* Bottone SCOPRI hero */
  .btn-hero-scopri {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 18px !important;
    font-size: 0.92rem !important;
    letter-spacing: 0 !important;
    text-align: center !important;
  }

  /* Banner sconto - layout verticale forzato */
  section[style*="fff8e1"] .container > div {
    flex-direction: column !important;
    text-align: center !important;
    padding: 24px 18px !important;
    gap: 18px !important;
    align-items: center !important;
  }
  section[style*="fff8e1"] .container > div > div:first-child {
    width: 96px !important;
    height: 96px !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
  }
  section[style*="fff8e1"] .container > div > div:first-child > div > div:first-child {
    font-size: 1.7rem !important;
  }
  section[style*="fff8e1"] .container > div > div:first-child > div > div:last-child {
    font-size: 0.6rem !important;
  }
  section[style*="fff8e1"] .container h2 {
    font-size: 1.25rem !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }
  section[style*="fff8e1"] .container p {
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
    margin: 0 !important;
  }
  .banner-sconto-text {
    width: 100% !important;
    flex: 0 0 auto !important;
    text-align: center !important;
  }
  .btn-prenota-banner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 20px !important;
    font-size: 0.95rem !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    white-space: normal !important;
  }
  .btn-prenota-banner i {
    margin-left: 8px !important;
  }
}


/* === v12.143 FIX BANNER SCONTO - AGGRESSIVO === */
@media (max-width: 768px) {
  /* Il container bianco interno */
  section[style*="fff8e1"] .container > div[style*="display: flex"] {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 24px 16px !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  /* h2 inline - forzato con !important per vincere su style inline */
  section[style*="fff8e1"] .container h2[style*="font-size"] {
    font-size: 0.95rem !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  section[style*="fff8e1"] .container p[style*="font-size"] {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    word-break: break-word !important;
  }
  /* Cerchio giallo */
  section[style*="fff8e1"] .container > div > div:first-child {
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
  }
  section[style*="fff8e1"] .container > div > div:first-child > div > div:first-child {
    font-size: 1.4rem !important;
  }
  section[style*="fff8e1"] .container > div > div:first-child > div > div:last-child {
    font-size: 0.55rem !important;
  }
  /* Bottone */
  section[style*="fff8e1"] a[href*="book.html"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px !important;
    font-size: 0.9rem !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    white-space: normal !important;
  }
  section[style*="fff8e1"] a[href*="book.html"] i {
    margin-left: 8px !important;
  }
  .banner-sconto-text {
    width: 100% !important;
    flex: 0 0 auto !important;
    text-align: center !important;
    min-width: 0 !important;
  }
  .btn-prenota-banner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px !important;
    font-size: 0.9rem !important;
    white-space: normal !important;
  }
}


/* === v12.144 BANNER SCONTO - Classi specifiche === */
.banner-wrap {
  max-width: 1050px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 35px !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  background: white !important;
  border-radius: 30px !important;
  padding: 24px 20px !important;
  box-shadow: 0 20px 60px rgba(201,168,76,0.25) !important;
  border: 3px solid #c9a84c !important;
  box-sizing: border-box !important;
}

.banner-h2 {
  color: #1a5276 !important;
  font-weight: 900 !important;
  margin: 0 0 10px !important;
  line-height: 1.2 !important;
  font-size: clamp(0.9rem, 3.5vw, 1.6rem) !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
}

.banner-p {
  color: #555 !important;
  margin: 0 !important;
  line-height: 1.5 !important;
  font-size: clamp(0.78rem, 2.8vw, 0.95rem) !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
}

.banner-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: clamp(10px, 3vw, 16px) clamp(14px, 4vw, 28px) !important;
  background: linear-gradient(135deg, #1a5276, #2e86c1) !important;
  color: white !important;
  border-radius: 14px !important;
  font-weight: 700 !important;
  font-size: clamp(0.85rem, 3vw, 1rem) !important;
  text-decoration: none !important;
  box-shadow: 0 8px 25px rgba(26,82,118,0.3) !important;
  transition: transform 0.25s, box-shadow 0.25s !important;
}

@media (max-width: 768px) {
  .banner-wrap {
    flex-direction: column !important;
    text-align: center !important;
    padding: 20px 14px !important;
    gap: 14px !important;
    width: calc(100% - 16px) !important;
    margin: 0 8px !important;
  }
  .banner-h2 {
    font-size: 0.88rem !important;
    margin: 0 !important;
  }
  .banner-p {
    font-size: 0.78rem !important;
  }
  .banner-cta {
    width: 100% !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    white-space: normal !important;
  }
}


/* === v12.145 MARQUEE VELOCE + CLICK HANDLER === */
.marquee-track .marquee-item {
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative !important;
}
.marquee-track .marquee-item::after {
  content: "🔍" !important;
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  background: rgba(0,0,0,0.6) !important;
  color: white !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
  pointer-events: none !important;
}
.marquee-track .marquee-item:hover::after,
.marquee-track .marquee-item:active::after {
  opacity: 1 !important;
}

#lightbox {
  z-index: 999999 !important;
}
#lightbox button {
  z-index: 1000000 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  min-width: 44px !important;
  min-height: 44px !important;
}
#lightbox button[onclick*="lightboxPrev"] {
  left: 12px !important;
  background: rgba(255,255,255,0.25) !important;
  backdrop-filter: blur(10px) !important;
  border: 2px solid rgba(255,255,255,0.4) !important;
}
#lightbox button[onclick*="lightboxNext"] {
  right: 12px !important;
  background: rgba(255,255,255,0.25) !important;
  backdrop-filter: blur(10px) !important;
  border: 2px solid rgba(255,255,255,0.4) !important;
}
#lightbox button[onclick*="closeLightbox"] {
  background: rgba(255,255,255,0.3) !important;
  backdrop-filter: blur(10px) !important;
}


/* === v12.147 BOOKING PAGE MODERNA === */
.booking-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border-radius: 28px !important;
  box-shadow: 0 30px 90px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.04) !important;
  padding: 36px 40px !important;
  border: 1px solid rgba(56,189,248,0.08) !important;
  position: relative !important;
  overflow: hidden !important;
}
.booking-card::before {
  content: "" !important;
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  height: 6px !important;
  background: linear-gradient(90deg, #2e86c1 0%, #38bdf8 50%, #f4d35e 100%) !important;
}
.booking-card h3 {
  font-size: 1.4rem !important;
  font-weight: 800 !important;
  color: #1a3a5c !important;
  margin-bottom: 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  letter-spacing: -0.5px !important;
}
.booking-card h3 i {
  color: #f4d35e !important;
  font-size: 1.5rem !important;
}
.apt-selector-bar {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
  border-radius: 20px !important;
  padding: 24px 28px !important;
  margin-bottom: 28px !important;
  border: 1px solid rgba(56,189,248,0.15) !important;
}
.apt-chip-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 12px !important;
}
.apt-chip {
  background: white !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 50px !important;
  padding: 10px 18px !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
.apt-chip:hover {
  transform: translateY(-2px) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 6px 20px rgba(56,189,248,0.2) !important;
}
.apt-chip.active {
  background: linear-gradient(135deg, #1a5276 0%, #2e86c1 100%) !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: 0 8px 24px rgba(46,134,193,0.4) !important;
  transform: translateY(-2px) !important;
}
.apt-chip.active small {
  color: rgba(255,255,255,0.85) !important;
  opacity: 1 !important;
}
.chip-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #cbd5e1 !important;
  transition: all 0.3s !important;
}
.apt-chip.active .chip-dot {
  background: #f4d35e !important;
  box-shadow: 0 0 12px rgba(244,211,94,0.8) !important;
}
.pricing-section {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%) !important;
  border-radius: 20px !important;
  padding: 28px !important;
  margin-bottom: 28px !important;
  border: 1px solid rgba(202,138,4,0.15) !important;
}
.pricing-table-container {
  margin-top: 16px !important;
  overflow-x: auto !important;
  border-radius: 16px !important;
  background: white !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
}
.pricing-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 0.92rem !important;
}
.pricing-table thead {
  background: linear-gradient(135deg, #1a5276 0%, #2e86c1 100%) !important;
  color: white !important;
}
.pricing-table thead th {
  padding: 16px 14px !important;
  font-weight: 700 !important;
  text-align: center !important;
  font-size: 0.82rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  border: none !important;
}
.pricing-table tbody td {
  padding: 18px 14px !important;
  text-align: center !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-weight: 600 !important;
  color: #1a3a5c !important;
}
.pricing-table tbody tr {
  transition: background 0.2s !important;
}
.pricing-table tbody tr:hover {
  background: #fffbeb !important;
}
.pricing-table tbody tr:last-child td {
  border-bottom: none !important;
}
.pricing-cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 12px !important;
  margin-top: 16px !important;
}
.pricing-card {
  background: white !important;
  border-radius: 16px !important;
  padding: 18px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
  border-left: 4px solid #f4d35e !important;
  transition: all 0.3s !important;
}
.pricing-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12) !important;
}
.pricing-card-period {
  font-weight: 700 !important;
  color: #1a3a5c !important;
  font-size: 0.9rem !important;
  margin-bottom: 4px !important;
}
.pricing-card-price {
  font-size: 1.5rem !important;
  font-weight: 900 !important;
  color: #2e86c1 !important;
  line-height: 1.1 !important;
}
.pricing-card-price small {
  font-size: 0.7rem !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
}
.pricing-card-discount {
  background: linear-gradient(135deg, #f4d35e 0%, #f59e0b 100%) !important;
  color: white !important;
  font-weight: 800 !important;
  padding: 6px 12px !important;
  border-radius: 50px !important;
  font-size: 0.82rem !important;
  display: inline-block !important;
  box-shadow: 0 4px 12px rgba(245,158,11,0.4) !important;
}
#directBookingForm {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border-radius: 24px !important;
  padding: 36px !important;
  border: 2px solid rgba(56,189,248,0.2) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06) !important;
}
#directBookingForm label {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #1a3a5c !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin-bottom: 8px !important;
  display: block !important;
}
#directBookingForm input,
#directBookingForm select,
#directBookingForm textarea {
  width: 100% !important;
  padding: 14px 16px !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 12px !important;
  font-size: 0.95rem !important;
  background: white !important;
  transition: all 0.25s !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
}
#directBookingForm input:focus,
#directBookingForm select:focus,
#directBookingForm textarea:focus {
  outline: none !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 4px rgba(56,189,248,0.15) !important;
}
#directBookingForm button[type="submit"] {
  background: linear-gradient(135deg, #1a5276 0%, #2e86c1 100%) !important;
  color: white !important;
  padding: 18px 36px !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  box-shadow: 0 12px 32px rgba(26,82,118,0.35) !important;
  transition: all 0.3s !important;
  border: none !important;
  cursor: pointer !important;
  width: 100% !important;
  margin-top: 16px !important;
}
#directBookingForm button[type="submit"]:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 40px rgba(26,82,118,0.45) !important;
}
@media (max-width: 768px) {
  .booking-card { padding: 20px 16px !important; }
  .apt-selector-bar { padding: 16px 18px !important; }
  .pricing-section { padding: 18px !important; }
  .pricing-table thead th { padding: 10px 6px !important; font-size: 0.72rem !important; }
  .pricing-table tbody td { padding: 12px 6px !important; font-size: 0.82rem !important; }
  .pricing-cards { grid-template-columns: 1fr !important; }
  #directBookingForm { padding: 20px !important; }
}


/* === v12.149 FOOTER LINKS BIANCHI VISIBILI === */
footer h1, footer h2, footer h3, footer h4, footer h5 {
  color: #ffffff !important;
}
footer a,
footer a:link,
footer a:visited {
  color: #ffffff !important;
  opacity: 1 !important;
  text-decoration: none !important;
}
footer a:hover {
  color: #f4d35e !important;
  text-decoration: underline !important;
}
footer p,
footer li,
footer span:not(.chip-dot) {
  color: rgba(255,255,255,0.85) !important;
}
footer .footer-bottom,
footer .footer-bottom a {
  color: #ffffff !important;
  opacity: 1 !important;
}
footer .footer-bottom p,
footer .footer-bottom a {
  color: #ffffff !important;
}
footer .footer-links ul li a,
footer .footer-contact p {
  color: #ffffff !important;
  opacity: 0.9 !important;
}


/* === v12.149 FOOTER LINKS BIANCHI VISIBILI === */
footer h1, footer h2, footer h3, footer h4, footer h5 {
  color: #ffffff !important;
}
footer a,
footer a:link,
footer a:visited {
  color: #ffffff !important;
  opacity: 1 !important;
  text-decoration: none !important;
}
footer a:hover {
  color: #f4d35e !important;
  text-decoration: underline !important;
}
footer p,
footer li,
footer span:not(.chip-dot) {
  color: rgba(255,255,255,0.85) !important;
}
footer .footer-bottom,
footer .footer-bottom a {
  color: #ffffff !important;
  opacity: 1 !important;
}
footer .footer-bottom p,
footer .footer-bottom a {
  color: #ffffff !important;
}
footer .footer-links ul li a,
footer .footer-contact p {
  color: #ffffff !important;
  opacity: 0.9 !important;
}


/* === v12.152 STICKY FOOTER + LOGO BIANCO === */
html, body {
  height: 100%;
  margin: 0;
}
body {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}
body > *:not(footer):not(.floating-buttons):not(#cookie-banner):not(script):not(style) {
  flex: 1 0 auto;
}
footer {
  flex-shrink: 0 !important;
  margin-top: auto !important;
}
.footer-logo img {
  max-width: 480px !important;
  width: 100% !important;
  height: auto !important;
}


/* === v12.154 LOGO FOOTER RESPONSIVE === */
.footer-logo {
  display: block !important;
  text-align: center !important;
  margin: 0 auto 12px auto !important;
}
.footer-logo img {
  max-width: 480px !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 2 !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}
@media (max-width: 768px) {
  .footer-logo img {
    max-width: 240px !important;
    width: 100% !important;
  }
}
