/* Corpusetanima - Advanced CSS with Dark Mode & Accessibility */

/* ========== VARIABLES ========== */
/*:root {
    --primary: #6C0A24;
    --secondary: #F2E5C4;
    --accent: #863542;
    --dark: #333;
    --light: #fff;
    --gray: #f8f9fa;
    --transition: 0.3s ease;
}*/

:root {
    --primary: #1a5c2a;
    --secondary: #f0f7f1;
    --accent: #4a9e3f;
    --dark: #1a2e1d;
    --light: #faf0d0;
    --gray: #f4faf5;
    --transition: 0.3s ease;
}

/* Dark Mode Variables - COMMENTATO per controllo manuale */
/* @media (prefers-color-scheme: dark) {
    :root {
        --primary: #a81636;
        --secondary: #2a2520;
        --accent: #b84757;
        --dark: #e0e0e0;
        --light: #1a1a1a;
        --gray: #2a2a2a;
    }
} */

/* Manual Dark Mode Override */
/*body.dark-mode {
    --primary: #a81636;
    --secondary: #2a2520;
    --accent: #b84757;
    --dark: #e0e0e0;
    --light: #1a1a1a;
    --gray: #2a2a2a;
}*/
body.dark-mode {
    --primary: #4a9e3f;
    --secondary: #1a2e1d;
    --accent: #c8a84b;
    --dark: #e0e0e0;
    --light: #121a13;
    --gray: #1e2e1f;
}

/* Font Size Variables */
body.font-small { --font-scale: 0.85; }
body.font-medium { --font-scale: 1; }
body.font-large { --font-scale: 1.15; }

/* ========== RESET & BASE ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    transition: background 0.3s, color 0.3s;
    --font-scale: 1;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
.immmagine-generale {
    max-width: 100%;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Focus Styles for Accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ========== SKIP LINK (Accessibility) ========== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}
.skip-link:focus {
    top: 0;
}

/* ========== ACCESSIBILITY TOOLBAR ========== */
.accessibility-toolbar {
    position: fixed;
    top: 100px;
    right: 80px;
    background: var(--light);
    border: 2px solid var(--gray);
    border-radius: 10px;
    padding: 0.75rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    max-width: 180px;
    width: max-content;
}
.accessibility-toolbar button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
    white-space: nowrap;
    text-align: center;
}
.accessibility-toolbar button:hover {
    background: var(--primary);
    transform: scale(1.05);
}
.accessibility-toolbar button:active {
    transform: scale(0.95);
}
.toolbar-toggle {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--accent);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1002;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    transition: var(--transition);
}
.toolbar-toggle:hover {
    transform: scale(1.1);
    background: var(--primary);
}
.accessibility-toolbar.hidden {
    display: none;
}

/* Responsive Toolbar - TABLET */
@media (max-width: 1024px) and (min-width: 769px) {
    .accessibility-toolbar {
        position: fixed;
        top: auto !important;
        bottom: 75px; /* Sopra il toggle */
        left: auto;
        right: 15px; /* A destra */
        width: auto;
        max-width: none;
        display: flex;
        flex-direction: row; /* Orizzontale */
        flex-wrap: nowrap;
        justify-content: flex-end;
        padding: 0.5rem;
        gap: 0.3rem;
        background: var(--light);
        border: 2px solid var(--gray);
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.2);
        z-index: 1001;
    }
    .accessibility-toolbar button {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
        min-width: 40px;
        min-height: 40px;
        width: auto;
        white-space: nowrap;
    }
    .toolbar-toggle {
        position: fixed;
        top: auto !important;
        bottom: 15px;
        left: auto;
        right: 15px;
        transform: none;
        width: 50px;
        height: 50px;
        z-index: 1002;
    }
}

