/*!
 * Millecani — foglio di stile unico
 * Generato unendo i moduli in css/ nell'ordine di caricamento originale.
 * NON modificare questo file: si lavora sui moduli e si rigenera.
 */



/* =====================================================
   css/base/variables.css
   ===================================================== */

/* CSS Custom Properties - Variabili Millecani */
:root {
    /* Brand Colors — Manuale Grafico Millecani
       Giallo:    Pantone 116 C  /  CMYK 0-16-100-0  /  #FFD200
       Antracite: Pantone 426 C  /  CMYK 74-67-61-65 /  #26282C
       I due valori sopra sono gli unici colori di marca. Le varianti
       (primary-dark e la scala di grigi) sono derivate mantenendo la
       tinta dell'antracite, e non vanno usate al posto dei colori base. */
    --primary-color: #FFD200; /* Giallo Millecani — Pantone 116 C */
    --primary-dark: #D6B000;  /* derivato: giallo scurito, stessa tinta */
    --secondary-color: #26282C; /* Antracite Millecani — Pantone 426 C */
    --text-color: #ffffff;
    --text-light: #adb5bd;
    --white: #ffffff;
    --light-gray: #2F3237;
    --medium-gray: #3C4045;
    --dark-gray: #1E2023;
    --darker-gray: #17181B;
    
    /* Tipografia */
    --font-primary: 'Montserrat', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}


/* =====================================================
   css/base/reset.css
   ===================================================== */

/* Reset e Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background: var(--dark-gray);
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Lista con puntini gialli */
ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

ul li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Eccezioni per footer e menu di navigazione */
.footer-links ul li::before,
.nav-menu li::before {
    display: none;
}

.footer-links ul li,
.nav-menu li {
    padding-left: 0;
}

/* Email Links Styling */
a[href^="mailto:"] {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-base);
}

a[href^="mailto:"]:hover {
    opacity: 0.8;
    text-decoration: none;
}

a[href^="mailto:"]:visited {
    color: inherit;
}

a[href^="mailto:"]:focus {
    outline: 1px dotted var(--primary-color);
    outline-offset: 2px;
}


/* =====================================================
   css/base/typography.css
   ===================================================== */

/* Tipografia e Stili di Testo */

/* Section Titles */
.section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: clamp(0.75rem, 2vw, 1.5rem);
    color: var(--text-color);
}

.section-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 300;
    text-align: center;
    color: var(--text-light);
    max-width: clamp(400px, 80vw, 700px);
    margin: 0 auto;
}

.text-center {
    text-align: center;
    margin-top: 3rem;
}

/* Page Hero Typography */
.page-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    color: var(--white);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: clamp(0.25rem, 1vw, 0.75rem);
}

.page-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
}

/* Hero Typography */
.hero-brand {
    display: block;
    font-size: var(--font-size-5xl);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-transform: lowercase;
}

.hero-brand-large {
    display: block;
    font-size: 6rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.7);
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-transform: lowercase;
}

.hero-slogan {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 300;
    font-style: italic;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: var(--font-size-xl);
    font-weight: 300;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Logo Styles */
.logo {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: -0.4rem;
    text-transform: lowercase;
    font-display: swap;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.tagline {
    font-family: 'Caveat', 'Comic Sans MS', 'Brush Script MT', cursive;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--white);
    text-transform: none;
    letter-spacing: 0.5px;
    margin-top: 0.3rem;
    line-height: 1;
    font-display: swap;
    position: relative;
    z-index: 1;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 0.75rem;
    object-fit: contain;
    object-position: center;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* CTA Typography */
.cta-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: var(--font-size-xl);
    font-weight: 300;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Telephone Links */
a[href^="tel:"] {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

a[href^="tel:"]:hover {
    color: inherit;
}


/* =====================================================
   css/base/animations.css
   ===================================================== */

/* Animazioni e Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) translateY(20px) scale(0.95);
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateY(0) scale(1);
        backdrop-filter: blur(5px);
    }
}

@keyframes lightboxFadeOut {
    from {
        opacity: 1;
        transform: translateY(-50%) translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-50%) translateY(10px) scale(0.98);
    }
}

@keyframes backdropFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

@keyframes backdropFadeOut {
    from {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
    to {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Classi di animazione */
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease forwards;
    opacity: 0;
}

.slide-in-right {
    animation: slideInRight 0.8s ease forwards;
    opacity: 0;
}

.slide-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-lg);
}

/* Scroll animations */
@media (prefers-reduced-motion: no-preference) {
    .fade-in-up,
    .slide-in-left,
    .slide-in-right,
    .slide-in-up {
        opacity: 0;
    }
    
    .fade-in-up.animate,
    .slide-in-left.animate,
    .slide-in-right.animate,
    .slide-in-up.animate {
        opacity: 1;
    }
}


/* =====================================================
   css/layout/header.css
   ===================================================== */

/* Header e Navigazione */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(33, 37, 41, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--primary-color);
    z-index: 1000;
    transition: all var(--transition-base);
    transform: translateY(0);
}

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

