/* ===== SELF-HOSTED FONTS (GDPR — no Google CDN) ===== */
@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/PlayfairDisplay-Variable.ttf') format('truetype');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('fonts/Outfit-300.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('fonts/Outfit-400.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('fonts/Outfit-500.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Outfit';
    src: url('fonts/Outfit-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
/* ===================================================== */

:root {
    /* Premium Forest Palette */
    --primary-color: #1a4d2e;
    /* Deep Forest Green */
    --primary-light: #4f9a6e;
    --primary-dark: #0f2e1b;
    --accent-color: #d4a017;
    /* Metallic Gold */
    --accent-hover: #b8860b;

    --text-color: #1a1a1a;
    --text-light: #f5f5f5;
    --bg-color: #f0f2f0;
    --card-bg: #FFFEFC;

    --font-main: 'Outfit', sans-serif;

    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);

    --glass: blur(12px) saturate(180%);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fafaf8;
    /* Subtle off-white with warmth */
    background-image: radial-gradient(#1a4d2e 0.4px, transparent 0.4px), radial-gradient(#1a4d2e 0.4px, #fafaf8 0.4px);
    background-size: 15px 15px;
    background-position: 0 0, 7.5px 7.5px;
    background-attachment: scroll;
    /* Fixed to scroll for better display compatibility */
    opacity: 0.98;
    /* Subtle blend */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Headings - Improved visibility for elderly users */
h1,
h2,
h3 {
    color: var(--primary-color);
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.2rem;
    line-height: 1.3;
}

h3 {
    font-size: 1.6rem;
    line-height: 1.4;
}

p {
    font-size: 1.125rem; /* 18px — minimo consigliato per utenti senior */
    line-height: 1.8;
    color: #333; /* più scuro di #444 per miglior contrasto */
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    min-height: 48px; /* touch target minimo WCAG per senior */
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #FFFEFC;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    transition: transform 0.3s ease-in-out, padding 0.4s ease;
    transform: translateY(0);
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow);
}

.header.hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.header.scrolled .logo-img {
    height: 50px;
}

.nav-list {
    display: flex;
    gap: 30px;
    margin-left: auto;
    /* Spinge i link verso il bordo destro */
}

.nav-link {
    font-weight: 500;
    color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-dark);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

/* Hero Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Green semi-transparent overlay */
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 46, 27, 0.35), rgba(26, 77, 46, 0.25));
    z-index: 1;
}

.hero-content {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(2px);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 800px;
    margin: 0 20px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 10px 15px !important;
        margin-bottom: 20px;
    }

    /* Fix mobile background attachment */
    .hero-slide {
        background-attachment: scroll;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding-bottom: 30px;
    }

    .hero-content {
        padding: 1.5rem;
        margin-top: 80px;
    }
}

.hero-content h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.08;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 300;
    opacity: 0.9;
}

/* Hero CTA Buttons */
.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.hero-ctas .btn {
    padding: 16px 30px;
    text-decoration: none;
    font-size: 1rem;
}

.btn-white {
    background: white;
    color: #1a4d2e;
}

.btn-gold {
    background: var(--accent-color);
    color: var(--primary-dark);
    font-weight: 700;
    border: 2px solid transparent;
    transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
}

.btn-gold:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(212, 160, 23, 0.45);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

@media (max-width: 768px) {
    .hero-ctas {
        flex-direction: column;
        gap: 10px;
    }

    .hero-ctas .btn {
        padding: 14px 25px;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
}

/* Sections */
.nav-list {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
    /* Ensure vertical alignment */
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    font-size: 1.1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-color);
    font-weight: 600;
}

/* Cart Icon - Fixed width to prevent layout shift */
.cart-icon-container {
    position: relative;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    margin-left: 20px;
}

.cart-icon-container:hover {
    transform: scale(1.1);
}

.cart-icon-container.bounce {
    animation: cartBounce 0.6s ease;
}

