/* style.css */

/* ==========================================================================
   1. RESET & BASICS
   ========================================================================== */

:root {
    --primary: #A52747;        /* Rosso principale */
    --primary-light: #d93856;  /* Rosso brillante per accenti */
    --primary-dark: #801c34;   /* Rosso scuro corporate */
    --secondary: #000000;      /* Nero per contrasto */
    --accent: #f59e0b;         /* Ambra/Oro per evidenziazioni */
    
    --bg-white: #ffffff;
    --bg-light: #f8fafc;       /* Grigio chiarissimo per alternanza sezioni */
    --bg-slate: #f1f5f9;       /* Grigio leggermente più scuro per cards/banners */
    
    --text-main: #0f172a;      /* Slate scuro per ottima leggibilità */
    --text-muted: #475569;     /* Slate chiaro per sottotitoli e info secondarie */
    --text-light: #94a3b8;     
    --text-white: #ffffff;
    
    --border-color: #e2e8f0;
    --border-focus: #d93856;
    
    --font-title: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 10px 15px -3px rgba(217, 56, 86, 0.2);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   2. UTILITIES & TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.highlight {
    color: var(--primary);
    background: linear-gradient(120deg, rgba(217, 56, 86, 0.15) 0%, rgba(217, 56, 86, 0) 100%);
    padding: 0 4px;
    border-radius: 4px;
}

.highlight-red-large {
    color: var(--primary);
    font-size: 1.45em;
    font-weight: 800;
    display: inline-block;
    letter-spacing: -0.02em;
    line-height: 1;
    vertical-align: middle;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 56px;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--secondary);
    margin-bottom: 16px;
    letter-spacing: -0.025em;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(165, 39, 71, 0.08);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-badge.badge-light {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--bg-white);
}