.header-scrolled {
    background: rgba(33, 37, 41, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tagline-img {
    height: 20px;
    width: auto;
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    transition: color var(--transition-base);
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition-base);
}

/* Mobile Navigation - Responsive Strategy */

/* Smartphone (320px - 480px) */
@media (max-width: 480px) {
    .header .nav {
        padding: 1rem 1rem !important;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -250px;
        width: clamp(180px, 33%, 220px);
        height: 100vh;
        background: rgba(33, 37, 41, 0.98);
        flex-direction: column;
        padding: 5rem 1rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        opacity: 1;
        visibility: visible;
        transition: right 0.3s ease;
        backdrop-filter: blur(10px);
        border-left: 2px solid var(--primary-color);
        border-radius: var(--border-radius) 0 0 var(--border-radius);
        overflow-y: auto;
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        color: var(--white);
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: var(--font-size-base);
        text-align: center;
        position: relative;
    }

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

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

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Overlay per menu mobile */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Smartphone Grandi/Phablet (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .header .nav {
        padding: 1rem 1rem !important;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -310px;
        width: clamp(220px, 33%, 280px);
        height: 100vh;
        background: rgba(33, 37, 41, 0.98);
        flex-direction: column;
        padding: 5rem 1rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        opacity: 1;
        visibility: visible;
        transition: right 0.3s ease;
        backdrop-filter: blur(10px);
        border-left: 2px solid var(--primary-color);
        border-radius: var(--border-radius) 0 0 var(--border-radius);
        overflow-y: auto;
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        color: var(--white);
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: var(--font-size-base);
        text-align: center;
        position: relative;
    }

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

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

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Overlay per menu mobile */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* Tablet Piccoli (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .header .nav {
        padding: 1rem 1rem !important;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -330px;
        width: 300px;
        height: 100vh;
        background: rgba(33, 37, 41, 0.98);
        flex-direction: column;
        padding: 5rem 1rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        opacity: 1;
        visibility: visible;
        transition: right 0.3s ease;
        backdrop-filter: blur(10px);
        border-left: 2px solid var(--primary-color);
        border-radius: var(--border-radius) 0 0 var(--border-radius);
        overflow-y: auto;
        z-index: 1001;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        color: var(--white);
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: var(--font-size-base);
        text-align: center;
        position: relative;
    }

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

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

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Overlay per menu mobile */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}


/* =====================================================
   css/layout/footer.css
   ===================================================== */

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1rem;
    position: relative;
    z-index: 10;
    margin-top: 0;
}

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

.footer-brand h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    color: var(--primary-color);
    margin-bottom: -0.4rem;
    text-transform: lowercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-display: optional;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.footer-brand p:first-of-type {
    font-style: italic;
    margin-bottom: 1rem;
}

.footer-desc {
    color: #adb5bd;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    transition: color var(--transition-base);
}

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

.footer-contact p {
    color: #adb5bd;
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid #495057;
    padding-top: 1rem;
    text-align: center;
    color: #adb5bd;
    font-size: var(--font-size-sm);
}

.footer-logo {
    height: 30px;
    width: auto;
    margin-right: 0.75rem;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
}

/* Mobile responsive per footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-logo {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}


/* =====================================================
   css/layout/sections.css
   ===================================================== */

/* Sezioni e Layout Comuni */

/* Story Section */
.story-section {
    padding: var(--section-padding);
    background: var(--dark-gray);
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-text h2 {
    margin-bottom: 2rem;
}

.story-intro p {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* Mission Section */
.mission-section {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-text h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.mission-text p {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.mission-image img,
.service-image img {
    width: 100%;
    height: auto;
}

.rounded-image {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
}

/* Philosophy Section */
.philosophy-section {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-text h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.philosophy-text p {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Service Section */
.service-section {
    padding: var(--section-padding);
    background: var(--dark-gray);
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-text h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.service-text p {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* CEO Section */
.ceo-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--dark-gray);
}

.ceo-message {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.ceo-content blockquote {
    font-size: var(--font-size-2xl);
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
}

.ceo-content blockquote::before {
    content: '"';
    font-size: 4rem;
    font-weight: 900;
    position: absolute;
    top: -1rem;
    left: -2rem;
    color: var(--dark-gray);
    opacity: 0.3;
}

.ceo-signature {
    text-align: center;
}

.ceo-signature strong {
    display: block;
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ceo-signature span {
    font-size: var(--font-size-base);
    font-weight: 400;
    opacity: 0.8;
}

/* Mobile responsive sections */
@media (max-width: 768px) {
    .mission-grid,
    .service-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-grid .service-image {
        order: -1;
    }
    
    .ceo-content blockquote {
        font-size: var(--font-size-lg);
    }
    
    .ceo-content blockquote::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .page-hero {
        height: 50vh;
    }
}

/* Breadcrumb Navigation */
/* Quando la breadcrumb e' il primo elemento dopo l'intestazione fissa
   serve uno stacco, altrimenti ci finisce sotto e non si vede. */
.header + .breadcrumb-nav {
    padding-top: 7.5rem;
}

.breadcrumb-nav {
    background: var(--secondary-color);
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    padding: 0.85rem 0;
    font-size: 0.875rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb-item a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item a svg {
    width: 14px;
    height: 14px;
}

.breadcrumb-item.active {
    color: var(--text-color);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb-separator {
    color: #6d747a;
    font-weight: 300;
    margin: 0 0.25rem;
}

@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 0.5rem 0;
        font-size: 0.875rem;
    }
    
    .breadcrumb {
        gap: 0.375rem;
    }
}


/* =====================================================
   css/components/buttons.css
   ===================================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: clamp(0.25rem, 1vw, 0.75rem);
    padding: clamp(0.625rem, 2vw, 1.125rem) clamp(1.25rem, 4vw, 2.5rem);
    border: none;
    border-radius: clamp(6px, 1.5vw, 12px);
    font-family: var(--font-primary);
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: clamp(0.3px, 0.1vw, 0.8px);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--dark-gray);
    box-shadow: var(--box-shadow);
}

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark-gray);
    transform: translateY(-2px);
}

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

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

.btn-large {
    padding: clamp(1rem, 3vw, 1.5rem) clamp(2rem, 6vw, 4rem);
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
}

.btn-sm {
    padding: clamp(0.375rem, 1.5vw, 0.75rem) clamp(0.75rem, 2.5vw, 1.5rem);
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
    min-width: auto;
    white-space: nowrap;
}

/* WhatsApp Button */
.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-whatsapp svg {
    margin-right: 0.5rem;
}

/* Choice Buttons per form WhatsApp */
.btn-choice {
    background: var(--light-gray);
    color: var(--text-color);
    border: 2px solid var(--medium-gray);
    border-radius: clamp(6px, 1.5vw, 12px);
    padding: clamp(1rem, 3vw, 2rem) clamp(1.25rem, 4vw, 2.5rem);
    font-family: var(--font-primary);
    font-size: clamp(0.875rem, 2.5vw, 1.125rem);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.btn-choice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-choice:hover::before {
    left: 100%;
}

.btn-choice.selected {
    background: var(--primary-color);
    color: var(--dark-gray);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 210, 0, 0.4);
    transform: translateY(-2px);
}

.btn-choice.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: var(--font-size-lg);
    font-weight: 900;
    color: var(--dark-gray);
}

.btn-choice:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: clamp(15px, 3vw, 25px);
    right: clamp(15px, 3vw, 25px);
    z-index: 1000;
    width: clamp(50px, 10vw, 70px);
    height: clamp(50px, 10vw, 70px);
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-base);
    animation: whatsappPulse 3s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    fill: white;
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8), 0 0 0 10px rgba(37, 211, 102, 0.1); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}

/* Phone Number in Buttons - Bold Font Only */
.btn[href^="tel:"] {
    font-weight: 700;
    letter-spacing: 0.8px;
}

/* Mobile responsive buttons */
@media (max-width: 768px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: var(--font-size-xs);
    }
    
    /* Phone number bold in mobile too */
    .btn[href^="tel:"] {
        font-weight: 700;
        letter-spacing: 0.8px;
    }
    
    .btn-choice {
        padding: 1.25rem 1.5rem;
        font-size: var(--font-size-base);
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float svg {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .btn-choice {
        padding: 1rem;
        font-size: var(--font-size-sm);
    }
}


/* =====================================================
   css/components/hero.css
   ===================================================== */

/* Hero Sections */
.hero {
    position: relative;
    height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 150%;
    object-fit: cover;
    object-position: center;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.7), rgba(255, 210, 0, 0.3));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-title {
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.hero-scroll span {
    font-size: var(--font-size-sm);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.scroll-indicator {
    width: 2px;
    height: 30px;
    background: var(--white);
    margin: 0 auto;
    animation: bounce 2s infinite;
}

/* Page Hero (per pagine interne) */
.page-hero {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 112px;
}

/* Animazioni specifiche per tutte le pagine hero - metodo unificato con translateY */
.index-hero .hero-image,
.chi-siamo-hero .hero-image,
.prodotti-hero .hero-image,
.contatti-hero .hero-image,
.qualita-hero .hero-image {
    animation: heroSlideDown 8s ease-in-out forwards;
    /* Ottimizzazioni per fluidità */
    will-change: transform;
    backface-visibility: hidden;
    transform: translateY(-20%) translateZ(0);
}

/* Animazione unificata usando translateY per desktop e mobile */
@keyframes heroSlideDown {
    0% {
        transform: translateY(-30%) translateZ(0);
    }
    100% {
        transform: translateY(-10%) translateZ(0);
    }
}

/* Hero Content Section */
.hero-content-section {
    padding: 3rem 0;
    background: var(--dark-gray);
    text-align: center;
}

.hero-content-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Section */
.cta-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-dark));
    color: var(--white);
    text-align: center;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Mobile responsive hero */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Responsive: breakpoint moderno per mobile */
@media (max-width: 768px) {
    .page-hero {
        height: 50vh;
    }
    
    /* Tutte le pagine hero: altezza specifica mobile */
    .page-hero.index-hero,
    .page-hero.chi-siamo-hero,
    .page-hero.prodotti-hero,
    .page-hero.contatti-hero,
    .page-hero.qualita-hero {
        height: 30vh !important;
    }
    
    /* Solo chi-siamo: animazione mobile con zoom integrato */
    .chi-siamo-hero .hero-image {
        animation: heroSlideDownMobile 8s ease-in-out forwards;
        transform-origin: center center;
        transform: translateY(-20%) translateZ(0);
    }
    
    /* Altre pagine hero: animazione mobile senza zoom */
    .index-hero .hero-image,
    .prodotti-hero .hero-image,
    .contatti-hero .hero-image,
    .qualita-hero .hero-image {
        animation: heroSlideDown 8s ease-in-out forwards;
        transform-origin: center center;
        transform: translateY(-20%) translateZ(0);
    }
}

/* Keyframes mobile con scale integrato */
@keyframes heroSlideDownMobile {
    0% {
        transform: scale(1.1) translateY(-30%) translateZ(0);
    }
    100% {
        transform: scale(1.1) translateY(-10%) translateZ(0);
    }
}


/* =====================================================
   css/components/cards.css
   ===================================================== */

/* Cards e Sezioni */

/* Features Section */
.features {
    padding: 2rem 0 var(--section-padding);
    background: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--medium-gray);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 1px solid rgba(255, 210, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-card h2 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Product Cards */
.products-preview {
    padding: var(--section-padding);
    background: var(--darker-gray);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 45vw), 1fr));
    gap: clamp(1rem, 4vw, 3rem);
    margin: clamp(2rem, 5vw, 4rem) 0;
}

.products-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(140px, 28vw), 1fr));
    gap: clamp(0.5rem, 2vw, 1.5rem);
    margin: clamp(2rem, 5vw, 4rem) 0;
    justify-items: center;
}

.product-mini {
    background: var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 210, 0, 0.1);
    width: 140px; /* Larghezza fissa per proporzioni ottimali */
    max-width: 140px;
}

.product-mini:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow-lg);
}

.product-mini-image {
    margin-bottom: 0.75rem;
}

.product-mini-image img {
    width: 100%;
    height: 120px;
    object-fit: contain; /* Mostra l'immagine completa */
    border-radius: var(--border-radius);
    background: transparent; /* Niente sfondo bianco */
}

.product-mini h3 {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    line-height: 1.2;
}