@keyframes cartBounce {

    0%,
    100% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2) translateY(-5px);
    }

    50% {
        transform: scale(1.1) translateY(-2px);
    }

    75% {
        transform: scale(1.15) translateY(-3px);
    }
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: #333;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Floating Back Button - MOBILE ONLY */
.floating-back-btn {
    position: fixed;
    bottom: 100px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: none;
    /* Hidden by default, shown on mobile */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 998;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

@media (max-width: 768px) {
    .floating-back-btn {
        display: flex;
    }
}

.floating-back-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.floating-back-btn svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2.5;
    fill: none;
}

/* Desktop Header Back Arrow - appears on scroll */
.header-back-arrow {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 15px;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateX(-10px);
}

.header-back-arrow svg {
    width: 20px;
    height: 20px;
    stroke: white;
    stroke-width: 2.5;
    fill: none;
}

.header-back-arrow:hover {
    transform: scale(1.1);
}

/* Show back arrow when header is scrolled - desktop only */
@media (min-width: 769px) {
    .header-back-arrow {
        display: flex;
    }

    .header.scrolled .header-back-arrow {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Floating Cart Mobile */
.floating-cart-mobile {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.2s ease;
}

.floating-cart-mobile:hover {
    transform: scale(1.1);
}

.floating-cart-mobile.bounce {
    animation: cartBounce 0.6s ease;
}

.cart-count-mobile {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--accent-color);
    color: #333;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

@media (min-width: 769px) {
    .floating-cart-mobile {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .cart-icon-container {
        display: none !important;
    }
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 3000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    margin: 0;
    color: white;
    font-size: 1.3rem;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

#cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info strong {
    display: block;
    margin-bottom: 5px;
}

.remove-item {
    background: #ff4444;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

@media (max-width: 500px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Offers Section */
.offers-flyer-container {
    max-width: 900px;
    margin: 0 auto 50px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 242, 240, 0.95));
    border-radius: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 3px solid var(--accent-color);
    transform: translateZ(0);
    transition: var(--transition);
}

.offers-flyer-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.offers-flyer-container img {
    border-radius: 15px;
}

/* Offers Grid */
.services-overview-mobile {
    display: none;
    margin-bottom: 40px;
}

.services-overview-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a4d2e;
    opacity: 0.55;
    margin-bottom: 14px;
}

.services-overview-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1.5px solid #d4e6d9;
    border-radius: 16px;
    overflow: hidden;
}

.service-overview-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    color: #1a4d2e;
    text-decoration: none;
    border-bottom: 1px solid #e8f0ea;
    transition: background 0.18s ease, padding-left 0.18s ease;
}

.service-overview-card:last-child {
    border-bottom: none;
}

.service-overview-card:hover {
    background: #f0f7f2;
    padding-left: 26px;
}

.sov-num {
    font-size: 0.72rem;
    font-weight: 800;
    color: #1a4d2e;
    opacity: 0.35;
    min-width: 24px;
    font-variant-numeric: tabular-nums;
}

.sov-name {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a2e1a;
}

