/* 
    CASA DELLA BATTERIA 2026 - PROFESSIONAL LIGHT HI-TECH
    Clean, Modern, Corporate, Reliable.
    100% Fully Responsive (Mobile, Tablet, Desktop)
*/

:root {
    --bg-main: #FFFFFF;
    --bg-alt: #F4F7F9;
    --primary: #C1002D; /* Rosso Istituzionale */
    --primary-dark: #900021;
    --secondary: #1A2B48; /* Blu Tecnico */
    --text-main: #2D3436;
    --text-dim: #636E72;
    --border: #E1E8ED;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter-variable.woff2') format('woff2-variations');
    font-weight: 100 900;
}

*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

img, svg, video, iframe {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--secondary);
    font-weight: 800;
    line-height: 1.25;
    word-break: break-word;
    overflow-wrap: break-word;
}

h1 { font-size: clamp(2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); position: relative; margin-bottom: 2rem; }
h2::after {
    content: ''; display: block; width: 50px; height: 4px; 
    background: var(--primary); margin-top: 10px; border-radius: 2px;
}

/* Header & Nav */
header {
    position: fixed; top: 0; width: 100%; z-index: 10000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 0.7rem 0;
    box-shadow: var(--shadow);
}

.nav-flex {
    display: flex; justify-content: space-between; align-items: center; width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    max-width: calc(100% - 65px);
}

.logo img {
    height: 42px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 480px) {
    .logo img {
        height: 34px;
    }
}

.nav-links {
    display: flex; gap: 2.5rem; list-style: none;
}

.nav-links a {
    text-decoration: none; color: var(--text-main);
    font-weight: 600; font-size: 0.95rem; transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

/* Hero Section */
.hero {
    padding: 160px 0 90px;
    background: radial-gradient(circle at 90% 10%, rgba(193, 0, 45, 0.03), transparent),
                radial-gradient(circle at 10% 90%, rgba(26, 43, 72, 0.03), transparent);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    align-items: center;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
}

.hero-image {
    width: 100%;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--secondary);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 2;
}

.hero-badge .badge-big-num {
    font-size: 2.5rem;
    font-weight: 900;
    display: block;
    line-height: 1;
}

.hero-badge .badge-big-txt {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .hero {
        padding: 120px 0 50px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .hero-grid .reveal:first-child {
        order: 1;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-image-wrapper {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }
    .hero-badge {
        position: static;
        margin: 1.5rem auto 0;
        display: inline-flex;
        align-items: center;
        gap: 1rem;
        padding: 0.8rem 1.5rem;
        text-align: left;
    }
    .hero-badge .badge-big-num {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 105px 0 40px;
    }
    .hero h1 {
        font-size: clamp(1.75rem, 8vw, 2.3rem);
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Split Grid (Chi Siamo Preview & General Two-Col Layouts) */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4.5rem;
    align-items: center;
}

.split-image {
    width: 100%;
}

.split-image img {
    width: 100%;
    display: block;
    border-radius: var(--radius);
    border: 8px solid white;
    box-shadow: var(--shadow);
}

@media (max-width: 992px) {
    .split-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .split-image {
        max-width: 500px;
        margin: 0 auto;
        order: 1;
    }
    .split-text {
        order: 2;
        text-align: left;
    }
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
}

@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Cards & Components */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    width: 100%;
}

@media (max-width: 600px) {
    .card {
        padding: 1.75rem 1.25rem;
    }
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 1rem 2rem; border-radius: 5px;
    font-weight: 700; text-transform: uppercase; cursor: pointer;
    transition: var(--transition); border: none; text-decoration: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary); color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 10px 20px rgba(193, 0, 45, 0.2);
}

.btn-outline {
    background: transparent; border: 2px solid var(--secondary); color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary); color: white;
}

/* Sections */
.section-alt {
    background-color: var(--bg-alt);
    padding: 90px 0;
}

.section-padding {
    padding: 90px 0;
}