/* Mobile Toolbar verticale con pulsanti orizzontali*/
@media (max-width: 768px) {
    .accessibility-toolbar {
        top: auto !important;
        bottom: 80px; /* Sopra il toggle */
        left: auto;
        right: 10px; /* A destra */
        width: auto;
        max-width: none; /* Rimosso limite larghezza */
        flex-direction: row; /* Orizzontale */
        flex-wrap: nowrap; /* Non va a capo */
        justify-content: flex-end;
        padding: 0.5rem;
        gap: 0.3rem;
    }
    .accessibility-toolbar button {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem; /* Padding ridotto */
        min-width: 35px; /* Larghezza minima ridotta */
        min-height: 35px; /* Altezza ridotta */
        width: auto;
        white-space: nowrap;
    }
    .toolbar-toggle {
        top: auto !important;
        bottom: 15px;
        left: auto;
        right: 10px; /* A destra */
        transform: none;
        width: 50px; /* Leggermente ridotto */
        height: 50px;
    }
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: background 0.3s;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 1.5rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: calc(1.5rem * var(--font-scale));
    font-weight: 900;
    color: var(--primary);
}
.logo i {
    font-size: calc(1.8rem * var(--font-scale));
}
.logo-icon {
    width: calc(10rem * var(--font-scale));
    height: calc(8rem * var(--font-scale));
    object-fit: contain;
    display: inline-block;
    transition: width 0.3s, height 0.3s;
}
body.dark-mode .logo-icon {
    filter: brightness(1.5) saturate(0.85);
    transition: filter 0.3s ease;
}

/* Desktop Navigation */
.nav {
    display: flex;
    gap: 2rem;
}
.nav a {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: calc(1rem * var(--font-scale));
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav a.active,
.nav a:hover {
    background: var(--secondary);
    color: var(--primary);
}
.nav a.cta {
    background: var(--accent);
    color: white;
}
.nav a.cta:hover {
    background: var(--primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}
.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    transition: 0.3s;
    border-radius: 3px;
}
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--light);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 1rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    .nav.active {
        right: 0;
    }
    .nav a {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-radius: 10px;
    }

    /* Overlay for mobile menu */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    .nav-overlay.active {
        display: block;
    }
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26,92,42,0.92), rgba(74,158,63,0.75)),
                url(../images/hero-bg.jpg) center/cover;
    color: white;
    text-align: center;
    margin-top: 60px;
    position: relative;
}
.hero h1 {
    font-size: calc(4rem * var(--font-scale));
    margin-bottom: 1rem;
}
.hero span {
    color: #c8a84b;
}
.hero p {
    font-size: calc(1.5rem * var(--font-scale));
    margin-bottom: 2rem;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition);
    font-size: calc(1rem * var(--font-scale));
    border: none;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.btn:active {
    transform: translateY(-1px);
}
.btn-white {
    background: white;
    color: var(--primary);
}
.btn-white:hover {
    background: var(--secondary);
}

/* ========== SECTIONS ========== */
.intro, .services, .about-preview {
    padding: 5rem 2rem;
}
.intro h2, .services h2 {
    font-size: calc(3rem * var(--font-scale));
    text-align: center;
    color: var(--primary);
    margin-bottom: 1rem;
}
.lead {
    text-align: center;
    font-size: calc(1.2rem * var(--font-scale));
    color: var(--dark);
    opacity: 0.8;
    margin-bottom: 3rem;
}

