/*
Theme Name: .mav assistance
Template: hello-elementor
Version: 1.0.0
Description: Child theme per Hello Elementor - Soccorso Stradale Roma
Author: MAV Team
*/

/* ========================================
   RESET E BASE
======================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1a252f;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Reset completo Hello Elementor */
#page,
.site,
.site-content,
#content,
.elementor,
.elementor-section,
body.elementor-page {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

.site-content {
    padding: 0 !important;
}

/* ========================================
   HERO SECTIONS
======================================== */

.hero-impact,
.hero-mav {
    background: linear-gradient(135deg, rgba(26, 37, 47, 0.93), rgba(44, 62, 80, 0.85)),
                url('https://images.unsplash.com/photo-1562612173-63162804566c?q=80&w=2000') center/cover no-repeat;
    color: #ffffff;
    padding: 70px 20px;
    text-align: center;
    width: 100%;
}

/* Hero Home con immagine personalizzata */
.mav-home-template .hero-mav {
    background: linear-gradient(135deg, rgba(26, 37, 47, 0.75), rgba(44, 62, 80, 0.70)),
                url('https://www.mavassistancesoccorsostradale.com/wp-content/uploads/2025/12/hero-Mav-Assistence.webp') center/cover no-repeat;
}

.hero-impact .inner-container,
.hero-mav .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-impact h1,
.hero-mav h1 {
    font-size: clamp(2rem, 6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 24px 0;
    color: #fff;
    letter-spacing: -0.02em;
}

.hero-impact p,
.hero-mav p {
    font-size: clamp(1.05rem, 3vw, 1.3rem);
    margin: 0 0 36px 0;
    opacity: 0.96;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.badge-emergency {
    display: inline-block;
    background: rgba(230, 126, 34, 0.18);
    color: #e67e22;
    padding: 11px 26px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid #e67e22;
    margin-bottom: 28px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.btn-emergency {
    display: inline-block;
    background: #e67e22;
    color: #fff;
    padding: 18px 40px;
    font-size: clamp(1.05rem, 3vw, 1.25rem);
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.35);
    border: none;
}

.btn-emergency:hover {
    background: #d35400;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(230, 126, 34, 0.45);
    color: #fff;
}

/* ========================================
   TRUST BAR
======================================== */

.trust-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    background: #fff;
    padding: 28px 20px;
    border-radius: 14px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.09);
    margin: -60px auto 60px;
    max-width: calc(100% - 40px);
    position: relative;
    z-index: 10;
}

.trust-item {
    text-align: center;
    padding: 14px 8px;
}

.trust-item span {
    display: block;
    font-size: clamp(2rem, 6vw, 2.8rem);
    font-weight: 900;
    color: #e67e22;
    line-height: 1;
    margin-bottom: 10px;
}

.trust-item p {
    margin: 0;
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    color: #555;
    font-weight: 600;
}

/* ========================================
   CONTAINERS E LAYOUT
======================================== */

.inner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 24px;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.service-grid-full {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

/* ========================================
   CARDS
======================================== */

.district-box,
.service-card,
.pricing-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
    border-left: 5px solid #e67e22;
    transition: all 0.3s ease;
}

.district-box:hover,
.service-card:hover,
.pricing-card:hover {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}

.district-box h3,
.service-card h3 {
    font-size: clamp(1.15rem, 3vw, 1.4rem);
    font-weight: 700;
    margin: 0 0 14px 0;
    color: #1a252f;
}

.district-box p,
.service-card p {
    margin: 0;
    color: #4a5568;
    line-height: 1.7;
    font-size: 1.02rem;
}

.card-tag {
    background: #e67e22;
    color: #fff;
    padding: 8px 18px;
    border-radius: 7px;
    font-size: 0.88rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 18px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* ========================================
   TYPOGRAPHY
======================================== */

.districts-info h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    margin: 0 0 36px 0;
    color: #1a252f;
}

section h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    margin: 0 0 48px 0;
    color: #1a252f;
    text-align: center;
    letter-spacing: -0.02em;
}

/* ========================================
   SEZIONI SPECIALI
======================================== */

.pillar-premium-rescue {
    background: #f8f9fa;
}

.mav-home-template section:nth-child(odd) {
    background: #fff;
}

.mav-home-template section:nth-child(even) {
    background: #f8f9fa;
}

/* ========================================
   RESPONSIVE - TABLET (768px+)
======================================== */