/* ==========================================================================
   2.5. SCROLL REVEAL ANIMATIONS (GPU Accelerated for Core Web Vitals)
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 28px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    width: 100%;
}

@media (min-width: 768px) {
    .btn {
        width: auto;
    }
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -3px rgba(10, 124, 66, 0.3);
}

.btn-secondary {
    background-color: var(--bg-slate);
    color: var(--secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    color: var(--text-main);
    transform: translateY(-2px);
}

.btn-submit {
    background-color: var(--primary);
    color: var(--text-white);
    font-size: 1.125rem;
    box-shadow: var(--shadow-primary);
    border-radius: var(--radius-sm);
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* Animazione pulsazione per la CTA principale */
.btn-pulse {
    position: relative;
    overflow: hidden;
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(217, 56, 86, 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ==========================================================================
   4. HEADER & NAVBAR (Perfezionato & Ordinato)
   ========================================================================== */

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 74px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 16px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 44px;
    width: auto;
    aspect-ratio: 180 / 48;
    object-fit: contain;
    display: block;
}

.logo-meta {
    display: none;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid #e2e8f0;
    padding-left: 14px;
    line-height: 1.25;
}

@media (min-width: 1100px) {
    .logo-meta {
        display: flex;
    }
}

.meta-tagline {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meta-locations {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-menu {
    display: none;
    align-items: center;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 992px) {
    .nav-menu {
        display: flex;
    }
}

.nav-item {
    font-family: var(--font-title);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding: 8px 4px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-item:hover {
    color: var(--primary);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
}

.nav-item.active {
    color: var(--primary);
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.whatsapp-btn {
    background-color: #25d366;
    color: var(--text-white);
    box-shadow: 0 2px 6px rgba(37, 211, 102, 0.25);
}

.whatsapp-btn:hover {
    background-color: #1eb956;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35);
}

.tel-btn {
    background-color: var(--secondary);
    color: var(--text-white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.tel-btn:hover {
    background-color: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.nav-cta-btn .btn-text {
    display: none;
}

@media (min-width: 520px) {
    .nav-cta-btn .btn-text {
        display: inline;
    }
}

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */

.hero-section {
    position: relative;
    padding: 80px 0 100px;
    background-color: var(--bg-light);
    background-image: radial-gradient(at top left, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
                      radial-gradient(at bottom right, rgba(30, 58, 138, 0.08) 0%, transparent 40%);
    overflow: hidden;
}

@media (min-width: 992px) {
    .hero-section {
        padding: 120px 0 140px;
    }
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.badge-trust {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 32px;
}

.badge-trust i {
    color: var(--primary-light);
    font-size: 1rem;
}

.hero-title {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-title span {
    color: var(--primary);
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hero-desc {
        font-size: 1.25rem;
    }
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .hero-actions {
        flex-direction: row;
    }
}

.hero-footer-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ==========================================================================
   6. SEZIONE ESPERIENZA & SEDI
   ========================================================================== */

.experience-section {
    padding: 96px 0;
    background-color: var(--bg-white);
}

.locations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

@media (min-width: 576px) {
    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .locations-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.location-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.location-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
    background-color: var(--bg-white);
}

.loc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.location-card:hover .loc-badge {
    transform: translateX(4px);
    color: var(--primary-dark);
}

.loc-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background-color: rgba(165, 39, 71, 0.08);
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 16px;
    transition: var(--transition-smooth);
}

.location-card:hover .loc-icon-box {
    background-color: var(--primary);
    color: var(--text-white);
    transform: scale(1.08);
}

.location-card h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 8px;
}

.location-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.visit-info-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 24px;
    background-color: rgba(217, 56, 86, 0.06);
    border: 1px dashed rgba(217, 56, 86, 0.3);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--primary-dark);
    margin-bottom: 72px;
}

.visit-info-banner i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Team Grid & Cards */
.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.team-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(165, 39, 71, 0.2);
}

.team-img-wrapper {
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: var(--bg-slate);
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.team-card:hover .team-img {
    transform: scale(1.05);
}

.team-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-info h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    display: block;
}

.team-quote {
    font-style: italic;
    font-size: 0.875rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 16px;
    border-left: 2px solid var(--primary-light);
    line-height: 1.5;
}

.experience-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

@media (min-width: 768px) {
    .experience-actions {
        flex-direction: row;
    }
}

/* ==========================================================================
   7. SEZIONE SERVIZI
   ========================================================================== */

.services-section {
    padding: 96px 0;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 56px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px 24px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-xl);
}

.service-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: rgba(165, 39, 71, 0.08);
    color: var(--primary);
    font-size: 1.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
    background-color: var(--primary);
    color: var(--text-white);
    transform: rotate(5deg) scale(1.05);
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--secondary);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Card larga per evidenziare il pedone/bici */
@media (min-width: 768px) {
    .services-grid .large-card {
        grid-column: span 2;
        display: flex;
        align-items: flex-start;
        gap: 24px;
        text-align: left;
    }
}

@media (min-width: 992px) {
    .services-grid .large-card {
        grid-column: span 2;
    }
}

.services-grid .large-card .service-icon-box {
    margin-bottom: 0;
    flex-shrink: 0;
}

.services-grid .large-card h3 {
    margin-top: 4px;
}

.services-footer {
    text-align: center;
}

.services-footer .s-foot {
    margin-top: 16px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==========================================================================
   8. SEZIONE METODOLOGIA (COME FUNZIONA)
   ========================================================================== */

.method-section {
    padding: 96px 0;
    background-color: var(--bg-white);
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
}

@media (min-width: 992px) {
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pillar-card {
    position: relative;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 48px 32px 32px;
    transition: var(--transition-smooth);
}

.pillar-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-white);
}

.pillar-number {
    position: absolute;
    top: 24px;
    right: 32px;
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(10, 124, 66, 0.1);
    line-height: 1;
}

.pillar-visual {
    margin-bottom: 24px;
}

.pillar-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.pillar-card h3 {
    font-size: 1.35rem;
    color: var(--secondary);
    margin-bottom: 12px;
}

.pillar-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.method-footer {
    text-align: center;
}

.method-footer .m-foot {
    margin-top: 16px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==========================================================================
   9. SEZIONE CONTATTI & FORM (GLASSMORPHIC)
   ========================================================================== */

.contact-section {
    padding: 96px 0;
    background-color: var(--secondary);
    color: var(--text-white);
    background-image: linear-gradient(135deg, var(--secondary) 0%, #111827 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    border-radius: var(--radius-full);
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .contact-container {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.contact-content .desc {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.fallback-call {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 40px;
}

.fallback-call i {
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-top: 2px;
}

.fallback-call span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.highlight-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    color: var(--primary-light);
    font-weight: 700;
    font-size: 1.125rem;
}

.highlight-link:hover {
    color: var(--text-white);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.info-item i {
    font-size: 1.25rem;
    color: var(--primary-light);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: var(--radius-full);
}

.info-item h4 {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.info-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Card del Form (Glassmorphism) */
.contact-form-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(217, 56, 86, 0.15);
}

/* Prefisso Telefono */
.phone-input-container {
    display: flex;
    gap: 8px;
    width: 100%;
}

.country-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    color: var(--text-white);
}

.country-picker:focus {
    outline: none;
    border-color: var(--primary-light);
}

.country-picker i {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-left: 4px;
}

.country-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 240px;
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xl);
    z-index: 50;
    list-style: none;
    padding: 8px 0;
}

.country-dropdown.hidden {
    display: none;
}

.country-dropdown li {
    padding: 10px 16px;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.country-dropdown li:hover {
    background-color: var(--primary);
    color: var(--text-white);
}

/* Checkbox privacy */
.form-privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-privacy-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-light);
    margin-top: 3px;
    cursor: pointer;
}

.form-privacy-consent label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    cursor: pointer;
}

.form-privacy-consent .privacy-link {
    color: var(--primary-light);
    text-decoration: underline;
}

.form-privacy-consent .privacy-link:hover {
    color: var(--text-white);
}

/* Messaggio di successo */
.form-success-message {
    text-align: center;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.form-success-message.hidden {
    display: none;
}

.success-icon-box {
    font-size: 4rem;
    color: var(--primary-light);
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.form-success-message h3 {
    font-size: 1.75rem;
}

.form-success-message p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 400px;
    line-height: 1.6;
}

.form-success-message .btn {
    margin-top: 12px;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   10. FOOTER (Perfettamente Ordinato & Responsive)
   ========================================================================== */

.main-footer {
    background-color: #0b0f19;
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

@media (min-width: 640px) and (max-width: 991px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (min-width: 992px) {
    .footer-top {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 48px;
    }
}

.footer-brand {
    max-width: 440px;
}

.footer-logo {
    height: 44px;
    width: auto;
    aspect-ratio: 180 / 48;
    object-fit: contain;
    margin-bottom: 18px;
    display: block;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
}

.footer-links h4 {
    color: var(--text-white);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 8px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.footer-links a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    align-items: center;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: var(--primary-light);
}

.footer-legal-links .separator {
    color: rgba(255, 255, 255, 0.2);
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
}

.footer-legal-links a:hover {
    color: var(--primary-light);
}

.footer-legal-links .separator {
    color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   11. SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   12. INTERACTIVE DAMAGE CALCULATOR STYLES
   ========================================================================== */

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 24px;
}

@media (min-width: 992px) {
    .calculator-wrapper {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.calc-inputs-card,
.calc-results-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.calc-inputs-card h3,
.calc-results-card h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 8px;
}

.calc-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.calc-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.calc-form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-form-group label span {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 700;
}

.calc-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--bg-slate);
    outline: none;
    margin: 12px 0;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(165, 39, 71, 0.3);
    transition: var(--transition-smooth);
}

.calc-slider::-webkit-slider-thumb:hover {
    background: var(--primary-light);
    transform: scale(1.1);
}

.calc-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 576px) {
    .calc-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.calc-number-input {
    width: 100%;
    padding: 10px 14px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
}

.calc-number-input:focus {
    border-color: var(--primary-light);
    background-color: var(--bg-white);
}

/* Warnings and Notices */
.warning-macrolesioni {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background-color: rgba(245, 158, 11, 0.08);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
    margin-top: 12px;
    font-size: 0.85rem;
    color: #b45309;
    line-height: 1.4;
}

.warning-macrolesioni i {
    font-size: 1.1rem;
    margin-top: 2px;
}

.calc-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.calc-notice i {
    color: var(--primary-light);
    font-size: 1.1rem;
    margin-top: 2px;
}

/* Breakdown result formatting */
.results-breakdown {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 12px;
}

.result-row .val {
    font-weight: 600;
    color: var(--text-main);
}

.result-row.total-row {
    border-bottom: none;
    padding-bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
}

@media (min-width: 576px) {
    .result-row.total-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.result-row.total-row .label {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
}

.highlight-price {
    font-family: var(--font-title);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary) !important;
    text-shadow: 0 2px 10px rgba(165, 39, 71, 0.1);
}

.btn-submit-calc {
    margin-top: auto;
}

/* ==========================================================================
   13. FAQ ACCORDION SECTION
   ========================================================================== */
.faq-section {
    background-color: var(--bg-light);
    padding: 96px 0;
    border-top: 1px solid var(--border-color);
}

.faq-list {
    max-width: 800px;
    margin: 48px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: rgba(165, 39, 71, 0.3);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 16px;
}

.faq-question h3 {
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0;
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-slate);
    color: var(--primary);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.faq-item.active .faq-toggle {
    background-color: var(--primary);
    color: var(--text-white);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--bg-white);
}

.faq-answer p {
    padding: 0 24px 24px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   LOCATION HUB & DIRECT ACTION CTAS
   ========================================================================== */

.location-hub-section {
    padding: 72px 0;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.location-hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 36px;
}

@media (min-width: 992px) {
    .location-hub-grid {
        grid-template-columns: 1.1fr 1fr;
        align-items: stretch;
    }
}

.location-info-panel {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.location-info-header {
    margin-bottom: 24px;
}

.location-info-header h3 {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-info-header h3 i {
    color: var(--primary);
}

.location-info-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.location-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.location-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.925rem;
    color: var(--text-main);
}

.location-detail-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background-color: rgba(165, 39, 71, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.location-detail-text strong {
    display: block;
    color: var(--secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.location-action-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 576px) {
    .location-action-buttons {
        grid-template-columns: 1fr 1fr;
    }
}

.action-btn-hub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.action-btn-call {
    background-color: var(--primary);
    color: var(--text-white);
    border: 1px solid var(--primary);
}

.action-btn-call:hover {
    background-color: var(--primary-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.action-btn-chat {
    background-color: #25D366;
    color: #ffffff;
    border: 1px solid #22c55e;
}

.action-btn-chat:hover {
    background-color: #1da851;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(37, 211, 102, 0.3);
}

.location-map-wrapper {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 380px;
}

.location-map-frame {
    width: 100%;
    height: 100%;
    min-height: 340px;
    border: 0;
    flex-grow: 1;
}

.map-directions-bar {
    padding: 14px 20px;
    background-color: var(--bg-slate);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
}

.map-directions-bar a {
    color: var(--primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.map-directions-bar a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ==========================================================================
   CID / CONSTATAZIONE AMICHEVOLE & CARROATTREZZI SECTION
   ========================================================================== */

.cid-download-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: white;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    margin: 36px 0;
}

.cid-download-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(165, 39, 71, 0.35) 0%, rgba(165, 39, 71, 0) 70%);
    pointer-events: none;
}

.cid-download-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .cid-download-grid {
        grid-template-columns: 1.3fr 0.9fr;
    }
}

.cid-download-info h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.cid-download-info p {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 24px;
}

.cid-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.cid-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.cid-badge-item i {
    color: #22c55e;
}

.cid-actions-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(255, 255, 255, 0.05);
    padding: 28px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.btn-download-cid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 28px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: white;
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 20px -5px rgba(217, 56, 86, 0.5);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-download-cid:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(217, 56, 86, 0.7);
    color: white;
}

/* CID Steps Guide */
.cid-guide-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 40px 0;
}

@media (min-width: 768px) {
    .cid-guide-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .cid-guide-steps {
        grid-template-columns: repeat(4, 1fr);
    }
}

.cid-step-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    position: relative;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.cid-step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.cid-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(165, 39, 71, 0.1);
    color: var(--primary);
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cid-step-card h3 {
    font-size: 1.15rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.cid-step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.cid-warning-box {
    margin-top: 12px;
    padding: 10px 14px;
    background-color: #fff1f2;
    border-left: 3px solid #e11d48;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: #9f1239;
    font-weight: 600;
}

/* Soccorso Stradale / Carroattrezzi Section */
.towing-section {
    padding: 72px 0;
    background-color: var(--bg-light);
}

.towing-zone-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 36px;
}

@media (min-width: 768px) {
    .towing-zone-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .towing-zone-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.towing-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.towing-card:hover {
    border-color: #f59e0b;
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.towing-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.towing-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-color: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.towing-title h3 {
    font-size: 1.15rem;
    margin-bottom: 2px;
    color: var(--secondary);
}

.towing-title span {
    font-size: 0.8rem;
    color: #16a34a;
    font-weight: 700;
    text-transform: uppercase;
}

.towing-contacts-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.towing-contacts-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.towing-contacts-list li i {
    color: var(--primary);
    margin-top: 4px;
}

.btn-towing-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    background-color: #0f172a;
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    text-decoration: none;
    width: 100%;
}

.btn-towing-call:hover {
    background-color: #f59e0b;
    color: #0f172a;
}

/* Sticky Emergency Alert Notification */
.emergency-call-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 380px;
    background: #0f172a;
    border: 2px solid var(--primary);
    color: white;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.35);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.emergency-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    animation: pulseIcon 1.8s infinite;
}

@keyframes pulseIcon {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(165, 39, 71, 0.7); }
    70% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(165, 39, 71, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(165, 39, 71, 0); }
}

.emergency-text {
    flex-grow: 1;
}

.emergency-text strong {
    display: block;
    font-size: 0.95rem;
    color: white;
}

.emergency-text span {
    font-size: 0.8rem;
    color: #94a3b8;
}

.emergency-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.emergency-btn:hover {
    background-color: var(--primary-light);
    color: white;
}

.emergency-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 0.9rem;
}

.emergency-close:hover {
    color: white;
}