/* ========== STATS ========== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.stat-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    border: 2px solid transparent;
}
.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}
.stat-card i {
    font-size: calc(3rem * var(--font-scale));
    color: var(--accent);
    margin-bottom: 1rem;
}
.stat-card .number {
    font-size: calc(3rem * var(--font-scale));
    font-weight: 900;
    color: var(--primary);
}
.stat-card .label {
    color: var(--dark);
    font-size: calc(1rem * var(--font-scale));
}

/* ========== SERVICES ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.service-card {
    background: var(--gray);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-color: var(--accent);
}
.service-card i {
    font-size: calc(3rem * var(--font-scale));
    color: var(--accent);
    margin-bottom: 1rem;
}
.service-card h3 {
    font-size: calc(1.5rem * var(--font-scale));
    margin-bottom: 1rem;
    color: var(--primary);
}
.service-card p {
    font-size: calc(1rem * var(--font-scale));
}
.cta-center {
    text-align: center;
    margin-top: 3rem;
}

/* ========== ABOUT ========== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-image img {
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.about-content h2 {
    font-size: calc(2.5rem * var(--font-scale));
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.about-content h3 {
    font-size: calc(1.2rem * var(--font-scale));
    color: var(--accent);
    margin-bottom: 1.5rem;
}
.about-content p {
    margin-bottom: 1.5rem;
    font-size: calc(1rem * var(--font-scale));
}
.credentials {
    list-style: none;
    margin: 2rem 0;
}
.credentials li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: calc(1rem * var(--font-scale));
}
.credentials i {
    color: var(--accent);
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-align: center;
    padding: 5rem 2rem;
}
.cta-section h2 {
    color: white;
    font-size: calc(3rem * var(--font-scale));
    margin-bottom: 1rem;
}
.cta-section p {
    font-size: calc(1.3rem * var(--font-scale));
    margin-bottom: 2rem;
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, var(--primary), #1a1a1a);
    color: white;
    padding: 4rem 2rem 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}
.footer h4 {
    margin-bottom: 1.5rem;
    font-size: calc(1.2rem * var(--font-scale));
}
.footer ul {
    list-style: none;
}
.footer li {
    margin-bottom: 0.75rem;
}
.footer a {
    opacity: 0.9;
    font-size: calc(1rem * var(--font-scale));
}
.footer a:hover {
    opacity: 1;
    text-decoration: underline;
}
.social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.social a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.social a:hover {
    background: white;
    color: var(--primary);
    transform: scale(1.1);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.8;
    font-size: calc(0.9rem * var(--font-scale));
}

/* ========== PAGE HERO ========== */
.page-hero {
    margin-top: calc(3rem + (4rem * var(--font-scale)));
    padding: 4rem 2rem;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ffffff 0%, #e8f5e3 50%, #c8e6c0 100%);
    text-align: center; 
}
.page-hero h1 {
    font-size: calc(3.5rem * var(--font-scale));
    color: var(--primary);
    margin-bottom: 1rem;
}
.page-hero p {
    font-size: calc(1.3rem * var(--font-scale));
    color: var(--dark);
    opacity: 0.8;
}

/* ========== SERVICES DETAIL ========== */
.services-detail, .about-full, .contact-section {
    padding: 3rem 2rem;
}
.service-detail {
    display: flex;
    gap: 2rem;
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    align-items: flex-start;
}
.service-icon {
    font-size: calc(4rem * var(--font-scale));
    color: var(--accent);
}
.service-content h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: calc(2rem * var(--font-scale));
}
.service-content p {
    font-size: calc(1rem * var(--font-scale));
}
.service-content ul {
    list-style: none;
    margin-top: 1.5rem;
}
.service-content li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: calc(1rem * var(--font-scale));
}
.service-content i {
    color: var(--accent);
}

/* ========== ABOUT FULL ========== */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: center;
}
.timeline-section, .qualifications, .philosophy {
    margin: 4rem 0;
}
.timeline {
    position: relative;
    padding: 2rem 0;
}
.timeline-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
.timeline-year {
    font-size: calc(1.5rem * var(--font-scale));
    font-weight: 900;
    color: var(--accent);
}
.timeline-content {
    background:  #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.timeline-content h3 {
    font-size: calc(1.3rem * var(--font-scale));
}
.timeline-content p {
    font-size: calc(1rem * var(--font-scale));
}
.qual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.qual-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
}
.qual-card:hover {
    transform: translateY(-5px);
    border: 2px solid var(--accent);
}
.qual-card i {
    font-size: calc(3rem * var(--font-scale));
    color: var(--accent);
    margin-bottom: 1rem;
}
.qual-card h4 {
    font-size: calc(1.2rem * var(--font-scale));
}
.qual-card p {
    font-size: calc(1rem * var(--font-scale));
}
.philosophy-content {
    background: var(--gray);
    padding: 3rem;
    border-radius: 20px;
}
.philosophy-content p {
    margin-bottom: 1.5rem;
    font-size: calc(1rem * var(--font-scale));
}