.sov-arrow {
    font-size: 1.1rem;
    color: #1a4d2e;
    opacity: 0.4;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.service-overview-card:hover .sov-arrow {
    opacity: 1;
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .services-overview-mobile {
        display: block;
    }
}

/* Help Card Wrapper - Desktop centered, Mobile normal */
.help-card-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.help-card-wrapper .help-card {
    max-width: 700px;
    width: 100%;
}

@media (max-width: 768px) {
    .help-card-wrapper {
        margin-bottom: 20px;
    }

    .help-card-wrapper .help-card {
        max-width: 100%;
    }
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
    gap: 30px;
    justify-content: center;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 450px;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

/* Image Container - Fixed size with contain */
.product-image-container {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f5f5f5;
    overflow: hidden;
    position: relative;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* CRITICAL: adatta qualsiasi immagine */
    object-position: center;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.3;
}

/* Specs Badges */
.product-specs-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.spec-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-elettrico,
.badge-batteria {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-benzina {
    background: #ffebee;
    color: #c62828;
}

.badge-gasolio {
    background: #f5f5f5;
    color: #424242;
    border: 1px solid #ddd;
}

.badge-manuale {
    background: #f3e5f5;
    color: #7b1fa2;
}

.product-price {
    font-size: 1.5rem;
    color: #222;
    font-weight: 700;
    margin-top: auto;
    text-align: right;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-end;
    gap: 5px;
}

.product-price small {
    font-size: 0.8rem;
    color: #555;
    font-weight: 500;
}

.product-desc {
    font-size: 1rem; /* aumentato da 0.9rem per leggibilità senior */
    color: #555;
    margin-bottom: 12px;
    line-height: 1.6;
    flex: 1;
    white-space: pre-line;
    /* Rispetta gli a capo inseriti dall'admin */
}

/* Brands Scroller */
.brands-section {
    background-color: white;
    overflow: hidden;
    padding: 40px 0;
}

.brands-scroller {
    width: 100%;
    overflow: hidden;
}

.brands-track {
    display: flex;
    gap: 50px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.brand-item {
    flex: 0 0 auto;
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Colored by default */
    filter: none;
    opacity: 1;
    transition: var(--transition);
}

.brand-item:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.service-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    border: var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
    /* Larger for better visibility */
}

.service-card p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
    /* Darker for better contrast */
}

/* Footer */
.footer {
    background-color: #222;
    color: white;
    padding: 40px 0 15px;
    /* Reduced from 60px to 40px */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

/* Footer heading - maintains h4 visual styling when using h2 for semantic hierarchy */
.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

/* Service card title - maintains h3 visual styling when using h2 for semantic hierarchy */
.service-card-title {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
}

/* Timeline heading - maintains h3 visual styling when using h2 for semantic hierarchy */
.timeline-heading {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Privacy/Cookie page headings - maintains h3 visual styling when using h2 for semantic hierarchy */
.privacy-heading {
    font-size: 1.3rem;
    margin-bottom: 10px;
    margin-top: 10px;
    color: var(--primary-color);
}

.footer-col p {
    margin-bottom: 10px;
    color: #aaa;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.admin-link {
    font-size: 0.8rem;
    color: #444;
}

.site-version {
    font-size: 0.75rem;
    color: #555;
    font-weight: 500;
    opacity: 0.8;
}

/* Social Icons in Footer */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-social img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.footer-social a:hover img {
    filter: brightness(0) invert(0.2);
}

.admin-link:hover {
    color: var(--accent-color);
}

/* Responsive */
/* Responsive */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 2000;
        /* Higher than nav */
        background: none;
        border: none;
        cursor: pointer;
    }

    .mobile-menu-btn .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--primary-color);
        transition: var(--transition);
    }

    /* Change hamburger color to white when menu is active */
    .mobile-menu-btn.active .bar {
        background-color: white;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: 33vw;
        min-width: 280px;
        /* Ensure usability on phones */
        height: 100vh;
        background-color: rgba(26, 77, 46, 0.95);
        /* Dark green glass */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 120px 0 40px;
        /* Top padding to clear header */
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1500;
        border-top-left-radius: 30px;
        border-bottom-left-radius: 30px;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        /* Align left */
        padding-left: 40px;
        gap: 25px;
    }

    .nav-link {
        font-size: 1.5rem;
        /* Larger for elderly users */
        color: #ffffff !important;
        /* Pure white forced */
        font-weight: 500;
        /* Medium weight for visibility */
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
        /* Strong shadow for contrast */
    }

    /* Active page in mobile menu - use gold for visibility */
    .nav-link[style*="color: var(--primary-color)"] {
        color: var(--accent-color) !important;
        font-weight: 700;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    }

    .nav-link:hover {
        color: var(--accent-color) !important;
        padding-left: 10px;
        /* Slide effect on hover */
        font-weight: 600;
    }

    /* Adjust cart icon in mobile menu */
    .cart-icon-container {
        color: white;
        margin-left: 0;
    }

    /* Stack featured offers vertically on mobile */
    .offers-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Cookie Banner */
/* Cookie Banner - Modal Style */
.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-banner.show {
    display: flex;
    opacity: 1;
}

.cookie-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cookie-modal {
    position: relative;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    padding: 40px;
    z-index: 10000;
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.cookie-close:hover {
    color: var(--primary-color);
}

.nav-link {
    color: #333;
    /* Darker for better contrast */
    font-weight: 500;
    font-size: 1.05rem;
    /* Slightly larger */
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.cookie-content h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.cookie-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
}

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

.cookie-btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.cookie-accept {
    background: var(--primary-color);
    color: white;
}

.cookie-accept:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.cookie-reject {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.cookie-reject:hover {
    background: rgba(26, 77, 46, 0.1);
}

/* Mobile: Full Screen */
@media (max-width: 768px) {
    .cookie-modal {
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 30px;
    }

    .cookie-content {
        max-width: 500px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }
}

/* iubenda Style Cookie Banner */
.cookie-modal.iubenda-style {
    max-width: 560px;
    padding: 30px;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-modal.iubenda-style h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.cookie-modal.iubenda-style p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.cookie-links {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.cookie-links a {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cookie-links a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Cookie Categories */
.cookie-categories {
    margin-bottom: 25px;
}

.cookie-category {
    border-bottom: 1px solid #eee;
}

.category-header {
    display: flex;
    align-items: center;
    padding: 15px 0;
    gap: 15px;
}

.category-name {
    flex: 1;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

.category-arrow {
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.category-arrow:hover {
    color: var(--primary-color);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked+.toggle-slider {
    background-color: #4d9fd6;
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(22px);
}

.toggle-switch input:disabled+.toggle-slider {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Stacked Buttons */
.cookie-buttons-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cookie-btn-full {
    width: 100%;
    padding: 14px 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background: white;
    color: #333;
}

.cookie-btn-full:hover {
    border-color: #999;
    background: #f9f9f9;
}

.cookie-accept-all {
    background: #4d9fd6;
    color: white;
    border-color: #4d9fd6;
}

.cookie-accept-all:hover {
    background: #3a8bc2;
    border-color: #3a8bc2;
}

@media (max-width: 768px) {
    .cookie-modal.iubenda-style {
        max-width: 100%;
        height: auto;
        max-height: 100vh;
        border-radius: 0;
    }

    .cookie-links {
        flex-direction: column;
        gap: 10px;
    }

    .cookie-links a {
        text-align: center;
    }
}

/* Product Detail Modal */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.product-modal-card {
    background: white;
    width: 90%;
    max-width: 900px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.product-modal-overlay.active .product-modal-card {
    transform: scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    color: #333;
    transition: color 0.2s;
}

.close-modal-btn:hover {
    color: var(--accent-color);
}

.modal-content-wrapper {
    display: flex;
    flex-direction: row;
}

.modal-image-col {
    flex: 1;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-image-col img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
}

.modal-info-col {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info-col h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.modal-info-col p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.modal-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 30px;
}

.modal-actions .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .modal-content-wrapper {
        flex-direction: column;
    }

    .modal-image-col {
        height: 250px;
    }

    .modal-info-col {
        padding: 25px;
    }

    .modal-info-col h2 {
        font-size: 1.5rem;
    }
}

/* Category Cards Section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

@media (max-width: 1100px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.category-card {
    display: flex;
    flex-direction: row;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-card-image {
    width: 50%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    margin: 12px;
    transition: var(--transition);
    flex-shrink: 0;
}

.category-card:hover .category-card-image {
    transform: scale(1.03);
}

.category-card-content {
    flex: 1;
    padding: 25px 20px 25px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
}

.category-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    font-style: italic;
    white-space: nowrap;
}

.category-card-subtitle {
    font-size: 1rem; /* aumentato per leggibilità senior */
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.category-card-arrow {
    margin-top: 15px;
    width: 45px;
    height: 45px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    transition: var(--transition);
    align-self: flex-start;
}

.category-card:hover .category-card-arrow {
    background: white;
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Mobile: Stack layout */
@media (max-width: 600px) {
    .category-card {
        flex-direction: column;
        height: auto;
    }

    .category-card-image {
        width: calc(100% - 24px);
        height: 180px;
        margin: 12px 12px 0 12px;
    }

    .category-card-content {
        padding: 20px;
    }
}

/* Dropdown Submenu */
.nav-item-dropdown {
    position: relative;
}

.nav-item-dropdown>.nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-item-dropdown>.nav-link::after {
    content: '';
    display: none;
}

.nav-item-dropdown:hover>.nav-link::after {
    display: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 15px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1100;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

.dropdown-link {
    display: block;
    padding: 12px 25px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.dropdown-link:hover {
    background: linear-gradient(90deg, rgba(26, 77, 46, 0.1), transparent);
    color: var(--primary-color);
    padding-left: 30px;
}

.dropdown-link::after {
    display: none !important;
}

/* Mobile dropdown menu */
@media (max-width: 1024px) {
    .nav-item-dropdown>.nav-link::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        background: rgba(0, 50, 30, 0.6);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 0;
        margin-top: 10px;
        margin-left: 0;
        margin-right: 20px;
        display: none;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .dropdown-menu::before {
        display: none;
    }

    .nav-item-dropdown.open .dropdown-menu {
        display: block;
        padding: 10px 0;
    }

    .dropdown-link {
        color: rgba(255, 255, 255, 0.95);
        padding: 12px 20px;
        font-size: 1.2rem;
        border-radius: 8px;
        margin: 2px 8px;
        transition: all 0.2s ease;
    }

    .dropdown-link:hover {
        background: rgba(255, 255, 255, 0.15);
        color: var(--accent-color);
        padding-left: 25px;
    }
}

/* Whiteboard Display (Frontend) */
.offers-whiteboard-display {
    position: relative;
    min-height: 300px;
    padding: 20px;
}

.whiteboard-offer-display {
    background: transparent;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.whiteboard-offer-display:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.whiteboard-offer-display img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

/* Mobile: Stack offers vertically */
@media (max-width: 768px) {
    .offers-whiteboard-display {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .whiteboard-offer-display {
        position: static !important;
        width: 100% !important;
        height: auto !important;
    }

    .whiteboard-offer-display img {
        width: 100%;
        height: auto;
    }
}

/* Offer Zoom Modal */
.offer-zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
}

.offer-zoom-modal.active {
    display: flex;
}

.offer-zoom-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.offer-zoom-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    z-index: 5001;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.offer-zoom-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 15px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.offer-zoom-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    transition: var(--transition);
}

.offer-zoom-close:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

/* Checkbox Group Fix */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-group label {
    line-height: 1.4;
    font-size: 0.95rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .checkbox-group {
        gap: 10px;
    }

    .checkbox-group label {
        font-size: 0.9rem;
    }
}

/* ========================================
   MOBILE PRODUCT CARDS - 30% SMALLER
   ======================================== */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
        gap: 15px;
        align-items: stretch;
        /* Altezza uniforme per riga */
    }

    .product-card {
        min-height: 350px;
        /* Ridotto da 450px (circa -22%) */
    }

    .product-info {
        padding: 12px;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-desc {
        font-size: 0.8rem;
    }

    .product-price {
        font-size: 1.2rem;
    }
}

/* ========================================
   UNIFORM CARD HEIGHT PER ROW
   ======================================== */
.products-grid {
    align-items: stretch;
    /* Tutte le card stessa altezza nella riga */
}

.product-card {
    height: 100%;
    /* Si espande per riempire la riga */
}

.product-info {
    display: flex;
    flex-direction: column;
}

.product-desc {
    flex-grow: 1;
    /* La descrizione si espande per occupare spazio disponibile */
}

/* ========================================
   BREADCRUMBS - STILE APPLE
   ======================================== */
.breadcrumbs {
    padding: 15px 0;
    background: transparent;
    font-size: 1rem; /* aumentato da 0.9rem */
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs-list a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs-list a:hover {
    color: var(--primary-color);
}

.breadcrumbs-list .separator {
    color: #999;
    font-size: 0.8rem;
}

.breadcrumbs-list .current {
    color: var(--primary-color);
    font-weight: 500;
}

/* ========================================
   INFO BANNER SCROLLER
   ======================================== */
.info-banner-section {
    background: linear-gradient(135deg, #1a4d2e 0%, #2d5f3f 100%);
    padding: 20px 0;
    overflow: hidden;
    margin: 40px 0;
}

.info-banner-track {
    display: flex;
    gap: 40px;
    animation: scrollInfoBanner 25s linear infinite;
    width: max-content;
}

.info-banner-item {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    padding: 0 4px;
}

.info-stat {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.info-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.info-banner-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 1.1rem;
    padding: 0 6px;
    user-select: none;
}

@keyframes scrollInfoBanner {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ========================================
   TEST DRIVE POPUP BANNER
   ======================================== */
.test-drive-banner {
    background: linear-gradient(135deg, #1a4d2e 0%, #0d2e1a 100%);
    border-radius: 20px;
    padding: 32px 30px;
    margin: 40px auto;
    max-width: 800px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

.test-drive-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.td-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 8px;
}

.td-title {
    color: white;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.test-drive-expand {
    background: var(--accent-color);
    border: none;
    color: #1a2e1a;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.test-drive-expand:hover {
    opacity: 0.88;
}

.test-drive-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.test-drive-content.expanded {
    max-height: 300px;
    padding-top: 20px;
}

.test-drive-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    color: white;
}

.test-drive-info p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 12px;
    font-size: 1rem; /* aumentato da 0.95rem */
    line-height: 1.7;
}

.test-drive-info strong {
    color: var(--accent-color);
}

/* ==========================================================
   ACCESSIBILITÀ SENIOR (ICP: agricoltori 50-90 anni)
   WCAG 2.1 AA — touch target 48px, testo leggibile, contrasto
   ========================================================== */

/* Numero di telefono: il touch target più importante per il senior */
a[href^="tel"] {
    display: inline-flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    min-height: 52px;
    padding: 8px 4px;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Footer: tel e email visibili e cliccabili */
.footer a[href^="tel"],
.footer a[href^="mailto"] {
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: #e0e0e0; /* più chiaro del gray standard */
    padding: 6px 0;
}

/* Footer testo indirizzi e orari: più grande */
.footer-col p {
    font-size: 1rem;
    line-height: 1.9;
    color: #ccc;
}

/* Nav link mobile: touch target 48px */
@media (max-width: 1024px) {
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

/* Sezione contatti: testo grande e leggibile */
.contact-info p,
.contact-details p,
.contact-block p {
    font-size: 1.125rem;
    line-height: 1.9;
}

/* Etichette label nei form */
label,
.form-label {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    display: block;
    margin-bottom: 6px;
}

/* Input e textarea: font non inferiore a 16px (evita zoom iOS) */
input,
textarea,
select {
    font-size: 1rem !important;
    padding: 12px 16px;
    min-height: 48px;
    border-radius: 8px;
    border: 2px solid #ccc;
    color: #222;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    outline: 3px solid rgba(26, 77, 46, 0.25);
    outline-offset: 2px;
}

/* Info ticker: testo chiaro e abbastanza grande */
.info-text {
    font-size: 1rem;
    line-height: 1.5;
}

/* Mobile: testo ancora più grande per schermi piccoli tenuti a distanza */
@media (max-width: 480px) {
    p {
        font-size: 1.05rem;
    }

    .service-card h3,
    .service-card-title {
        font-size: 1.3rem;
    }

    a[href^="tel"] {
        font-size: 1.5rem;
        min-height: 60px;
    }

    .btn {
        min-height: 52px;
        font-size: 1.05rem;
    }
}

/* =============================================
   SUBCATEGORY CARDS GRID
   (forestale, giardinaggio, agricoltura)
   ============================================= */
.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.subcat-card {
    background: #ffffff;
    border-radius: 18px;
    aspect-ratio: 4/5;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    transition: transform 0.28s ease,
                box-shadow 0.28s ease;
}

.subcat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.subcat-img-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 12px 8px;
    overflow: hidden;
    position: relative;
}

.subcat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.28s ease;
    mix-blend-mode: multiply;
    position: relative;
    z-index: 1;
}

.subcat-card:hover .subcat-img-wrap img {
    transform: scale(1.08);
}

.subcat-label {
    background: #f0f5f0;
    color: #1a4d2e;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.04em;
    padding: 10px 8px;
    line-height: 1.2;
}

@media (max-width: 600px) {
    .subcategory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .subcat-label {
        font-size: 0.75rem;
        padding: 8px 6px;
    }
}

/* Page hero reused across category/subcategory pages */
.page-hero {
    padding: 120px 0 60px;
    text-align: center;
    color: white;
    margin-bottom: 50px;
}

.page-hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 15px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}