.product-card {
    background: var(--medium-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 210, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.product-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: var(--primary-color);
    color: var(--dark-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Value Cards */
.values-section {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--medium-gray);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 1px solid rgba(255, 210, 0, 0.1);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.value-icon {
    margin-bottom: 1.5rem;
}

.value-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.value-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Info Cards */
.company-info {
    padding: var(--section-padding);
    background: var(--light-gray);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--medium-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid rgba(255, 210, 0, 0.1);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.info-icon {
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.info-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Mobile responsive cards */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    /* ESATTAMENTE 2 contenitori per riga su mobile */
    .products-grid-mini {
        grid-template-columns: 1fr 1fr; /* ESATTAMENTE 2 contenitori per riga */
        gap: 0.75rem;
        justify-items: center;
    }

    .product-mini {
        padding: 0.5rem;
        width: 130px; /* Contenitori più stretti su mobile */
        max-width: 130px;
    }

    .product-mini-image img {
        height: 90px; /* Immagini ottimizzate per contenitori stretti */
    }

    .product-mini h3 {
        font-size: calc(var(--font-size-xs) * 0.85); /* Testo più piccolo */
        line-height: 1.1;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .value-card,
    .info-card {
        padding: 1.5rem;
    }
}


/* =====================================================
   css/components/forms.css
   ===================================================== */

/* Forms e Input */

/* Contact Form Styles */
.contact-form {
    background: var(--medium-gray);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255, 210, 0, 0.1);
}

.form-group {
    margin-bottom: clamp(1rem, 3vw, 2rem);
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: clamp(0.25rem, 1vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: clamp(0.3px, 0.1vw, 0.8px);
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: clamp(0.75rem, 2.5vw, 1.25rem);
    border: 2px solid var(--medium-gray);
    border-radius: clamp(6px, 1.5vw, 10px);
    font-family: var(--font-primary);
    font-size: clamp(0.875rem, 2vw, 1rem);
    color: var(--dark-gray);
    background: var(--white);
    transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 210, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Contact Info */
.contact-info {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--medium-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-base);
    border: 1px solid rgba(255, 210, 0, 0.1);
}

.contact-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--dark-gray);
}

.contact-details h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-light);
    margin: 0;
}

/* Map Container */
.map-container {
    margin-top: 3rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Mobile responsive forms */
@media (max-width: 768px) {
    .contact-form {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1.5rem;
    }
}


/* =====================================================
   css/components/lightbox.css
   ===================================================== */

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    animation: lightboxFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-image-container {
    position: relative;
    overflow: hidden;
    cursor: grab;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-image-container.grabbing {
    cursor: grabbing;
}

.lightbox-image-container.zoom-in {
    cursor: zoom-in;
}

.lightbox-image-container.zoom-out {
    cursor: zoom-out;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 95vh;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.lightbox.closing {
    animation: backdropFadeOut 0.3s ease-out;
}

.lightbox.closing .lightbox-content {
    animation: lightboxFadeOut 0.3s ease-out;
}

/* Lightbox Close Button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 210, 0, 0.9);
    border: none;
    color: var(--dark-gray);
    font-size: 1.8rem;
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 10002;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 210, 0, 0.4);
}

.lightbox-close::before {
    content: "×";
    line-height: 1;
}

/* Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 210, 0, 0.8);
    border: none;
    color: var(--dark-gray);
    font-size: 2rem;
    font-weight: bold;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 10001;
}

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

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: 600;
}

/* Zoom Reset - Solo per double-click */
.lightbox-zoom-reset {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 210, 0, 0.9);
    border: none;
    color: var(--dark-gray);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    z-index: 10002;
}

.lightbox-zoom-reset.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-zoom-reset:hover {
    background: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(255, 210, 0, 0.4);
}

/* Zoom Level Indicator */
.lightbox-zoom-level {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lightbox-zoom-level.show {
    opacity: 1;
}

/* Zoom Instructions */
.lightbox-instructions {
    position: absolute;
    top: 80px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: var(--font-size-xs);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    max-width: 200px;
    line-height: 1.4;
}

.lightbox-instructions.show {
    opacity: 1;
}

/* Video Section */
.video-section {
    padding: 2rem 0 5rem 0;
    background: var(--dark-gray);
}

.video-container {
    text-align: center;
}

.video-wrapper {
    margin-top: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 16/9;
    position: relative;
}

/* Fallback per browser che non supportano aspect-ratio */
@supports not (aspect-ratio: 16/9) {
    .video-wrapper {
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        height: 0;
    }
    
    .video-wrapper .company-video {
        position: absolute;
        top: 0;
        left: 0;
    }
}

.company-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Mobile responsive lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 98%;
        max-height: 90%;
        touch-action: pan-y;
    }
    
    .lightbox-close {
        top: -50px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}


/* =====================================================
   css/components/cookie-banner.css
   ===================================================== */

/* Cookie Banner - GDPR Compliant */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    z-index: 10000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-banner-text h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #FFD200;
}

.cookie-banner-text p {
    margin: 0;
    opacity: 0.9;
}

.cookie-banner-text a {
    color: #FFD200;
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #fff;
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 120px;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #FFD200 0%, #F4B942 100%);
    color: #2c3e50;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #F4B942 0%, #E6A83D 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 210, 0, 0.3);
}

.cookie-btn-reject {
    background: transparent;
    color: white;
    border: 2px solid #7f8c8d;
}

.cookie-btn-reject:hover {
    background: #7f8c8d;
    border-color: #7f8c8d;
}

.cookie-btn-settings {
    background: transparent;
    color: #FFD200;
    border: 2px solid #FFD200;
    font-size: 13px;
    min-width: 100px;
}

.cookie-btn-settings:hover {
    background: #FFD200;
    color: #2c3e50;
}

/* Cookie Settings Modal */
.cookie-settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cookie-settings-overlay.show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-modal {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.cookie-settings-overlay.show .cookie-settings-modal {
    transform: scale(1);
}

.cookie-settings-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #ecf0f1;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 15px 15px 0 0;
}

.cookie-settings-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
}

.cookie-settings-header p {
    margin: 8px 0 0;
    color: #7f8c8d;
    font-size: 14px;
}

.cookie-settings-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #95a5a6;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cookie-settings-close:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

.cookie-settings-body {
    padding: 20px 30px 30px;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #ecf0f1;
    border-radius: 10px;
    background: #f8f9fa;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.cookie-category-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.cookie-category.essential .cookie-category-title::after {
    content: " (Sempre Attivi)";
    font-size: 12px;
    color: #27ae60;
    font-weight: normal;
}

.cookie-category-description {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

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

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #FFD200;
}

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

.cookie-toggle input:disabled + .cookie-toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-settings-footer {
    padding: 20px 30px;
    border-top: 1px solid #ecf0f1;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.cookie-settings-footer .cookie-btn {
    min-width: 120px;
}

/* Footer Cookie Settings Link */
.footer-cookie-settings {
    color: #adb5bd;
    text-decoration: none;
    transition: color var(--transition-base);
    cursor: pointer;
}

.footer-cookie-settings:hover {
    color: var(--primary-color);
    text-decoration: none;
}



/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .cookie-banner-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .cookie-btn {
        min-width: 100px;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .cookie-settings-modal {
        margin: 20px;
        max-height: calc(100vh - 40px);
    }
    
    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .cookie-category {
        padding: 15px;
    }
    
    .cookie-settings-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cookie-banner-text {
        font-size: 13px;
    }
    
    .cookie-banner-text h3 {
        font-size: 15px;
    }
    
    .cookie-btn {
        min-width: 80px;
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Print styles */
@media print {
    .cookie-banner,
    .cookie-settings-overlay {
        display: none !important;
    }
}


/* =====================================================
   css/components/vacation-popup.css
   ===================================================== */

/* ====================================
   MILLECANI - VACATION POPUP COMPONENT
   Popup per avviso vacanze estive agosto 2025
   ==================================== */

.vacation-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vacation-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.vacation-popup-close {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.vacation-popup-close:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 210, 0, 0.6);
}

.vacation-popup-close:active {
    transform: rotate(90deg) scale(0.95);
}

.vacation-popup-image {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.4s ease;
}

.vacation-popup-overlay.active .vacation-popup-image {
    transform: scale(1);
    opacity: 1;
}

/* Loading state per l'immagine - spinner centrato nell'overlay */
.vacation-popup-overlay::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 210, 0, 0.3);
    border-top: 3px solid #FFD200;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 9999;
}

.vacation-popup-overlay.loaded::after {
    display: none;
}

.vacation-popup-image.loaded {
    opacity: 1;
}

/* Animazioni */
@keyframes popupSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.6) translateY(50px);
    }
    60% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Animazione di uscita */
.vacation-popup-overlay.closing {
    opacity: 0;
    transition: all 0.2s ease;
}

.vacation-popup-overlay.closing .vacation-popup {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vacation-popup-overlay {
        padding: 10px;
    }
    
    .vacation-popup-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .vacation-popup-image {
        max-width: 95vw;
        max-height: 75vh;
    }
}

@media (max-width: 480px) {
    .vacation-popup-overlay {
        padding: 5px;
    }
    
    .vacation-popup-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .vacation-popup-image {
        max-width: 98vw;
        max-height: 70vh;
    }
}

/* Accessibilità */
@media (prefers-reduced-motion: reduce) {
    .vacation-popup-overlay,
    .vacation-popup,
    .vacation-popup-close {
        transition: none;
        animation: none;
    }
    
    .vacation-popup-overlay.active .vacation-popup {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .vacation-popup-overlay {
        background: rgba(0, 0, 0, 0.95);
    }
    
    .vacation-popup-close {
        background: white;
        border: 2px solid #333;
    }
}

/* Focus management per accessibilità */
.vacation-popup-close:focus {
    outline: 3px solid #FFD200;
    outline-offset: 2px;
}

/* Impedisce lo scroll del body quando popup è aperto */
body.vacation-popup-open {
    overflow: hidden;
    padding-right: var(--scrollbar-width, 0);
}

/* Stili per il badge opzionale */
.vacation-popup-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #FFD200;
    color: #26282C;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Print styles - nasconde il popup in stampa */
@media print {
    .vacation-popup-overlay {
        display: none !important;
    }
}

/* Stili per browser legacy */
.vacation-popup-overlay.no-backdrop-filter {
    background: rgba(0, 0, 0, 0.85);
}

/* Ottimizzazioni performance */
.vacation-popup-overlay {
    will-change: opacity, visibility;
}

.vacation-popup {
    will-change: transform, opacity;
}

/* Controlli per debug (solo in development) */
.vacation-popup-debug {
    position: fixed;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    z-index: 10002;
    display: none;
}

/* Media query per orientamento */
@media (orientation: landscape) and (max-height: 600px) {
    .vacation-popup-image {
        max-height: 50vh;
    }
}


/* =====================================================
   css/pages/whatsapp.css
   ===================================================== */

/* WhatsApp Form Styles */
.whatsapp-header {
    padding: 200px 0 var(--section-padding);
    background: linear-gradient(135deg, var(--dark-gray), var(--light-gray));
    text-align: center;
}

.whatsapp-intro {
    max-width: 600px;
    margin: 0 auto;
}

.whatsapp-icon {
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 100 !important;
}

.whatsapp-icon svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 60px !important;
    height: 60px !important;
    margin: 0 auto !important;
}