/* ========== CONTACT ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.info-card {
    background:#ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: var(--transition);
}
.info-card:hover {
    transform: translateY(-5px);
}
.info-card i {
    font-size: calc(2.5rem * var(--font-scale));
    color: var(--accent);
    margin-bottom: 1rem;
}
.info-card h3 {
    font-size: calc(1.2rem * var(--font-scale));
}
.info-card p {
    font-size: calc(1rem * var(--font-scale));
}
.contact-form-wrapper {
    background:#ffffff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.contact-form-wrapper h2 {
    font-size: calc(2rem * var(--font-scale));
    color: var(--primary);
    margin-bottom: 2rem;
}
.form-group {
    margin-bottom: 2.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--primary);
    font-size: calc(1rem * var(--font-scale));
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.4rem;
    border: 2px solid var(--gray);
    border-radius: 10px;
    font-family: inherit;
    font-size: calc(1rem * var(--font-scale));
    background: var(--light);
    color: var(--dark);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(134, 53, 66, 0.1);
}
.checkbox-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    font-weight: 400;
    font-size: calc(0.9rem * var(--font-scale));
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    accent-color: var(--accent);
    cursor: pointer;
}
.frase-speciale {
    color: black;
    font-size: 1.1rem;
    font-family: 'Lucida Calligraphy', cursive;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}
#formMessage {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    display: none;
    font-size: calc(1rem * var(--font-scale));
}
#formMessage.success {
    background: #d4edda;
    color: #155724;
    display: block;
}
#formMessage.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* ========== VIDEO ========== */
.video-wrapper {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
}

/* ========== TESTIMONIALS HORIZONTAL ========== */
.testimonials-horizontal-section {
    padding: 5rem 2rem;
    background: var(--light);
}
.testimonials-horizontal-section h2 {
    font-size: calc(3rem * var(--font-scale));
    text-align: center;
    color: var(--primary);
    margin-bottom: 1rem;
}
.testimonials-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}
.testimonial-card-horizontal {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    border: 2px solid transparent;
}
/* ========== TESTIMONIALS HORIZONTAL ========== */
.testimonial-card-horizontal:hover {
    /*transform: translateX(10px);*/
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.testimonial-card-horizontal.reverse {
    flex-direction: row-reverse;
}

/*.testimonial-card-horizontal.reverse:hover {
    transform: translateX(-10px);
} commentati gli hover per impedire spostamenti campo o messa in evidenza quando passi col mouse*/

.testimonial-image {
    flex-shrink: 0;
}
.testimonial-card-horizontal .author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.testimonial-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.testimonial-content {
    flex: 1;
}
.testimonial-card-horizontal .testimonial-text {
    font-size: calc(1.1rem * var(--font-scale));
    line-height: 1.8;
    color: var(--dark);
    margin-bottom: 1rem;
    font-style: italic;
}
.testimonial-card-horizontal .testimonial-author {
    border-top: none;
    padding-top: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}
.testimonial-card-horizontal .testimonial-author strong {
    font-size: calc(1.2rem * var(--font-scale));
    color: var(--primary);
}
.testimonial-card-horizontal .testimonial-author span {
    font-size: calc(0.9rem * var(--font-scale));
    color: var(--dark);
    opacity: 0.7;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .accessibility-toolbar {
        right: 10px;
        padding: 0.75rem;
    }
    .toolbar-toggle {
        right: 10px;
    }
}

/* Mobile Responsive - UNICA SEZIONE */
@media (max-width: 768px) {
    /* Page Hero Mobile */
    .page-hero {
        margin-top: calc(3.5rem + (5rem * var(--font-scale)));
        padding: 3rem 2rem;
        min-height: 30vh;
    }
    .page-hero h1 {
        font-size: calc(2.5rem * var(--font-scale));
    }
    
    /* Hero Mobile */
    .hero h1 {
        font-size: calc(2.5rem * var(--font-scale));
    }
    
    /* Sections Mobile */
    .intro h2,
    .services h2 {
        font-size: calc(2rem * var(--font-scale));
    }
    
    /* Grids Mobile */
    .about-grid,
    .contact-grid,
    .about-intro-grid {
        grid-template-columns: 1fr;
    }
    
    /* Service Detail Mobile */
    .service-detail {
        flex-direction: column;
        text-align: center;
    }
    
    /* Testimonials Mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .testimonial-card-horizontal,
    .testimonial-card-horizontal.reverse {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    .testimonial-card-horizontal:hover,
    .testimonial-card-horizontal.reverse:hover {
        transform: translateY(-5px);
    }
    .testimonial-card-horizontal .testimonial-author {
        align-items: center;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .header,
    .accessibility-toolbar,
    .toolbar-toggle,
    .mobile-menu-toggle,
    .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ========== FORM ANAGRAFICA PAZIENTE ========== */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}
.form-row-indirizzo {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 1rem;
}
.form-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 1.5rem 0 0.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #ddd;
}