@media (max-width: 768px) {
    .section-alt, .section-padding {
        padding: 55px 0;
    }
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-grid img {
    width: 100%;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about-grid .order-mobile-image {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 3.5rem;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Two-Col Subpage Grid */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Hours Table Responsive */
.hours-table {
    width: 100%;
    border-collapse: collapse;
}

.hours-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

@media (max-width: 480px) {
    .hours-table td {
        padding: 0.5rem 0.25rem;
        font-size: 0.82rem;
    }
}

/* Footer Unificato Professionale */
.site-footer, footer {
    background: #111C2E;
    color: #E2E8F0;
    padding: 70px 0 25px;
    border-top: 3px solid var(--primary);
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1.3fr 1.5fr;
    gap: 3.5rem;
    margin-bottom: 3.5rem;
}

.footer-col h4, .footer-title {
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after, .footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #A0AFC0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    color: #718096;
    line-height: 1.6;
}

/* Mobile Menu & Car Battery Button */
.burger-battery {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    background: #FFFFFF;
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
    z-index: 1005;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(193, 0, 45, 0.25);
    flex-shrink: 0;
}

.burger-battery:hover {
    transform: scale(1.05);
}

/* Aura circolare lampeggiante / pulsante */
.battery-aura {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(193, 0, 45, 0.8);
    pointer-events: none;
    animation: batteryPulse 1.8s infinite ease-out;
}

@keyframes batteryPulse {
    0% {
        transform: scale(0.9);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(193, 0, 45, 0.7);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 10px 3px rgba(193, 0, 45, 0.4);
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
        box-shadow: 0 0 16px 5px rgba(193, 0, 45, 0);
    }
}

.battery-icon {
    width: 26px;
    height: 18px;
    transition: transform 0.3s ease;
}

.burger-battery.active {
    background: var(--secondary);
    border-color: #FFFFFF;
    box-shadow: 0 0 20px rgba(193, 0, 45, 0.6);
}

.burger-battery.active .battery-icon {
    transform: rotate(90deg);
}

.burger-battery.active .battery-aura {
    border-color: rgba(255, 255, 255, 0.8);
    animation: batteryPulseActive 1s infinite ease-out;
}

@keyframes batteryPulseActive {
    0% { transform: scale(0.9); opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    100% { transform: scale(1.35); opacity: 0; box-shadow: 0 0 20px 6px rgba(255, 255, 255, 0); }
}

/* Responsive Mobile Navigation Drawer */
@media (max-width: 992px) {
    .burger-battery {
        display: inline-flex;
        z-index: 10005;
    }
    
    .burger { display: none !important; }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 360px;
        height: 100vh;
        background: #FFFFFF !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 95px 2rem 2.5rem;
        box-shadow: -15px 0 50px rgba(0, 0, 0, 0.3);
        transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 10001;
        overflow-y: auto;
        border-left: 4px solid var(--primary);
    }
    
    .nav-links.nav-active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #EDF2F7;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        padding: 1.15rem 0;
        font-size: 1.15rem;
        font-weight: 700;
        color: #1A2B48 !important;
        transition: all 0.2s ease;
    }

    .nav-links a.active, .nav-links a:hover {
        color: var(--primary) !important;
        padding-left: 10px;
    }

    .nav-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(10, 20, 35, 0.65);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 9990;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-backdrop.active {
        display: block;
        opacity: 1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Sidebar & Side Nav for Subpages */
.side-nav-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
}

.side-nav {
    position: sticky;
    top: 120px;
}

.side-nav ul {
    list-style: none;
}

.side-nav li {
    margin-bottom: 0.8rem;
}

.side-nav a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.95rem;
    display: block;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    transition: var(--transition);
}

.side-nav a:hover, .side-nav a.active {
    background: var(--primary);
    color: #FFFFFF !important;
    padding-left: 1.5rem;
}

@media (max-width: 992px) {
    .side-nav-wrapper {
        display: block;
    }
    
    .side-nav {
        position: relative;
        top: 0;
        margin-bottom: 2.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--border);
    }
    
    .side-nav h3 { 
        display: block; 
        font-size: 1rem; 
        margin-bottom: 1rem; 
        text-align: center;
    }
    
    .side-nav ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .side-nav li { margin-bottom: 0; }
    
    .side-nav a {
        padding: 0.8rem;
        background: var(--bg-alt);
        border-radius: 8px;
        text-align: center;
        font-size: 0.85rem;
    }
    
    .side-nav a:hover, .side-nav a.active {
        padding-left: 0.8rem;
        background: var(--primary);
        color: #FFFFFF !important;
    }
}

@media (max-width: 480px) {
    .side-nav ul {
        grid-template-columns: 1fr;
    }
}

/* Lists and Checkmarks */
article ul, .check-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

article ul li, .check-list li {
    list-style-type: none !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 0.8rem !important;
    color: var(--text-dim);
}

article ul li::before, .check-list li::before {
    content: none !important;
}

.check-list svg {
    flex-shrink: 0;
    margin-top: 3px;
    stroke: #C1002D !important;
    color: #C1002D !important;
}

/* ==========================================================================
   COOKIE CONSENT & PRIVACY POLICY SYSTEM (GDPR & ePrivacy Compliant)
   ========================================================================== */

/* Floating Button in basso a sinistra per riaprire preferenze cookie */
.cookie-settings-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9995;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1A2B48;
    color: #FFFFFF;
    border: 2px solid #C1002D;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.cookie-settings-btn:hover {
    transform: scale(1.1);
    background: #C1002D;
    border-color: #FFFFFF;
    box-shadow: 0 0 20px rgba(193, 0, 45, 0.6);
}