.info-pills {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.pill {
    background: var(--primary-color);
    color: var(--dark-gray);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    white-space: nowrap;
}

.pill.pallet-info {
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    padding: 0.75rem 1.5rem;
    max-width: 100%;
    font-weight: 700;
    font-size: var(--font-size-base);
}

/* Main Form Section - Optimized for content with footer space */
.whatsapp-form-section {
    padding: 5rem 0 6rem;
    background: var(--light-gray);
    position: relative;
    overflow: visible !important;
}

/* Progressive Form Container */
.progressive-form-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: visible !important;
    height: auto !important;
}

/* Step Sections - Clean approach */
.step-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.step-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Step 2 specific - no extra height */
#step2.step-section {
    margin-top: 3rem;
    position: relative;
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
}

/* Step 2 card with fixed heights based on content */
#step2 .question-card {
    height: auto !important;
    overflow: visible !important;
    padding-bottom: 6rem !important;
    display: block !important;
}

/* Height for first-time users (SI) - all fields visible */
#step2.first-time-yes .question-card {
    min-height: 1600px !important;
}

/* Height for returning users (NO) - only basic fields visible */
#step2.first-time-no .question-card {
    min-height: 500px !important;
}

/* Force container to show all content */
#step2 .collapsible-content.open {
    height: auto !important;
    overflow: visible !important;
    display: block !important;
}

#step2.step-section:before {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

/* Question Card - Base styling */
.question-card {
    background: var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow-lg);
    border: 1px solid rgba(255, 210, 0, 0.1);
    text-align: center;
    margin-bottom: 2rem;
}

.question-card h2 {
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: 2rem;
}

.question-content h2 {
    color: var(--text-color);
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.4;
}

/* Button Choices */
.button-group,
.reason-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.btn-choice {
    padding: 1rem 2rem;
    background: var(--dark-gray);
    color: var(--white);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

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

.btn-choice.selected {
    background: var(--primary-color);
    color: var(--dark-gray);
    border-color: var(--primary-color);
}

/* Shipping Areas - VERTICAL LAYOUT */
.shipping-areas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.area-option {
    position: relative;
}

.area-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.area-option label {
    display: block;
    background: var(--light-gray);
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    padding: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    min-height: 60px;
}

.area-option label:hover {
    border-color: var(--primary-color);
    background: rgba(255, 210, 0, 0.1);
}

.area-option input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background: rgba(255, 210, 0, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 210, 0, 0.2);
}

.area-option input[type="radio"]:focus + label {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.area-option label strong {
    color: var(--primary-color);
    font-size: var(--font-size-base);
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.area-option label span {
    color: var(--text-light);
    font-size: var(--font-size-xs);
    line-height: 1.3;
    margin-top: 0;
    display: block;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-gray);
}

.step-navigation .btn {
    flex: 1;
    max-width: 200px;
}

/* Order Card Specific */
.order-card {
    text-align: left;
}

.order-card h2 {
    text-align: center;
}

.order-card .info-pills {
    justify-content: center;
    margin: 2rem 0;
}

/* Form Groups in Steps */
.question-card .form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.question-card .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.question-card label {
    display: block;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: var(--font-size-sm);
}

.question-card input,
.question-card textarea,
.question-card select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--dark-gray);
    background: var(--white);
    transition: border-color var(--transition-base);
}

.question-card input:focus,
.question-card textarea:focus,
.question-card select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 210, 0, 0.1);
}

.question-card textarea {
    resize: vertical;
    min-height: 120px;
}

/* Product Selector */
.product-selector {
    margin-bottom: 2rem;
}

.selector-row {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

/* Cart Styles */
.cart-section {
    margin-top: 2rem;
}

.cart-section h4 {
    color: var(--text-color);
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cart-items {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    background: var(--medium-gray);
}

.cart-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--light-gray);
    transition: background-color var(--transition-base);
}

.cart-item:hover {
    background: var(--light-gray);
}

.cart-item:last-child {
    border-bottom: none;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.item-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: var(--font-size-sm);
}

.item-quantity {
    font-size: var(--font-size-xs);
    color: var(--text-light);
}

.remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform var(--transition-base);
    border-radius: 50%;
}

.remove-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 0, 0, 0.1);
}

/* Pallet Status */
.pallet-status {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--medium-gray);
    border-radius: var(--border-radius);
    border: 2px solid var(--light-gray);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.status-header h4 {
    color: var(--text-color);
    font-size: var(--font-size-base);
    font-weight: 700;
    margin: 0;
}

.pallet-counter {
    background: var(--dark-gray);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid var(--primary-color);
}

.total-count {
    font-weight: 900;
    font-size: var(--font-size-lg);
    color: var(--primary-color);
}

.pallet-message {
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

.pallet-message.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.pallet-message.info {
    background: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
    border: 1px solid #0dcaf0;
}

.pallet-message.success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
    border: 1px solid #198754;
}

.pallet-examples {
    text-align: center;
    margin-top: 1rem;
}

.pallet-examples p {
    background: var(--primary-color);
    color: var(--dark-gray);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: var(--font-size-base);
    font-weight: 700;
    margin: 0;
    display: inline-block;
    white-space: normal;
    line-height: 1.4;
    max-width: 100%;
}

/* Collapsible Contact Form - SIMPLIFIED */
.collapsible-card {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--medium-gray);
    transition: all var(--transition-base);
}

.collapsible-header:hover {
    background: rgba(255, 210, 0, 0.05);
}

.collapsible-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
    font-weight: 700;
}

.collapsible-arrow {
    color: var(--primary-color);
    font-size: var(--font-size-2xl);
    font-weight: bold;
    transition: transform var(--transition-base);
    margin-left: 1rem;
}

/* Fixed collapsible system - respects HTML initial state */
.collapsible-content {
    display: none;
    overflow: visible;
}

.collapsible-content.open {
    display: block !important;
    padding: 2rem 0;
    overflow: visible !important;
    height: auto !important;
}

.contact-summary {
    padding: 2rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    margin: 1rem 0;
    border: 1px solid rgba(255, 210, 0, 0.2);
}

.summary-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.summary-content p {
    margin: 0;
    color: var(--text-color);
    font-size: var(--font-size-base);
    line-height: 1.6;
    flex: 1;
}

/* WhatsApp Button */
.btn-whatsapp {
    background: #25D366;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    line-height: 1.2;
}

.btn-whatsapp svg {
    flex-shrink: 0;
    vertical-align: middle;
}

/* Desktop version: logo sopra, testo più piccolo */
@media (min-width: 769px) {
    .btn-whatsapp {
        flex-direction: column;
        gap: 0.25rem;
        font-size: calc(var(--font-size-base) * 0.9); /* -10% */
        padding: 1.25rem 2rem;
    }
}

/* Mobile version: mantieni layout orizzontale */
@media (max-width: 768px) {
    .btn-whatsapp {
        flex-direction: row;
        gap: 0.5rem;
        font-size: var(--font-size-base);
        padding: 1rem 2rem;
    }
}

