/* ========================================
   SCGS Consulting - Sito Vetrina
   ======================================== */

:root {
    --primary: #0f1f3d;
    --primary-light: #1a3563;
    --accent: #c9a84c;
    --accent-hover: #b8952f;
    --blue: #2E86AB;
    --text: #2d3436;
    --text-light: #636e72;
    --light-bg: #f5f7fa;
    --white: #ffffff;
    --border: #e1e5e9;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Reset & Base ---- */
* { box-sizing: border-box; }

body.sito-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
}

.sito-body h1, .sito-body h2, .sito-body h3, .sito-body h4, .sito-body h5 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary);
}

.sito-body a { color: var(--accent); text-decoration: none; transition: var(--transition); }
.sito-body a:hover { color: var(--accent-hover); text-decoration: none; }

.sito-body img { max-width: 100%; height: auto; }

/* ---- Utility ---- */
.text-accent { color: var(--accent) !important; }
.bg-primary-dark { background-color: var(--primary) !important; }
.bg-light-custom { background-color: var(--light-bg) !important; }

.section-padding { padding: 80px 0; }
@media (max-width: 768px) { .section-padding { padding: 50px 0; } }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}
@media (max-width: 768px) { .section-title { font-size: 1.8rem; } }

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.divider-accent {
    width: 60px;
    height: 4px;
    background: var(--accent);
    border: none;
    margin: 1rem auto 2rem;
    border-radius: 2px;
}

/* ---- Navbar ---- */
.sito-navbar {
    background: transparent !important;
    padding: 20px 0;
    transition: var(--transition);
    z-index: 1050;
}

.sito-navbar.scrolled {
    background: var(--primary) !important;
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.sito-navbar .navbar-brand img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.sito-navbar.scrolled .navbar-brand img { height: 40px; }

.sito-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    transition: var(--transition);
    position: relative;
    font-family: 'Inter', sans-serif;
}

.sito-navbar .nav-link:hover,
.sito-navbar .nav-link.active {
    color: var(--accent) !important;
}

.sito-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.sito-navbar .nav-link:hover::after,
.sito-navbar .nav-link.active::after { width: 60%; }

.sito-navbar .btn-area-clienti {
    background: var(--accent);
    color: var(--primary) !important;
    font-weight: 600;
    border-radius: 25px;
    padding: 8px 24px !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--accent);
    font-family: 'Inter', sans-serif;
}

.sito-navbar .btn-area-clienti:hover {
    background: transparent;
    color: var(--accent) !important;
}

.sito-navbar .btn-area-clienti-logged {
    background: #28a745;
    border-color: #28a745;
    color: #fff !important;
}

.sito-navbar .btn-area-clienti-logged:hover {
    background: transparent;
    color: #28a745 !important;
}

.sito-navbar .btn-area-clienti::after { display: none; }

/* Toggler */
.sito-navbar .navbar-toggler {
    border-color: rgba(255,255,255,0.3);
    padding: 4px 8px;
}

.sito-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- Responsive images ---- */
.img-responsive {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    object-fit: cover;
}

.img-section {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.img-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.img-section:hover img { transform: scale(1.03); }

.img-section-fixed { height: 400px; }
@media (max-width: 992px) { .img-section-fixed { height: 300px; } }
@media (max-width: 576px) { .img-section-fixed { height: 220px; } }

/* ---- Hero ---- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    overflow: hidden;
}

/* Assicura che il contenuto non vada sotto la navbar */
.hero-section > .container {
    padding-top: 20px;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

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

/* Dark overlay sopra l'immagine di sfondo */
.hero-bg-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(8, 15, 30, 0.95) 0%, rgba(10, 20, 40, 0.88) 50%, rgba(8, 15, 30, 0.92) 100%);
}


.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.08);
    animation: heroFloat 20s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
    display: inline-block;
    background: rgba(201, 168, 76, 0.15);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(201, 168, 76, 0.3);
    font-family: 'Inter', sans-serif;
}