@media (max-width: 600px) {
    .form-row-2,
    .form-row-3,
    .form-row-indirizzo {
        grid-template-columns: 1fr;
    }
}

/* ========== DARK MODE — BORDI CARD ========== */
body.dark-mode .stat-card,
body.dark-mode .service-card,
body.dark-mode .qual-card,
body.dark-mode .info-card,
body.dark-mode .contact-form-wrapper,
body.dark-mode .form-group input,
body.dark-mode .form-group select,
body.dark-mode .form-group textarea {
    border: 1px solid rgba(255, 255, 255, 0.12);
}

body.dark-mode .stat-card,
body.dark-mode .qual-card,
body.dark-mode .info-card,
body.dark-mode .contact-form-wrapper {
    background: #1e2e1f;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}
body.dark-mode .service-card {
    background: #233325;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

body.dark-mode .stat-card:hover,
body.dark-mode .service-card:hover,
body.dark-mode .qual-card:hover,
body.dark-mode .info-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(74, 158, 63, 0.2);
}

/* Dark mode — Hero e sezioni aggiuntive */
body.dark-mode .hero {
    background: linear-gradient(135deg, rgba(15,40,18,0.97), rgba(26,92,42,0.9)),
                url(../images/hero-bg.jpg) center/cover;
}
body.dark-mode .testimonial-card-horizontal {
    background: #1e2e1f;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
body.dark-mode .testimonial-card-horizontal:hover {
    border-color: var(--accent);
}
body.dark-mode .timeline-content {
    background: #1e2e1f;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
body.dark-mode .service-detail {
    background: #1e2e1f;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
body.dark-mode .philosophy-content {
    background: #233325;
    border: 1px solid rgba(255,255,255,0.12);
}
body.dark-mode .header {
    background: #121a13;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
body.dark-mode .page-hero {
    background: linear-gradient(180deg, #121a13 0%, #1a2e1d 100%);
}
body.dark-mode .page-hero h1 {
    color: #4a9e3f;
}
body.dark-mode .page-hero p {
    color: #e0e0e0;
    opacity: 0.9;
}
body.dark-mode .service-detail {
    background: #1e2e1f;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
body.dark-mode .service-content h2 {
    color: #4a9e3f;
}
body.dark-mode .service-content p,
body.dark-mode .service-content li {
    color: #e0e0e0;
}

/* STILE PRIVACY */
.privacy-section {
    padding: 4rem 0;
    background: var(--light);
}
.privacy-section .container {
    max-width: 860px;
}
.privacy-notice {
    background: #fff8e1;
    border-left: 4px solid #f9a825;
    padding: 1rem 1.25rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
    color: #5d4037;
    line-height: 1.6;
}
.privacy-block {
    margin-bottom: 2.5rem;
}
.privacy-block h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(26, 92, 42, 0.15);
}
.privacy-block p {
    font-size: 0.97rem;
    color: var(--dark);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}
.privacy-block ul {
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}
.privacy-block ul li {
    font-size: 0.97rem;
    color: var(--dark);
    line-height: 1.75;
    margin-bottom: 0.3rem;
}
.privacy-block .sub-block {
    margin: 1rem 0 1rem 0;
    padding-left: 1rem;
    border-left: 3px solid var(--secondary);
}
.privacy-block .sub-block h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.4rem;
}
.privacy-block .base-giuridica {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-top: 0.4rem;
}
.privacy-updated {
    text-align: right;
    font-size: 0.85rem;
    color: #888;
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(26, 92, 42, 0.1);
}
.privacy-contact-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
.privacy-contact-link:hover {
    text-decoration: underline;
}