.btn-whatsapp:hover:not(:disabled) {
    background: #1da550;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.btn-whatsapp:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mobile responsiveness for WhatsApp form */
@media (max-width: 768px) {
    .whatsapp-header {
        padding: 150px 0 var(--section-padding);
    }
    
    .question-card {
        padding: 2rem;
    }
    
    .question-card .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .button-group,
    .reason-options {
        gap: 1rem;
    }
    
    .shipping-areas {
        gap: 0.75rem;
    }
    
    .area-option label {
        padding: 1rem;
    }
    
    .step-navigation {
        flex-direction: column;
    }
    
    .step-navigation .btn {
        max-width: none;
    }
    
    .order-card .selector-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .collapsible-header {
        padding: 1rem 0;
    }
    
    .collapsible-header h2 {
        font-size: var(--font-size-xl);
    }
    
    .collapsible-arrow {
        font-size: var(--font-size-xl);
    }
    
    .summary-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .summary-content p {
        font-size: var(--font-size-sm);
    }
    
    .btn-sm {
        align-self: stretch;
        text-align: center;
    }
    
    .contact-summary {
        padding: 1.5rem;
    }

    .cart-items {
        max-height: 200px;
    }
    
    .status-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* Product Selector Grid System - IMPROVED RESPONSIVE */
.products-grid-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 45vw), 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
    margin-top: clamp(1rem, 2.5vw, 2rem);
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.product-selector-card {
    border: 1px solid rgba(255, 210, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 0;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    height: clamp(320px, 55vw, 400px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    aspect-ratio: 4/5;
}

.product-selector-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.product-selector-card.in-cart {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(255, 210, 0, 0.3);
}

.product-selector-card.in-cart::before {
    content: "Nel carrello: " attr(data-cart-quantity) " sacchi";
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: var(--dark-gray);
    padding: 0.25rem 0.75rem;
    font-size: var(--font-size-xs);
    font-weight: 700;
    border-radius: var(--border-radius);
    z-index: 10;
}

/* No background overlay - image should be crystal clear */
.product-selector-card::after {
    display: none;
}

.product-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 2;
    justify-content: flex-end;
    padding: 1rem;
}

/* Remove product title since it's already in the image */
.product-title {
    display: none;
}

.product-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.75rem, 2.5vw, 1rem);
    position: absolute;
    bottom: clamp(1rem, 3vw, 1.5rem);
    left: clamp(1rem, 3vw, 1.5rem);
    right: clamp(1rem, 3vw, 1.5rem);
}

/* Remove product mini image container since we're using background images - ONLY in WhatsApp form */
.products-grid-selector .product-mini-image {
    display: none;
}

/* Three horizontal yellow boxes - IMPROVED RESPONSIVE */
.quantity-box, .minus-box, .plus-box {
    background: var(--primary-color);
    color: var(--dark-gray);
    border-radius: clamp(8px, 2vw, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 900;
    font-size: clamp(1rem, 3vw, 1.25rem);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    width: clamp(60px, 10vw, 75px);
    height: clamp(50px, 8vw, 60px);
    flex: none;
    min-width: 60px;
    min-height: 50px;
}

/* Quantity box styling */
.quantity-box {
    position: relative;
}

.quantity-display {
    font-size: clamp(0.875rem, 2.5vw, 1.25rem);
    font-weight: 900;
    color: var(--dark-gray);
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.quantity-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    font-size: clamp(0.875rem, 2.5vw, 1.25rem);
    font-weight: 900;
    color: var(--dark-gray);
    text-align: center;
    outline: none;
    display: none;
}

.quantity-input:focus {
    display: block;
}

.quantity-input.editing {
    display: block;
}

.minus-box:hover, .plus-box:hover {
    background: var(--white);
    transform: scale(1.05);
}

.minus-box:disabled, .plus-box:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Hide the old control bars */
.product-control-bar, .quantity-display-box, .controls-box {
    display: none;
}

/* Temporary Summary Section */
.temp-summary {
    background: var(--medium-gray);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.temp-summary h4 {
    color: var(--primary-color);
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: 1rem;
}

.temp-summary .temp-item {
    color: var(--text-color);
    font-size: var(--font-size-base);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.temp-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.temp-actions .btn {
    flex: 1;
    max-width: 200px;
    min-width: 150px;
}

@media (max-width: 768px) {
    .temp-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .temp-actions .btn {
        max-width: none;
    }
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--primary-color);
    color: var(--dark-gray);
    border-radius: 50%;
    font-size: var(--font-size-base);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.qty-btn:hover:not(:disabled) {
    background: var(--white);
    transform: scale(1.1);
}

.qty-btn:disabled,
.qty-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.qty-input {
    width: 50px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 210, 0, 0.3);
    border-radius: var(--border-radius);
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.qty-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.2);
}

/* Compact Add Button */
.btn-add-product {
    flex: 1;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: var(--dark-gray);
    border: none;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-left: 0.25rem;
}

.btn-add-product:hover {
    background: var(--white);
    transform: scale(1.02);
}

.btn-add-product.added {
    background: #28a745;
    color: white;
}

/* Hide old quantity controls */
.quantity-controls {
    display: none;
}

/* Cart Header with Reset Button */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cart-header h4 {
    margin: 0;
    color: var(--text-color);
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.btn-reset-cart {
    background: #dc3545;
    color: white;
    border: 2px solid #dc3545;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-reset-cart:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Show reset button when cart has items */
.cart-section:has(.cart-item) .btn-reset-cart {
    display: flex !important;
}

/* Animation for adding products */
@keyframes productAdded {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.product-card.adding {
    animation: productAdded 0.6s ease;
}

/* Mobile responsiveness for product cards - FIXED */
@media (max-width: 768px) {
    /* PROPORZIONI CORRETTE per mobile */
    .products-grid-selector {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        justify-items: center; /* CENTRA le card nella griglia */
    }
    
    .product-selector-card {
        width: 280px !important;      /* Larghezza fissa per proporzioni corrette */
        height: 350px !important;     /* Altezza per aspect-ratio 4:5 */
        max-width: 280px;
        background-position: center;
        margin: 0 auto;
    }
    
    .product-controls {
        gap: 1rem;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        justify-content: center;
    }
    
    /* PULSANTI PIÙ GRANDI per touch */
    .quantity-box, .minus-box, .plus-box {
        width: 70px !important;
        height: 60px !important;
        font-size: 1.2rem !important;
        min-width: 70px;
        min-height: 60px;
    }
    
    .cart-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        text-align: center;
    }
    
    .btn-reset-cart {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .whatsapp-form-section {
        padding: 2rem 0;
    }
    
    .progressive-form-container {
        padding: 0 1rem;
    }
    
    .question-card {
        padding: 1.5rem;
    }
    
    .question-card h2 {
        font-size: var(--font-size-xl);
    }
    
    .question-content h2 {
        font-size: var(--font-size-lg);
    }
    
    .area-option label {
        padding: 0.75rem;
    }
    
    .area-option label strong {
        font-size: var(--font-size-base);
    }

    .collapsible-content.open {
        padding: 1rem 0;
    }
    
    .contact-summary {
        padding: 1rem;
    }
    
    .summary-content p {
        font-size: var(--font-size-xs);
        line-height: 1.5;
    }
    
    /* Product cards per smartphone - confermata singola colonna */
    .products-grid-selector {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .product-selector-card {
        height: 280px;
        background-position: center;
    }
    
    .product-controls {
        gap: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
        justify-content: center;
    }
    
    /* PULSANTI ANCORA PIÙ EVIDENTI su smartphone */
    .quantity-box, .minus-box, .plus-box {
        width: 65px !important;
        height: 55px !important;
        font-size: 1.1rem !important;
    }
    
    .product-selector-card.in-cart::before {
        font-size: 11px;
        padding: 0.25rem 0.6rem;
        top: 0.5rem;
        right: 0.5rem;
    }
}


/* =====================================================
   css/pages/products.css
   ===================================================== */

/* Products Page Styles */
.products-header {
    padding: var(--section-padding);
    background: var(--light-gray);
    margin-top: 112px;
    text-align: center;
}

.products-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--text-color);
    border: 2px solid var(--medium-gray);
    border-radius: 25px;
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--dark-gray);
}

.products-catalog {
    padding: 3rem 0;
}

.product-detail {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 3rem;
    transition: all var(--transition-base);
}

.product-detail:hover {
    box-shadow: var(--box-shadow-lg);
}

.product-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 2rem;
    align-items: center;
}

.product-image-main img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.product-details h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.product-description {
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.product-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--light-gray);
}

.spec-item {
    text-align: center;
}

.spec-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.spec-value {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary-color);
}

/* Nutrition Table */
.nutrition-table {
    margin-top: 2rem;
    overflow-x: auto;
}

.nutrition-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.nutrition-table th,
.nutrition-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--medium-gray);
}

.nutrition-table th {
    background: var(--primary-color);
    color: var(--dark-gray);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nutrition-table tr:hover {
    background: var(--light-gray);
}

/* Products Detailed Layout */
.product-detailed {
    background: var(--medium-gray);
    border-radius: var(--border-radius);
    margin-bottom: 4rem;
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    border: 1px solid rgba(255, 210, 0, 0.1);
    transition: all var(--transition-base);
}

.product-detailed:hover {
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.product-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 2rem;
    background: var(--white);
}

.product-image-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-base);
    box-shadow: var(--box-shadow);
}

.product-image-card:hover {
    transform: scale(1.02);
    box-shadow: var(--box-shadow-lg);
}

.product-image-card img {
    width: 100%;
    height: auto;
    display: block;
}

.product-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.product-image-card:hover .product-image-overlay {
    opacity: 1;
}

.zoom-icon {
    color: var(--white);
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.product-details-full {
    padding: 2.5rem;
}

.product-title-main {
    font-size: var(--font-size-2xl);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.product-composition,
.product-nutrition {
    background: var(--light-gray);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 210, 0, 0.1);
    overflow: hidden;
}

.collapsible-header {
    padding: clamp(0.75rem, 2.5vw, 1.25rem) clamp(1rem, 3vw, 2rem);
    cursor: pointer;
    background: var(--medium-gray);
    border-bottom: 1px solid rgba(255, 210, 0, 0.1);
    transition: background-color var(--transition-base);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collapsible-header:hover {
    background: var(--light-gray);
}

.collapsible-header h3 {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: clamp(0.3px, 0.1vw, 0.8px);
}

.collapsible-arrow {
    color: var(--primary-color);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    transition: transform var(--transition-base);
}

.collapsible-arrow.open {
    transform: rotate(180deg);
}

.collapsible-content {
    padding: 0 clamp(1rem, 3vw, 2rem);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.collapsible-content.open {
    padding: clamp(1rem, 3vw, 2rem);
    max-height: 1000px;
}

.product-composition p,
.product-nutrition p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: var(--font-size-sm);
}

.nutrition-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(120px, 25vw), 1fr));
    gap: clamp(0.5rem, 2vw, 1rem);
    margin-top: clamp(0.75rem, 2vw, 1rem);
}

