/* ==========================================================================
   STILI GENERALI E VARIABILI
   ========================================================================== */
:root {
    --primary-color: #0279b5;
    --primary-dark: #015885;
    --accent-color: #cc0000;
    --text-color: #333333;
    --bg-light: #f4f7f6;
    --footer-bg: #222222;
    --border-color: #eeeeee;
    --font-main: 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light); 
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.logo img {
    max-height: 50px; 
    width: auto;
    transition: all 0.3s ease;
}

.logo img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bg-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.logo-link:hover .logo-text {
    opacity: 0.8;
}
/* ==========================================================================
   HEADER E NAVIGAZIONE
   ========================================================================== */

header {
    background-color: rgba(2, 121, 181, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--bg-white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-highlight {
    color: #ffcc00;
    font-weight: 900;
}

/* Navigazione */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--bg-white);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    font-size: 1.05rem;
}

nav a:not(.nav-btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #ffcc00;
    transition: width 0.3s ease;
}

nav a:not(.nav-btn):hover::after, 
nav a.active:not(.nav-btn)::after {
    width: 100%;
}

nav a:not(.nav-btn):hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

nav a.nav-btn {
    background-color: #ffcc00;
    color: var(--primary-dark);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

nav a.nav-btn:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Menu Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center; 
    gap: 6px;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeAnimation 15s infinite;
    z-index: 1;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }

@keyframes fadeAnimation {
    0%   { opacity: 0; transform: scale(1.05); }
    10%  { opacity: 1; transform: scale(1); }
    33%  { opacity: 1; transform: scale(1); }
    43%  { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; }
}

.slider-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(2, 121, 181, 0.95) 0%, rgba(2, 50, 80, 0.5) 55%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.hero-text-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 50px 45px;
    border-radius: 16px;
    max-width: 650px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.hero-text-box h2 {
    color: #ffcc00;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 2px;
    font-weight: 700;
    display: inline-block;
    background: rgba(0, 0, 0, 0.25);
    padding: 6px 18px;
    border-radius: 30px;
}

.hero-text-box h1 {
    color: var(--bg-light);
    font-size: 3.2rem;
    margin: 0 0 20px 0;
    line-height: 1.15;
    text-shadow: none;
}

.highlight-text {
    color: #ffcc00;
}

.hero-text-box p {
    font-size: 1.2rem;
    margin: 0 0 35px 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* ==========================================================================
   STILI DEI BOTTONI
   ========================================================================== */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-5px);
}

.btn-icon {
    transition: transform 0.3s ease;
}
.btn:hover .btn-icon {
    transform: translateX(6px);
}

.btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%);
    color: var(--bg-white);
    border: none;
    box-shadow: 0 8px 20px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); 
}

.btn-outline {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%); /* Diventa bianco pieno */
    color: var(--primary-color); /* Il testo prende il tuo azzurro #0279b5 */
    border-color: var(--bg-white);
    box-shadow: 0 12px 25px rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   SEZIONI CONTENUTO (GRID & CARDS)
   ========================================================================== */