@media (min-width: 768px) {
    .hero-impact,
    .hero-mav {
        padding: 120px 32px;
    }
    
    .trust-bar {
        grid-template-columns: repeat(4, 1fr);
        margin-top: -80px;
        max-width: 1140px;
        padding: 40px 32px;
    }
    
    .grid-3,
    .service-grid-full {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .inner-container {
        padding: 90px 32px;
    }
}

/* ========================================
   RESPONSIVE - DESKTOP (1024px+)
======================================== */

@media (min-width: 1024px) {
    .hero-impact,
    .hero-mav {
        padding: 150px 40px;
    }
    
    .main-layout {
        grid-template-columns: 1fr 1fr;
        gap: 52px;
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 36px;
    }
    
    .service-grid-full {
        grid-template-columns: repeat(3, 1fr);
        gap: 36px;
    }
    
    .inner-container {
        padding: 100px 40px;
    }
}

/* ========================================
   UTILITY
======================================== */

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

hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 28px 0;
}

/* ========================================
   ACCESSIBILITÀ
======================================== */

a:focus,
button:focus {
    outline: 3px solid #e67e22;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========================================
   HEADER - FULL WIDTH EDGE TO EDGE
======================================== */

.site-header {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 24px 0;
    width: 100vw !important;
    margin: 0 !important;
    max-width: 100% !important;
    left: 0;
    right: 0;
}

.header-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    text-decoration: none;
    display: flex;
    align-items: center;
    line-height: 1;
}

.logo-img {
    height: 45px;
    width: auto;
    display: block;
}

.logo-dot {
    color: #e67e22;
    font-size: 2.2rem;
    line-height: 1;
}

.logo-text {
    color: #1a252f;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: #1a252f;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #e67e22;
}

.nav-cta {
    background: #e67e22;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-cta:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 26px;
    height: 3px;
    background: #1a252f;
    margin: 3px 0;
    transition: all 0.3s ease;
    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(8px, -8px);
}

/* ========================================
   FOOTER - FULL WIDTH EDGE TO EDGE
======================================== */

.site-footer {
    display: flex;
    flex-direction: column; 
    align-items: center;   
    background: #1a252f;
    color: #cbd5e0;
    padding: 60px !important;
    width: 100% !important; 
    max-width: 100%;      
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 10 auto;
    padding: 0 24px;
    width: 100%;
    align-items: center;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
    width: 100%;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.2rem;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.footer-logo .logo-text {
    color: #fff;
}

.footer-desc {
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 24px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    color: #cbd5e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

a.contact-item:hover {
    color: #e67e22;
}

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

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

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #e67e22;
}

.footer-cta {
    display: inline-block;
    background: #e67e22;
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.footer-cta:hover {
    background: #d35400;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #a0aec0;
    font-size: 0.95rem;
}

.footer-legal {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-legal a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: #e67e22;
}

.footer-legal span {
    color: #4a5568;
}

/* ========================================
   RESPONSIVE HEADER & FOOTER
======================================== */

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 24px 24px;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        align-items: flex-start;
        gap: 24px;
    }

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

    .nav-link {
        font-size: 1.1rem;
        padding: 8px 0;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

    body.menu-open {
        overflow: hidden;
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 48px;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

/* ========================================
   WIDGET CHIAMATA RAPIDA FISSO
======================================== */

.quick-call-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    opacity: 0;
    transform: translateY(100px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.quick-call-widget.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.quick-call-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #e67e22;
    color: #fff;
    padding: 16px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 8px 24px rgba(230, 126, 34, 0.4);
    transition: all 0.3s ease;
}

.quick-call-btn:hover {
    background: #d35400;
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(230, 126, 34, 0.5);
}

.quick-call-btn svg {
    animation: ring 2s ease-in-out infinite;
}

.quick-call-tooltip {
    position: absolute;
    top: -40px;
    right: 0;
    background: #1a252f;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.quick-call-widget:hover .quick-call-tooltip {
    opacity: 1;
}

.quick-call-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #1a252f;
}

@keyframes ring {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-15deg);
    }
    20%, 40% {
        transform: rotate(15deg);
    }
    50% {
        transform: rotate(0deg);
    }
}

/* Mobile: versione più compatta */
@media (max-width: 767px) {
    .quick-call-widget {
        bottom: 16px;
        right: 16px;
    }
    
    .quick-call-btn {
        padding: 14px 20px;
        gap: 10px;
    }
    
    .quick-call-text {
        font-size: 0.95rem;
    }
    
    .quick-call-btn svg {
        width: 24px;
        height: 24px;
    }
}