.nutrition-item {
    text-align: center;
    background: var(--medium-gray);
    padding: clamp(0.75rem, 2vw, 1rem);
    border-radius: clamp(6px, 1.5vw, 10px);
    border: 1px solid rgba(255, 210, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: clamp(80px, 18vw, 120px);
}

.nutrition-label {
    font-size: clamp(0.625rem, 1.6vw, 0.75rem);
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: clamp(0.3px, 0.1vw, 0.6px);
    margin-bottom: clamp(0.25rem, 1vw, 0.5rem);
    min-height: clamp(2rem, 6vw, 3.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.nutrition-value {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-top: auto;
}

.feeding-table {
    margin-top: 0.5rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 210, 0, 0.1);
    overflow: hidden;
}

.feeding-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--light-gray);
    overflow-x: auto;
}

.feeding-table th,
.feeding-table td {
    padding: clamp(0.5rem, 2vw, 1rem);
    text-align: center;
    border-bottom: 1px solid var(--medium-gray);
    font-size: clamp(0.75rem, 1.8vw, 0.875rem);
}

.feeding-table th {
    background: var(--primary-color);
    color: var(--dark-gray);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feeding-table td {
    color: var(--text-light);
    font-weight: 600;
}

.feeding-table tr:hover {
    background: var(--medium-gray);
}

/* Mobile Responsiveness for Products */
@media (max-width: 768px) {
    .product-images {
        grid-template-columns: 1fr 1fr;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .product-details-full {
        padding: 1.5rem;
    }
    
    .product-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nutrition-specs {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-title-main {
        font-size: var(--font-size-xl);
    }
    
    .product-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .product-specs {
        grid-template-columns: 1fr;
    }
    
    .products-filters {
        justify-content: center;
    }
    
    .filter-btn {
        font-size: var(--font-size-xs);
        padding: 0.5rem 1rem;
    }
}

/* Quality Stats */
.quality-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: space-around;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--medium-gray);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    min-width: 120px;
    transition: transform var(--transition-base);
    border: 1px solid rgba(255, 210, 0, 0.1);
}

.stat-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.stat-item strong {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item span {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Testing List */
.testing-list {
    margin: 2rem 0;
}

.testing-list h3 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.testing-list ul {
    list-style: none;
    padding: 0;
}

.testing-list li {
    padding: 0.5rem 0;
    font-size: var(--font-size-base);
    color: var(--text-light);
    border-bottom: 1px solid var(--medium-gray);
}

.testing-list li:last-child {
    border-bottom: none;
}

.testing-list li::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 1rem;
    vertical-align: middle;
    position: relative;
}

.testing-list li::after {
    content: '✓';
    position: absolute;
    left: -14px;
    color: var(--dark-gray);
    font-weight: 900;
    font-size: var(--font-size-sm);
}

@media (max-width: 768px) {
    .quality-stats {
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .quality-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .testing-list li::before {
        width: 15px;
        height: 15px;
        margin-right: 0.75rem;
    }
    
    .testing-list li::after {
        left: -10px;
        font-size: var(--font-size-xs);
    }
}


/* =====================================================
   css/utilities/responsive.css
   ===================================================== */

/* Media Queries Responsive */

/* Mobile responsive generale */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero-brand {
        font-size: var(--font-size-4xl);
    }

    .hero-brand-large {
        font-size: 4rem;
    }

    .hero-slogan {
        font-size: var(--font-size-2xl);
    }

    .section-title {
        font-size: var(--font-size-3xl);
    }

    .cta-title {
        font-size: var(--font-size-3xl);
    }

    .page-title {
        font-size: var(--font-size-3xl);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-brand {
        font-size: var(--font-size-3xl);
    }

    .hero-slogan {
        font-size: var(--font-size-xl);
    }

    .hero-description {
        font-size: var(--font-size-base);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .page-title {
        font-size: var(--font-size-2xl);
    }
}

/* Utility classes responsive */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Grid responsive utilities */
@media (max-width: 768px) {
    .grid-mobile-1 {
        grid-template-columns: 1fr !important;
    }
    
    .flex-mobile-column {
        flex-direction: column !important;
    }
    
    .text-mobile-center {
        text-align: center !important;
    }
}


/* =====================================================
   css/style.css
   ===================================================== */

/*!
 * Millecani Website Styles
 * Main CSS File - No Imports
 * Version 2.0
 */

/* 
 * NOTA: Questo file NON usa @import per evitare problemi di caricamento.
 * Tutti i CSS modulari sono caricati direttamente nell'HTML tramite <link> tags.
 * 
 * Ordine di caricamento nell'HTML:
 * 1. Base: variables, reset, typography, animations
 * 2. Layout: header, footer, sections  
 * 3. Components: buttons, hero, cards, forms, lightbox
 * 4. Pages: whatsapp, products
 * 5. Utilities: responsive
 * 6. Vendor: notifications
 */

/* Print Styles */
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    abbr[title]::after {
        content: " (" attr(title) ")";
    }

    pre {
        white-space: pre-wrap !important;
    }
    
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }

    .header,
    .whatsapp-float,
    .lightbox {
        display: none !important;
    }
}


/* =====================================================
   css/pages/guide.css
   ===================================================== */

/*!
 * Millecani — Guide e approfondimenti
 * Stili per la pagina indice della sezione e per le pagine articolo.
 * Dipende da: base/variables.css (palette e tipografia di marca)
 */

/* ============================================================
   1. HERO RIDOTTO PER LE PAGINE EDITORIALI
   ============================================================ */
.page-hero.guide-hero {
    height: 42vh;
    min-height: 320px;
}

/* Sugli articoli il titolo non sta piu' sulla foto: basta un velo leggero,
   cosi' la fotografia si vede davvero. L'indice tiene il velo pieno perche'
   li' il titolo e' ancora sovrapposto. */
.page-hero.guide-hero .hero-overlay {
    background: linear-gradient(180deg, rgba(38, 40, 44, .18) 0%, rgba(38, 40, 44, .42) 100%);
}

body.guide-index .page-hero.guide-hero .hero-overlay {
    background: linear-gradient(180deg, rgba(38, 40, 44, .55) 0%, rgba(38, 40, 44, .88) 100%);
}

/* L'immagine e' alta quanto la testata, non il 150%: con il 150% se ne
   vedeva solo la parte alta e su telefono il ritaglio non era governabile,
   perche' restavano sempre visibili i due terzi superiori del quadrato. */
.page-hero.guide-hero .hero-image {
    height: 100%;
}

/* Il ritaglio verticale, foto per foto: il soggetto di queste fotografie sta
   quasi sempre nella meta' bassa dell'originale quadrato. */
.page-hero.guide-hero .hero-image[src*="allevamento-dallalto-nella-campagna"] { object-position: center 68%; }   /* copertina della sezione: i box stanno in basso */
.page-hero.guide-hero .hero-image[src*="paddock-che-non-asciuga"] { object-position: center 85%; }   /* la pozzanghera */
.page-hero.guide-hero .hero-image[src*="muretto-a-secco-con-tana"] { object-position: center 85%; }   /* la tana del roditore */
.page-hero.guide-hero .hero-image[src*="rastrello-e-bidone-al-recinto"] { object-position: center 85%; }   /* il rastrello e il bidone */
.page-hero.guide-hero .hero-image[src*="acqua-ferma-accanto-al-recinto"] { object-position: center 85%; }   /* il bidone e il sottovaso */
.page-hero.guide-hero .hero-image[src*="box-cuccioli-appena-lavato"] { object-position: center 75%; }   /* la vaschetta e la griglia di scarico */
.page-hero.guide-hero .hero-image[src*="paddock-in-ghiaia-asciutto"] { object-position: center 66%; }   /* la recinzione e il terreno screpolato */
.page-hero.guide-hero .hero-image[src*="ciotola-dimenticata-con-lumaca"] { object-position: center 57%; }   /* la ciotola con la lumaca sul bordo */
.page-hero.guide-hero .hero-image[src*="contenitore-per-il-campione"] { object-position: center 60%; }   /* il contenitore e la borsa termica */
.page-hero.guide-hero .hero-image[src*="ciotole-porzionate-sul-carrello"] { object-position: center 60%; }   /* le ciotole sul carrello */
.page-hero.guide-hero .hero-image[src*="corridoio-appena-lavato"] { object-position: center 55%; }   /* il corridoio */
.page-hero.guide-hero .hero-image[src*="recinto-esterno-con-due-cani"] { object-position: center 55%; }   /* i due cani */
.page-hero.guide-hero .hero-image[src*="ciotole-nel-corridoio"] { object-position: center 55%; }   /* le ciotole */
.page-hero.guide-hero .hero-image[src*="sala-parto"] { object-position: center 55%; }   /* la cassa parto */
.page-hero.guide-hero .hero-image[src*="box-cani"] { object-position: center 55%; }   /* il box con il cane */
.page-hero.guide-hero .hero-image[src*="ciotola-crocchette-e-bilancia"] { object-position: center 55%; }   /* la ciotola e la bilancia */
.page-hero.guide-hero .hero-image[src*="cane-da-ferma-nel-campo-allalba"] { object-position: center 50%; }   /* il cane */

/* Variante senza fotografia: usata sugli approfondimenti in attesa di immagini
   proprie. Motivo geometrico di marca invece di uno scatto generico. */
.page-hero.guide-hero.no-photo {
    background: var(--secondary-color);
    height: 34vh;
    min-height: 260px;
}

.page-hero.guide-hero.no-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(135deg,
            rgba(255, 210, 0, .07) 0 2px,
            transparent 2px 22px);
}

.page-hero.guide-hero.no-photo::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
}