.cookie-settings-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.cookie-settings-btn:hover svg {
    transform: rotate(25deg);
}

.cookie-settings-btn::after {
    content: "Preferenze Cookie";
    position: absolute;
    left: 58px;
    background: #1A2B48;
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.1);
}

.cookie-settings-btn:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Cookie Banner principale (in basso al centro) */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 94%;
    max-width: 880px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
    padding: 1.5rem 1.75rem;
    z-index: 10040;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.4s;
}

.cookie-banner.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.75rem;
}

.cookie-banner-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
    flex-shrink: 0;
}

.cookie-banner-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
}

.cookie-banner-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin-bottom: 1.25rem;
}

.cookie-banner-text a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-banner-text a:hover {
    color: var(--secondary);
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cookie-btn-primary {
    background: var(--primary);
    color: #FFFFFF;
}

.cookie-btn-primary:hover {
    background: #900022;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(193, 0, 45, 0.3);
}

.cookie-btn-secondary {
    background: #F1F5F9;
    color: var(--secondary);
    border: 1px solid #CBD5E0;
}

.cookie-btn-secondary:hover {
    background: #E2E8F0;
    color: #000000;
}

.cookie-btn-outline {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid #CBD5E0;
}

.cookie-btn-outline:hover {
    background: #F8FAFC;
    color: var(--secondary);
    border-color: var(--secondary);
}

/* Modale unificato per Privacy Policy, Cookie Policy e Preferenze */
.policy-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.policy-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.policy-modal-dialog {
    background: #FFFFFF;
    width: 100%;
    max-width: 860px;
    max-height: 88vh;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.policy-modal-backdrop.active .policy-modal-dialog {
    transform: scale(1) translateY(0);
}

.policy-modal-header {
    padding: 1.25rem 1.75rem;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.policy-modal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
    display: flex;
    align-items: center;
}

.policy-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-dim);
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.policy-modal-close:hover {
    color: var(--primary);
    background: #EDF2F7;
}

.policy-modal-body {
    padding: 1.75rem;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #2D3748;
}

.policy-modal-body h2, .policy-modal-body h3 {
    color: var(--secondary);
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.policy-modal-body h2 {
    font-size: 1.2rem;
    border-bottom: 2px solid #EDF2F7;
    padding-bottom: 0.4rem;
}

.policy-modal-body h3 {
    font-size: 1.05rem;
}

.policy-modal-body p {
    margin-bottom: 1rem;
}

.policy-modal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.policy-modal-body li {
    margin-bottom: 0.4rem;
    color: var(--text-dim);
}

.policy-modal-footer {
    padding: 1rem 1.75rem;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Switch per categorie cookie */
.cookie-category-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cookie-category-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--secondary);
    margin: 0;
}

.cookie-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #CBD5E0;
    transition: .3s;
    border-radius: 26px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cookie-switch input:checked + .cookie-slider {
    background-color: #2E7D32;
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(22px);
}

.cookie-switch input:disabled + .cookie-slider {
    background-color: #A0AEC0;
    cursor: not-allowed;
    opacity: 0.8;
}

.cookie-badge-always {
    font-size: 0.75rem;
    background: #E2E8F0;
    color: #4A5568;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

/* Footer legal links */
.footer-bottom .legal-link, .site-footer .legal-link {
    color: #CBD5E0;
    text-decoration: underline;
    transition: color 0.2s;
    cursor: pointer;
}

.footer-bottom .legal-link:hover, .site-footer .legal-link:hover {
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.25rem 1rem;
        width: 96%;
        bottom: 12px;
    }
    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }
    .cookie-btn {
        width: 100%;
    }
    .policy-modal-dialog {
        max-height: 94vh;
        width: 96%;
    }
    .policy-modal-header, .policy-modal-body, .policy-modal-footer {
        padding: 1rem;
    }
    .cookie-settings-btn {
        bottom: 16px;
        left: 16px;
        width: 42px;
        height: 42px;
    }
}