.hero-title {
    font-size: 3rem;
    color: #ffffff !important;
    margin-bottom: 1.25rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-title .highlight {
    color: var(--accent);
    position: relative;
}

@media (max-width: 992px) { .hero-title { font-size: 2.2rem; } }
@media (max-width: 576px) { .hero-title { font-size: 1.8rem; } }

.hero-description {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    max-width: 560px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons .btn {
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.btn-accent {
    background: #ffffff;
    color: var(--primary) !important;
    border: 2px solid #ffffff;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn-accent:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

.btn-outline-light-custom {
    background: rgba(255,255,255,0.1);
    color: #ffffff !important;
    border: 2px solid rgba(255,255,255,0.7);
}

.btn-outline-light-custom:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

.hero-stats {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-item h3 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.25rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.hero-stat-item p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* ---- Servizi Cards ---- */
.servizio-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.servizio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.servizio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.servizio-card:hover::before { transform: scaleX(1); }

.servizio-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.servizio-card:hover .servizio-card-icon { transform: scale(1.1); }

.servizio-card h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.servizio-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.servizio-card .card-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.servizio-card .card-link i { transition: transform 0.3s ease; }
.servizio-card:hover .card-link i { transform: translateX(4px); }

/* ---- Chi Siamo Preview ---- */
.about-preview-section {
    position: relative;
    overflow: hidden;
}

.about-feature-list { list-style: none; padding: 0; }

.about-feature-list li {
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.05rem;
}

.about-feature-list li i {
    color: var(--accent);
    font-size: 1.2rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.about-image-wrapper {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.about-image-wrapper::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -20px;
    bottom: -20px;
    left: 20px;
    border: 3px solid var(--accent);
    border-radius: var(--radius);
    z-index: -1;
}

/* ---- Stats Counter ---- */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Inter', sans-serif;
    display: block;
}

.stat-label {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* ---- CTA Section ---- */
.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, #b8952f 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}

.cta-section h2 { color: var(--primary) !important; }

.cta-section p {
    color: rgba(15, 31, 61, 0.7);
    font-size: 1.15rem;
}

.btn-dark-custom {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

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

/* ---- Footer ---- */
.sito-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.7);
    padding-top: 80px;
}

.sito-footer h5 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.sito-footer p { font-size: 0.95rem; line-height: 1.8; }

.footer-links { list-style: none; padding: 0; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.footer-contact-item i {
    color: var(--accent);
    margin-top: 4px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 50px;
    font-size: 0.85rem;
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); }

/* ---- Page Hero (subpages) ---- */
.page-hero {
    background: linear-gradient(135deg, rgba(15, 31, 61, 0.92) 0%, rgba(26, 53, 99, 0.88) 100%);
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

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

.page-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 15, 30, 0.92);
}


.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(201, 168, 76, 0.08), transparent 70%);
}

/* ---- Footer credits ---- */
.footer-credits {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-top: 6px;
}

.footer-credits a {
    color: rgba(255,255,255,0.5);
}

.footer-credits a:hover { color: var(--accent); }

.footer-credits .freepik-attr {
    font-size: 0.7rem;
    opacity: 0.7;
}

.page-hero h1 {
    color: #ffffff !important;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

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

.page-hero p {
    color: rgba(255,255,255,0.7);
    font-size: 1.15rem;
    max-width: 600px;
}

.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-custom .breadcrumb-item a { color: var(--accent); }
.breadcrumb-custom .breadcrumb-item.active { color: rgba(255,255,255,0.6); }
.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ---- Servizio Dettaglio ---- */
.servizio-detail-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-bg);
    font-family: 'Inter', sans-serif;
}

.servizio-detail-content p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.vantaggi-list { list-style: none; padding: 0; }

.vantaggi-list li {
    padding: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid var(--light-bg);
}

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

.vantaggi-list li i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.sidebar-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.sidebar-card h5 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent);
}

.sidebar-servizi-list { list-style: none; padding: 0; }

.sidebar-servizi-list li a {
    display: block;
    padding: 10px 0;
    color: var(--text);
    border-bottom: 1px solid var(--light-bg);
    font-size: 0.95rem;
    transition: var(--transition);
}