.page-hero.guide-hero.no-photo .hero-content {
    position: relative;
    z-index: 2;
}

/* Card dell'indice senza fotografia */
.guide-card-media.no-photo {
    background: var(--secondary-color);
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.guide-card-media.no-photo span {
    position: relative;
    z-index: 2;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--primary-color);
    text-align: center;
    padding: 0 1.5rem;
    line-height: 1.5;
}

/* ============================================================
   2. INDICE DELLA SEZIONE
   ============================================================ */
.guide-intro {
    padding: clamp(2.5rem, 6vw, 4rem) 0 1rem;
}

.guide-intro p {
    max-width: 62ch;
    margin: 0 auto 1rem;
    text-align: center;
    color: var(--text-light);
    font-size: clamp(1rem, 1.6vw, 1.125rem);
    line-height: 1.75;
    font-weight: 300;
}

.guide-list {
    padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.guide-note {
    margin: clamp(2rem, 5vw, 3rem) 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, .09);
    font-size: .88rem;
    font-weight: 300;
    color: #8a9096;
    text-align: center;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-top: 1.5rem;
}

/* Filtro per argomento */
/* L'attributo hidden vale display:none, ma solo con specificita' bassa:
   il display:flex di .guide-filter e .guide-card lo sovrascriverebbe e gli
   elementi resterebbero visibili. Queste due regole lo rimettono in forza. */
.guide-filter[hidden],
.guide-card[hidden] {
    display: none;
}

.guide-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.guide-filter-btn {
    font-family: inherit;
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-light);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 100px;
    padding: .5rem 1.05rem;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.guide-filter-btn:hover {
    color: var(--text-color);
    border-color: rgba(255, 210, 0, .55);
}

.guide-filter-btn.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 600;
}

.guide-filter-count {
    margin-left: auto;
    font-size: .82rem;
    font-weight: 300;
    color: #8a9096;
}

@media (max-width: 600px) {
    .guide-filter-count {
        margin-left: 0;
        width: 100%;
        order: -1;
        margin-bottom: .2rem;
    }

    .guide-filter-btn {
        font-size: .82rem;
        padding: .45rem .9rem;
    }
}

.guide-card {
    display: flex;
    flex-direction: column;
    background: var(--secondary-color);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 10px;
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 210, 0, .45);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .38);
}

.guide-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--medium-gray);
}

.guide-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.guide-card:hover .guide-card-media img {
    transform: scale(1.04);
}

.guide-card-body {
    padding: 1.5rem 1.6rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.guide-card-meta {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: .85rem;
}

.guide-tag {
    background: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 700;
    padding: .22rem .6rem;
    border-radius: 3px;
    letter-spacing: .05em;
}

.guide-card h2 {
    font-size: 1.3rem;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 0 .8rem;
    color: var(--text-color);
}

.guide-card h2 a {
    color: inherit;
    text-decoration: none;
}

.guide-card h2 a:hover {
    color: var(--primary-color);
}

.guide-card p {
    color: var(--text-light);
    font-size: .95rem;
    line-height: 1.7;
    font-weight: 300;
    margin: 0 0 1.4rem;
}

.guide-card .guide-more {
    margin-top: auto;
    align-self: flex-start;
    color: var(--primary-color);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color .25s ease;
}

.guide-card .guide-more:hover {
    border-bottom-color: var(--primary-color);
}

/* Prossime uscite */
.guide-upcoming {
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, .09);
    padding-top: 2rem;
}

.guide-upcoming h3 {
    font-size: .8rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1.1rem;
    font-weight: 700;
}

.guide-upcoming ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: .9rem 2rem;
}

.guide-upcoming li {
    color: var(--text-light);
    font-weight: 300;
    font-size: .95rem;
    padding-left: 1.2rem;
    position: relative;
}

.guide-upcoming li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: .55;
}

/* ============================================================
   3. IMPAGINATO ARTICOLO
   ============================================================ */
.article-wrap {
    padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.article-layout {
    scroll-margin-top: 110px;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

/* --- Sommario laterale --- */
.article-toc {
    position: sticky;
    top: 130px;
    border-left: 2px solid rgba(255, 255, 255, .1);
    padding-left: 1.4rem;
}

.article-toc h2 {
    font-size: .82rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin: 0 0 1rem;
    font-weight: 700;
}

.article-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-toc li {
    margin-bottom: .9rem;
    line-height: 1.4;
}

.article-toc a {
    color: var(--text-light);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 300;
    display: block;
    transition: color .2s ease;
}

/* Niente numerazione automatica: alcuni capitoli hanno gia' un numero
   nel titolo e si otterrebbe un doppio conteggio ("2. 1 - L'alimento"). */
.article-toc a::before {
    content: "\2014";
    color: var(--primary-color);
    font-weight: 600;
    margin-right: .5rem;
    opacity: .55;
}

.article-toc a:hover,
.article-toc a.is-active {
    color: var(--primary-color);
}

.article-toc .toc-time {
    display: block;
    font-size: .72rem;
    color: #8a9096;
    margin-left: 1.35rem;
    margin-top: .12rem;
}

.article-toc .toc-download {
    display: inline-block;
    margin-top: 1.4rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--secondary-color);
    background: var(--primary-color);
    padding: .55rem .9rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background .25s ease;
}

.article-toc .toc-download:hover {
    background: var(--primary-dark);
}

/* --- Corpo del testo --- */
.article-body {
    max-width: 68ch;
    color: #e4e7ea;
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.85;
}

.article-body > p {
    margin: 0 0 1.35rem;
}

.article-lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #f0f2f4;
    margin-bottom: 2rem !important;
}

.article-body h2 {
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.25;
    margin: 3.2rem 0 .4rem;
    scroll-margin-top: 130px;
    display: flex;
    align-items: baseline;
    gap: .75rem;
}

.article-body h2::before {
    content: "";
    flex: 0 0 auto;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--primary-color);
    transform: translateY(-2px);
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-kicker {
    color: #bcc3ca;
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 1.6rem 1.75rem;
}

.article-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 2.2rem 0 .7rem;
}

.article-body strong {
    color: #ffffff;
    font-weight: 600;
}

.article-body em.sci {
    font-style: italic;
    color: #a9b0b6;
}

.article-body a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 210, 0, .35);
}

.article-body a:hover {
    border-bottom-color: var(--primary-color);
}

/* --- Riquadri --- */
.box-pull,
.box-dark,
.box-note {
    margin: 2rem 0;
    border-radius: 6px;
    padding: 1.5rem 1.75rem;
}

.box-pull {
    background: rgba(255, 210, 0, .07);
    border-left: 4px solid var(--primary-color);
}

.box-dark {
    background: var(--darker-gray);
    border: 1px solid rgba(255, 255, 255, .08);
}

.box-note {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .14);
    border-left: 4px solid #6d757c;
}

.box-pull .box-label,
.box-dark .box-label,
.box-note .box-label {
    font-size: .84rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: .7rem;
}

.box-pull .box-label {
    color: var(--primary-color);
}

.box-dark .box-label {
    color: var(--primary-color);
}

.box-note .box-label {
    color: #9aa1a8;
}

.box-pull p,
.box-dark p,
.box-note p {
    margin: 0 0 .9rem;
}

.box-pull p:last-child,
.box-dark p:last-child,
.box-note p:last-child {
    margin-bottom: 0;
}

/* --- Schede parassita --- */
.parasite {
    border-left: 3px solid rgba(255, 255, 255, .12);
    padding-left: 1.4rem;
    margin: 0 0 1.8rem;
}

.parasite.acc {
    border-left-color: var(--primary-color);
}

.parasite h3 {
    margin: 0 0 .45rem;
    font-size: 1.1rem;
}

.parasite h3 .sci {
    font-style: italic;
    font-weight: 300;
    font-size: .92rem;
    color: #8f969c;
}

.parasite p {
    margin: 0 0 .8rem;
    font-size: 1rem;
    line-height: 1.75;
}

.parasite p:last-child {
    margin-bottom: 0;
}

/* Scheda in evidenza */
.parasite.feature {
    border-left: 4px solid var(--primary-color);
    background: rgba(255, 210, 0, .05);
    border-radius: 0 6px 6px 0;
    padding: 1.5rem 1.75rem;
    margin-bottom: 2.2rem;
}