.section {
    padding: 90px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    color: var(--primary-color);
    text-align: center;
    font-size: 2.6rem;
    margin-bottom: 10px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
    margin: 15px auto 0 auto;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.15rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.grid-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 16px;
    flex: 1 1 calc(50% - 20px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.card-studio {
    border-top: 5px solid var(--primary-color);
}
.card-studio .card-icon {
    color: var(--primary-color);
    background-color: rgba(2, 121, 181, 0.1);
}
.card-studio h3 { color: var(--primary-color); }
.card-studio .card-link { color: var(--primary-color); }
.card-studio .card-link:hover { color: var(--primary-dark); }
.card-studio .custom-list li::before { color: var(--primary-color); }

.card-sanluca {
    border-top: 5px solid #008080;
}
.card-sanluca .card-icon {
    color: #008080;
    background-color: rgba(0, 128, 128, 0.1);
}
.card-sanluca h3 { color: #008080; }
.card-sanluca .card-link { color: #008080; }
.card-sanluca .card-link:hover { color: #005959; }
.card-sanluca .custom-list li::before { color: #008080; }

/* Icona circolare in alto */
.card-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 25px;
    transition: transform 0.4s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.card h3 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
}

.card p {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.custom-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.custom-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.5;
}

.custom-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Area dei Link in fondo alle card */
.card-footer {
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.card-link {
    font-weight: 700;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
}

.card-link .arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.card-link:hover .arrow {
    transform: translateX(6px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--footer-bg);
    color: #e0e0e0;
    padding: 60px 5% 20px 5%;
    font-size: 0.95rem;
    border-top: 5px solid var(--primary-color);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col {
    flex: 1 1 300px;
}

.footer-col h4 {
    color: var(--bg-white);
    margin-bottom: 25px;
    font-size: 1.3rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col p {
    margin: 8px 0;
    line-height: 1.6;
}

.orari-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 3px solid var(--primary-color);
}

.struttura-titolo {
    color: #ffcc00;
    margin-top: 0 !important;
    font-size: 1.05rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.map-container:hover {
    transform: translateY(-3px);
}

.map-container iframe {
    display: block;
    width: 100%;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    color: #888;
}

.footer-bottom a {
    color: #aaa;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #ffcc00; 
}

/* ==========================================================================
   PAGINA CHI SIAMO
   ========================================================================== */

.split-layout {
            display: flex;
            flex-wrap: wrap;
            gap: 40px;
            align-items: stretch;
            /* max-width: 1200px; */
            margin: 80px auto;
            padding: 0 5%;
        }

        .split-text, .manual-carousel {
            flex: 1 1 calc(50% - 20px);
            min-width: 320px;
        }

        .manual-carousel {
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.06);
            min-height: 450px;
        }

        .carousel-item {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            opacity: 0;
            transition: opacity 0.6s ease-in-out;
            z-index: 1;
        }

        .carousel-item.active {
            opacity: 1;
            z-index: 2;
        }

        .carousel-control {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background-color: rgba(0, 0, 0, 0.4);
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background-color 0.3s, transform 0.3s;
        }

        .carousel-control:hover {
            background-color: var(--primary-color);
            transform: translateY(-50%) scale(1.1);
        }

        .prev-btn { left: 20px; }
        .next-btn { right: 20px; }

 /* ==========================================================================
   PAGINA SERVIZI
   ========================================================================== */

.page-servizi {
    background-color: var(--bg-light);
}

.services-header {
    text-align: center;
    max-width: 800px;
    margin: 60px auto 40px auto;
    padding: 0 5%;
}

.services-header h1 {
    color: var(--primary-color);
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-header p {
    font-size: 1.15rem;
    color: #555;
    line-height: 1.6;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    /* max-width: 1200px; */
    margin: 0 auto 80px auto;
    padding: 0 5%;
}

.service-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    flex: 1 1 calc(33.333% - 30px);
    min-width: 300px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 2.5rem;
    margin: 0 auto 20px auto; 
    color: var(--primary-color);
    background: rgba(2, 121, 181, 0.1);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.service-card h3 {
    color: #333;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
    text-align: center;
}

.service-card p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card-sanluca {
    border-top: 4px solid var(--primary-color);
}

.service-card-sanluca .service-icon {
    color: var(--primary-color);
    background: rgba(0, 128, 128, 0.1);
}

.card-bullet-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 5px;
    margin-bottom: 20px;
    color: #555;
    flex-grow: 1;
}

.card-bullet-list li {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.card-bullet-list li::marker {
    color: var(--primary-color);
    font-size: 1.1em;
}

.service-card-sanluca .card-bullet-list li::marker {
    color: var(--primary-color);
}

/* ==========================================================================
   STILI PER LE CARD CON IMMAGINE IN ALTO (Terapie San Luca)
   ========================================================================== */
.service-card-image {
    padding: 0 !important; 
    overflow: hidden; 
    display: flex;
    flex-direction: column;
}

.card-top-img {
    width: 100%;
    height: 220px; 
    object-fit: cover; 
    border-bottom: 4px solid var(--primary-color);
    transition: transform 0.5s ease;
}

/* Effetto zoom leggero sull'immagine quando passi sopra la card */
.service-card-image:hover .card-top-img {
    transform: scale(1.05);
}

/* Contenitore per il testo sotto l'immagine */
.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sanluca-list li::marker {
    color: var(--primary-color);
    font-size: 1.2em;
}

/* ==========================================================================
   LAYOUT CORRETTO GRIGLIA TRATTAMENTI + CAROSELLO
   ========================================================================== */

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    /* max-width: 1200px; */
    margin: 0 auto 80px auto;
    padding: 0 5%;
}

.service-card-image, .card-locked {
    flex: 1 1 300px; 
    max-width: 380px;
}

.double-width-carousel {
    flex: 1 1 600px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-height: 500px;
}

.auto-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; animation: autoFade 12s infinite; }
.auto-slide:nth-child(1) { animation-delay: 0s; }
.auto-slide:nth-child(2) { animation-delay: 4s; }
.auto-slide:nth-child(3) { animation-delay: 8s; }
@keyframes autoFade { 0% { opacity: 0; } 10% { opacity: 1; } 33% { opacity: 1; } 43% { opacity: 0; } 100% { opacity: 0; } }

.carousel-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px; background: linear-gradient(to top, var(--primary-color), transparent); color: white; z-index: 2; }

/* FIX FOOTER: Assicura che il footer sia sempre sotto */
.main-footer { clear: both; width: 100%; margin-top: 50px; }

/* ==========================================================================
   MEDIA QUERIES: DA GRANDE A PICCOLO)
   ========================================================================== */

/* 1. Tablet e schermi medi (900px) */
@media (max-width: 900px) {
    .card { flex: 1 1 100%; }
    .hero-content h1 { font-size: 2.3rem; }
}

/* 2. Smartphone (768px): Gestione Menu e Layout */
@media (max-width: 768px) {
    header { padding: 15px 5%; }
    
    .menu-toggle { display: flex !important; }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(2, 121, 181, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2); 
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .logo img {
        max-height: 35px !important;
    }

    header {
        padding: 10px 5% !important;
    }

    .logo a {
        font-size: 1.2rem !important;
    }
    .btn {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    nav.open { max-height: 400px; }

    nav ul {
        flex-direction: column !important;
        align-items: center;
        padding: 20px 0 !important;
        gap: 0 !important;
    }

    nav ul li { width: 100%; text-align: center; }

    nav a {
        display: block !important;
        padding: 16px 20px !important;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transition: background-color 0.3s ease;
    }

    nav a:active, nav a:hover {
        background-color: rgba(255,255,255,0.15); 
    }

    nav a.nav-btn {
        margin: 20px auto !important; 
        width: 80% !important; 
        border-radius: 30px !important;
        border: none !important; 
    }
    
    nav a:not(.nav-btn)::after { display: none !important; }

    /* Layout Griglia su mobile */
    .service-card-image, .card-locked, .double-width-carousel {
        flex: 1 1 100% !important;
        max-width: 100%;
    }

    .hero-text-box {
        padding: 30px 20px !important; 
        height: auto !important;       
        min-height: auto !important;
    }

    .hero-text-box h1 {
        font-size: 2rem !important; 
        margin-bottom: 15px !important;
    }

    .hero-slider {
        height: auto !important;
        min-height: 500px !important;
        padding: 50px 0;
    }
}

/* ==========================================================================
   COOKIE + MAPPA BLOCCATA
   ========================================================================== */

/* ---- Segnaposto mappa ---- */
.map-consent {
    position: relative;
    width: 100%;
    min-height: 220px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.map-consent .map-frame {
    display: none;
    width: 100%;
    height: 220px;
    border: 0;
}

.map-consent.is-unlocked .map-frame { display: block; }
.map-consent.is-unlocked .map-placeholder { display: none; }

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 220px;
    padding: 20px;
    text-align: center;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 12px, transparent 12px 24px);
}

.map-placeholder p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #e9edf0;
    max-width: 34ch;
}

/* ---- Bottoni cookie ---- */
.cookie-btn {
    font: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 11px 26px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.cookie-btn--accetta {
    background: var(--primary-color, #0279b5);
    color: #fff;
}
.cookie-btn--accetta:hover { filter: brightness(1.12); }

.cookie-btn--rifiuta {
    background: transparent;
    color: var(--primary-color, #0279b5);
    border-color: var(--primary-color, #0279b5);
}
.cookie-btn--rifiuta:hover {
    background: var(--primary-color, #0279b5);
    color: #fff;
}

.cookie-btn--ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    padding: 9px 20px;
}
.cookie-btn--ghost:hover { background: rgba(255, 255, 255, 0.24); }

.cookie-btn:focus-visible {
    outline: 3px solid #ffd166;
    outline-offset: 2px;
}

.cookie-banner {
    display: none;
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 9999;
    flex-direction: column;
    gap: 16px;
    width: min(360px, calc(100% - 48px));
    padding: 22px 24px;
    background: #14181b;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color, #0279b5);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease;
}

.cookie-banner.is-visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d7dcdf;
}

.cookie-content a { color: #6cc2e8; }

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons .cookie-btn { flex: 1; padding: 10px 18px; font-size: 0.85rem; }

/* Link "Gestisci cookie" nel footer */
.footer-bottom .cookie-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

@media (max-width: 560px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
    }
}