.sidebar-servizi-list li a:hover,
.sidebar-servizi-list li a.active {
    color: var(--accent);
    padding-left: 8px;
}

.sidebar-servizi-list li:last-child a { border-bottom: none; }

/* ---- Contact Form ---- */
.contact-form .form-control {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.contact-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.contact-form label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.contact-info-card {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    height: 100%;
}

.contact-info-card h4 {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 1.5rem;
}

.contact-info-item .icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(201, 168, 76, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-info-item .info-text h6 {
    color: var(--white);
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-info-item .info-text p {
    color: rgba(255,255,255,0.7);
    margin: 0;
    font-size: 0.95rem;
}

.contact-info-item .info-text a {
    color: rgba(255,255,255,0.7);
}

.contact-info-item .info-text a:hover { color: var(--accent); }

/* ---- Cookie Banner ---- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: rgba(255,255,255,0.85);
    padding: 20px 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}

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

.cookie-banner p { margin: 0; font-size: 0.9rem; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }

.btn-cookie-accept {
    background: var(--accent);
    color: var(--primary);
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.btn-cookie-accept:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    border: none;
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.35);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(201, 168, 76, 0.5);
}

/* ---- Legal Pages ---- */
.legal-content h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-family: 'Inter', sans-serif;
}

.legal-content p, .legal-content li {
    color: var(--text-light);
    font-size: 0.98rem;
}

.legal-content ul { padding-left: 1.5rem; }
.legal-content ul li { margin-bottom: 6px; }

/* ---- Chi Siamo Page ---- */
.values-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}

.values-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.values-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
}

.values-card h4 {
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
}

.values-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ---- Servizi Page Grid ---- */
.servizi-page-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.servizi-page-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.servizi-page-card .card-header-bar {
    height: 6px;
    width: 100%;
}

.servizi-page-card .card-body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }

.servizi-page-card .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.servizi-page-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; font-family: 'Inter', sans-serif; }

.servizi-page-card p { color: var(--text-light); font-size: 0.95rem; flex: 1; }

.servizi-page-card .card-link-bottom {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    padding-top: 1rem;
}

.servizi-page-card:hover .card-link-bottom i { transform: translateX(4px); }
.servizi-page-card .card-link-bottom i { transition: transform 0.3s ease; }

/* ---- Success Alert ---- */
.alert-success-custom {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.alert-success-custom i { font-size: 3rem; color: #28a745; margin-bottom: 1rem; }

/* ---- Map embed ---- */
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
}

/* ---- Animations (classi mantenute nel markup ma senza effetto opacity) ---- */
/* Le classi .fade-up, .fade-left, .fade-right, .scale-in non nascondono il contenuto */

/* Stagger children */
.stagger-children > * { transition-delay: calc(var(--i, 0) * 100ms); }

/* ---- Responsive ---- */
@media (max-width: 992px) {
    .hero-stats { flex-direction: column; gap: 1rem; text-align: center; }
    .hero-stat-item { margin-bottom: 1rem; }

    /* Navbar mobile: sfondo opaco */
    .sito-navbar .navbar-collapse {
        background: var(--primary);
        padding: 20px;
        margin: 10px -12px -10px;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    }

    .sito-navbar .nav-link {
        padding: 10px 16px !important;
    }

    .sito-navbar .nav-link::after { display: none; }

    .sito-navbar .btn-area-clienti {
        display: block;
        text-align: center;
        margin-top: 12px;
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .hero-section { min-height: auto; padding: 120px 0 50px; }
    .section-padding { padding: 50px 0; }
    .sito-footer { padding-top: 50px; }
    .page-hero { padding: 130px 0 60px; }
    .stat-number { font-size: 2.2rem; }
    .contact-info-card { margin-top: 2rem; }
}

@media (max-width: 576px) {
    .hero-buttons .btn { width: 100%; margin-bottom: 0.75rem; }
    .hero-description { font-size: 1rem; }
}

/* ---- Print ---- */
@media print {
    .sito-navbar, .sito-footer, .cookie-banner, .back-to-top { display: none !important; }
    .hero-section { min-height: auto; padding: 2rem 0; }
}