.parasite-flag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--secondary-color);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .25rem .65rem;
    border-radius: 3px;
    margin-bottom: .9rem;
}

/* --- Famiglie di cause --- */
.cause-block {
    margin: 0 0 1.8rem;
}

.cause-head {
    display: flex;
    align-items: center;
    gap: .85rem;
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: .7rem;
}

.cause-num {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 700;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cause-body {
    border-left: 3px solid rgba(255, 255, 255, .12);
    padding-left: 1.4rem;
    margin-left: 14px;
}

.cause-body p {
    margin: 0 0 .8rem;
    font-size: 1rem;
    line-height: 1.75;
}

.cause-body p:last-child {
    margin-bottom: 0;
}

/* --- Tabella copertura --- */
.table-scroll {
    overflow-x: auto;
    margin: 1.8rem 0;
    -webkit-overflow-scrolling: touch;
}

table.coverage {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 1rem;
}

table.coverage th {
    background: var(--secondary-color);
    color: var(--text-color);
    font-size: .84rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700;
    text-align: left;
    padding: .85rem 1rem;
}

table.coverage td {
    padding: .85rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    vertical-align: top;
    font-weight: 300;
    line-height: 1.6;
}

table.coverage td:first-child {
    font-weight: 600;
    color: var(--text-color);
    width: 40%;
}

table.coverage td .sub {
    display: block;
    font-weight: 300;
    font-size: .88rem;
    color: #9aa1a8;
    margin-top: .15rem;
}

table.coverage tr.uncovered td {
    background: rgba(255, 210, 0, .055);
}

table.coverage tr.uncovered td strong {
    color: var(--primary-color);
}

/* --- Punti chiave numerati --- */
ol.keypoints {
    list-style: none;
    counter-reset: kp;
    padding: 0;
    margin: 1.8rem 0;
}

ol.keypoints li {
    counter-increment: kp;
    position: relative;
    padding-left: 3.1rem;
    margin-bottom: 1.6rem;
    font-size: 1rem;
    line-height: 1.75;
}

ol.keypoints li::before {
    content: counter(kp);
    position: absolute;
    left: 0;
    top: -1px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

ol.keypoints li b {
    display: block;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: .2rem;
}

/* --- Riquadro download --- */
.article-download {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    background: var(--secondary-color);
    border: 1px solid rgba(255, 210, 0, .3);
    border-radius: 8px;
    padding: 1.75rem;
    margin: 3rem 0;
}

.article-download .dl-text {
    flex: 1 1 260px;
}

.article-download h3 {
    margin: 0 0 .4rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

.article-download p {
    margin: 0;
    font-size: .92rem;
    color: var(--text-light);
    font-weight: 300;
    line-height: 1.6;
}

/* --- Rimando in fondo all'articolo: un passo avanti, non un elenco di link --- */
.article-body .article-avanti {
    margin: 2.2rem 0 0;
    padding-left: 1rem;
    border-left: 3px solid rgba(255, 210, 0, .45);
    font-size: .95rem;
    line-height: 1.7;
    color: var(--text-light);
    font-weight: 300;
}

.article-body .article-avanti a {
    font-weight: 600;
    white-space: normal;
}

/* --- Nota di chiusura / disclaimer --- */
.article-disclaimer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 3px solid var(--primary-color);
    font-size: .92rem;
    line-height: 1.75;
    color: var(--text-light);
    font-weight: 300;
}

.article-sources {
    margin-top: 2rem;
    font-size: .88rem;
    color: #8a9096;
    font-weight: 300;
    line-height: 1.7;
}

/* --- Articolo correlato --- */
/* Chiusura dell'articolo: i due pulsanti di ritorno */
.article-fine {
    margin-top: 2.6rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, .09);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .9rem;
}

.article-fine .btn {
    padding: .8rem 1.6rem;
    font-size: .8rem;
    border-radius: 8px;
}

/* Il colore va forzato: .article-body a colora di giallo tutti i link
   dell'articolo e senza questa regola la scritta del pulsante sparisce. */
.article-body .article-fine .btn-primary,
.article-body .article-fine .btn-primary:hover {
    color: var(--dark-gray);
    border-bottom: 0;
}

.article-copyright {
    margin: 1.6rem 0 0;
    font-size: .82rem;
    line-height: 1.7;
    font-weight: 300;
    color: #7f868c;
}

.article-related {
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 2rem;
}

.article-related h3 {
    font-size: .86rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin: 0 0 1rem;
    font-weight: 700;
}

/* Elenco compatto di rimandi, per gli articoli che ne hanno molti */
.related-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0 1.8rem;
}

.related-list a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    font-size: .98rem;
    padding: .55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    transition: color .2s ease;
}

.related-list a::after {
    content: " \2192";
    color: var(--primary-color);
}

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

.related-card {
    display: block;
    background: var(--secondary-color);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    padding: 1.35rem 1.5rem;
    text-decoration: none;
    transition: border-color .25s ease, transform .25s ease;
}

.related-card:hover {
    border-color: rgba(255, 210, 0, .45);
    transform: translateY(-3px);
}

.related-card strong {
    display: block;
    color: var(--text-color);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: .3rem;
}

.related-card span {
    color: var(--text-light);
    font-size: .92rem;
    font-weight: 300;
    line-height: 1.6;
}

/* ============================================================
   4. RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-toc {
        position: static;
        border-left: none;
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 8px;
        padding: 1.25rem 1.4rem;
        margin-bottom: 2rem;
    }

    .article-toc ol {
        columns: 2;
        column-gap: 1.6rem;
    }

    .article-body {
        max-width: none;
    }
}

@media (max-width: 600px) {
    .page-hero.guide-hero {
        height: 34vh;
        min-height: 240px;
    }

    .article-toc ol {
        columns: 1;
    }

    .article-body {
        font-size: 1rem;
        line-height: 1.8;
    }

    /* sul telefono il corpo scende a 1rem: l'occhiello resta sopra al corpo,
       ma senza il salto che avrebbe restando a 1.15rem */
    .article-kicker {
        font-size: 1.05rem;
        margin-left: 1.4rem;
    }

    .parasite.feature,
    .box-pull,
    .box-dark,
    .box-note {
        padding: 1.15rem 1.25rem;
    }

    .article-download {
        padding: 1.35rem;
    }
}

/* ============================================================
   5. STAMPA
   ============================================================ */
@media print {
    .article-toc,
    .article-download,
    .article-related,
    .whatsapp-float,
    .breadcrumb-nav,
    .page-hero {
        display: none !important;
    }

    .article-layout {
        display: block;
    }

    /* Il CSS globale di stampa accoda l'URL dopo ogni link: negli articoli
       rende il testo illeggibile, quindi lo disattiviamo. */
    .article-body a[href]::after,
    .guide-card a[href]::after,
    .article-related a[href]::after {
        content: "" !important;
    }
}


/* ============================================================
   TITOLO SOTTO LA FOTOGRAFIA
   La testata mostra una fascia dell'immagine che cambia con lo schermo:
   tenendo il titolo fuori dalla foto, la scheda del parassita puo' stare
   sovrapposta senza rischio di finirgli sopra a qualche larghezza.
   ============================================================ */
.article-heading {
    padding: clamp(1.5rem, 4vw, 2.4rem) 0 clamp(.6rem, 1.5vw, 1rem);
    text-align: center;
}

.article-heading .page-title {
    text-shadow: none;
    margin-bottom: .55rem;
}

.article-heading .page-subtitle {
    text-shadow: none;
    color: var(--text-light);
    max-width: 58ch;
    margin: 0 auto;
    line-height: 1.5;
}

/* ============================================================
   SCHEDA DEL PARASSITA, SOVRAPPOSTA ALLA FOTOGRAFIA
   Non e' disegnata dentro il file: e' un blocco della pagina, quindi resta
   intero a ogni larghezza e il testo resta testo invece che pixel.
   ============================================================ */
.parasite-badge {
    position: absolute;
    top: clamp(.9rem, 2.6vw, 1.9rem);
    right: clamp(.9rem, 2.6vw, 1.9rem);
    z-index: 3;
    width: min(330px, 44%);
    background: rgba(30, 32, 35, .91);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    padding: .8rem .95rem .9rem;
}

.parasite-badge img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: .45rem;
}

.parasite-badge b {
    display: block;
    font-size: clamp(.95rem, 2.1vw, 1.15rem);
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.25;
}

.parasite-badge em {
    display: block;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(.72rem, 1.5vw, .9rem);
    color: #a9b0b6;
    line-height: 1.35;
}

.parasite-badge .misura {
    display: block;
    margin-top: .18rem;
    font-size: clamp(.85rem, 1.9vw, 1.05rem);
    font-weight: 700;
    color: var(--text-color);
}

.parasite-badge .tratto {
    display: block;
    font-size: clamp(.7rem, 1.4vw, .88rem);
    font-weight: 300;
    color: #8a9096;
    line-height: 1.4;
}

@media (max-width: 700px) {
    .parasite-badge {
        width: min(300px, 58%);
        padding: .65rem .75rem .7rem;
    }
}

@media (max-width: 420px) {
    .parasite-badge {
        width: 66%;
    }

    .parasite-badge .tratto {
        display: none;
    }
}
