:root {
    --primary-color: #3b5d50;
    --primary-dark: #2f4a41;
    --accent-color: #f9bf29;
    /* Giallo distintivo */
    --text-dark: #2f2f2f;
    --text-muted: #6c757d;
    --light-bg: #f8f9fa;
    /* SYSTEM DESIGN UNIFICATO */
    --radius-main: 12px;
    /* Curvatura standard (Card, Input, Img) */
    --radius-btn: 50px;
    /* Curvatura Bottoni (Pillola) */
    --shadow-sm: 0 5px 20px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 30px rgba(0,0,0,0.1);
}

body {
    /* Rimosso font esterno. Usa il default di Bootstrap (System UI) */
    color: var(--text-dark);
    line-height: 1.6;
}

/* --- ANIMAZIONI (REVEAL) --- */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

html.reveal-enabled .reveal:not(.active) {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-color);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    position: relative;
}

/* Linea decorativa sotto i titoli */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-title.text-start::after {
    margin-left: 0;
}

.ls-2 {
    letter-spacing: 2px;
}

/* --- NAVBAR --- */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary-color) !important;
}

.brand-logo {
    display: block;
    max-width: 100%;
    height: auto;
}

.brand-logo--header {
    width: 196px;
}

.brand-logo--footer {
    width: 148px;
}

@media (max-width: 575px) {
    .brand-logo--header {
        width: 174px;
    }

    .contact-section .row.g-5 {
        --bs-gutter-x: 1.5rem;
    }
}

/* Link Menu con sottolineatura gialla */
.nav-link.underline-hover {
    color: var(--text-dark) !important;
    font-weight: 600;
    margin: 0 5px;
    position: relative;
    padding-bottom: 5px;
}

.nav-link.underline-hover::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease-in-out;
}

.nav-link.underline-hover:hover::after {
    width: 100%;
}

/* --- PULSANTI --- */
.btn {
    border-radius: var(--radius-btn);
    font-weight: 600;
    padding: 10px 25px;
    transition: all 0.3s;
}

/* Bottone Shop specifico */
.btn-shop {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.9rem;
    border: 2px solid var(--accent-color);
}

.btn-shop:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    border-color: var(--accent-color);
}

/* Bottone Primario Standard */
.btn-primary {
    background-color: var(--primary-color);
    border: 2px solid var(--accent-color) !important;
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    border-color: var(--accent-color) !important;
    transform: translateY(-2px);
}

/* --- HERO SECTION --- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #243b33 100%);
    padding-top: 130px;
    padding-bottom: 80px;
    color: white;
    min-height: 85vh;
}

.hero-title {
    color: white;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-subtitle {
    color: var(--accent-color);
    font-weight: 400;
    margin-bottom: 20px;
}

/* Immagine Hero STATICA */
.hero-img {
    border-radius: var(--radius-main);
    border: 5px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-hover);
    width: 100%;
}

/* --- SERVICES --- */
.section-padding {
    padding: 80px 0;
}

.service-card {
    background: white;
    padding: 35px 25px;
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-bottom: 3px solid var(--accent-color);
}

.service-icon {
    width: 65px;
    height: 65px;
    background: rgba(59, 93, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* --- STORIA & BADGE --- */
.about-image-wrapper {
    position: relative;
}

/* Badge 25+ Anni */
.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background-color: var(--accent-color);
    color: var(--primary-dark);
    padding: 15px 25px;
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-hover);
    text-align: center;
    line-height: 1.2;
    border: 4px solid white;
    z-index: 2;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.feature-list i {
    color: var(--accent-color);
}

/* --- MARCHI & PARTNER --- */
.partner-box {
    width: 220px;
    display: flex;
    flex-direction: column;
}

.partner-img-container {
    background: white;
    border: 1px solid #eee;
    border-radius: var(--radius-main);
    padding: 20px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.partner-img-container img {
    max-height: 90px;
    max-width: 100%;
}

.partner-box:hover .partner-img-container {
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Griglia Loghi Piccoli */
.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.brand-item {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    width: 110px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: 0.3s;
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
}

.brand-item:hover {
    border-color: var(--accent-color);
}

.brand-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* --- MAPPA & DIRECTION CARDS --- */
.map-container iframe {
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-sm);
}

.directions-card {
    border-radius: var(--radius-main) !important;
    border: 1px solid #eee;
    background: white !important;
    box-shadow: var(--shadow-sm);
}

/* --- CONTATTI --- */
.contact-section {
    background-color: var(--primary-dark);
    color: white;
}

.contact-form-wrapper {
    border-radius: var(--radius-main) !important;
}

.info-box {
    border-radius: var(--radius-main) !important;
    transition: transform 0.3s;
}

.info-box:hover {
    transform: translateX(5px);
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(59, 93, 80, 0.1);
    color: var(--primary-color);
}

/* Campi input puliti */
.form-control, .form-select {
    border-radius: var(--radius-main) !important;
    border: 1px solid #dee2e6;
    padding: 12px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 93, 80, 0.15);
}

/* --- FOOTER --- */
.footer-section {
    background-color: #1a1a1a;
    border-top: 4px solid var(--accent-color);
}

.social-icon {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    margin-right: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.social-icon:hover {
    background: var(--accent-color);
    color: var(--text-dark);
}

.hover-white:hover {
    color: white !important;
    padding-left: 3px;
    transition: 0.3s;
}

.hover-primary:hover {
    color: var(--primary-color) !important;
}

/* Mobile Tweaks */
@media (max-width: 991px) {
    .experience-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 15px;
        display: inline-block;
    }
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Correzioni tecniche che conservano la presentazione originale. */
[hidden] {
    display: none !important;
}

.navbar.is-scrolled {
    padding: 8px 0;
}

section[id], main[id] {
    scroll-margin-top: 90px;
}

section[tabindex="-1"]:focus, main[tabindex="-1"]:focus {
    outline: none;
}

.form-control:focus-visible,.form-select:focus-visible,:where(a,button,input,textarea):focus-visible {
    outline: 3px solid var(--focus-ring, #a57300);
    outline-offset: 4px;
}

.hero-section,.contact-section,.footer-section {
    --focus-ring: var(--accent-color);
}

.contact-form,.info-box {
    --focus-ring: #a57300;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 2000;
    padding: 10px 18px;
    border-radius: 6px;
    color: #2f2f2f;
    background: var(--accent-color);
}

.map-container {
    min-height: 400px;
}

.map-container iframe {
    border: 0;
}

.partner-img-container img, .brand-item img {
    width: auto;
    height: auto;
}

.request-fields {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.form-status {
    color: var(--primary-dark);
    font-size: 0.95rem;
    scroll-margin-block: 90px 70px;
}

.contact-form button:disabled {
    cursor: wait;
}

.preview-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 1100;
    padding: 7px 12px;
    border: 1px solid #b88a18;
    border-radius: 6px;
    background: #f9bf29;
    color: #263e32;
    font: 12px/1.5 system-ui,sans-serif;
    text-align: center;
    box-shadow: 0 2px 12px #0002;
}

@media (max-width: 991px) {
    .navbar-collapse.show {
        max-height: calc(100svh - 70px);
        overflow-y: auto;
    }

    html:not(.js-enabled) .navbar, html.menu-fallback .navbar {
        position: static;
    }
    html:not(.js-enabled) .navbar-collapse.collapse, html.menu-fallback .navbar-collapse.collapse {
        display: block;
    }
    html:not(.js-enabled) .navbar-toggler, html.menu-fallback .navbar-toggler {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
    html.reveal-enabled .reveal:not(.active) {
        opacity: 1;
        transform: none;
    }
}
