:root {
    --primary: #1E3A5F;
    --primary-light: #2E5A8F;
    --accent: #0EA5E9;
    --accent-light: #38BDF8;
    --success: #10B981;
    --dark: #0F172A;
    --gray-900: #1E293B;
    --gray-700: #334155;
    --gray-500: #64748B;
    --gray-300: #CBD5E1;
    --gray-100: #F1F5F9;
    --white: #FFFFFF;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--gray-900); line-height: 1.6; background: var(--white); }

header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--gray-100); }
.header-container { max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-icon { width: 48px; height: 48px; background: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 1.25rem; }
.logo-text { display: flex; flex-direction: column; }
.logo-text strong { color: var(--primary); font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.logo-text span { color: var(--gray-500); font-size: 0.75rem; font-weight: 500; }
nav { display: flex; align-items: center; gap: 2rem; }
nav a { color: var(--gray-700); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
nav a:hover { color: var(--primary); }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: all 0.2s; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

.hero { min-height: 100vh; display: flex; align-items: center; padding: 8rem 2rem 4rem; background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 50%, #E0F2FE 100%); position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 80%; height: 150%; background: radial-gradient(ellipse, rgba(14,165,233,0.08) 0%, transparent 70%); pointer-events: none; }
.hero-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-content { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(14,165,233,0.1); color: var(--accent); padding: 0.5rem 1rem; border-radius: 100px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; }
.hero-badge::before { content: ''; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.hero h1 { font-size: 3.5rem; font-weight: 800; color: var(--dark); line-height: 1.1; margin-bottom: 1.5rem; }
.hero h1 span { color: var(--accent); }
.hero-subtitle { font-size: 1.25rem; color: var(--gray-500); margin-bottom: 2rem; max-width: 500px; }
.hero-cta { display: flex; gap: 1rem; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 3rem; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--gray-500); margin-top: 0.25rem; }
.hero-visual { position: relative; }
.hero-image { width: 100%; height: 500px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); border-radius: 24px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; box-shadow: 0 25px 50px -12px rgba(30,58,95,0.25); }
.hero-icon { font-size: 8rem; color: rgba(255,255,255,0.9); }
.floating-card { position: absolute; background: white; border-radius: 16px; padding: 1.25rem; box-shadow: 0 10px 40px rgba(0,0,0,0.1); animation: float 3s ease-in-out infinite; z-index: 2;}
.floating-card-1 { top: 10%; left: -10%; }
.floating-card-2 { bottom: 15%; right: -6%; animation-delay: 1.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.floating-card-icon { width: 40px; height: 40px; background: var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.25rem; margin-bottom: 0.5rem; }
.floating-card strong { display: block; font-size: 0.9rem; color: var(--dark); }
.floating-card span { font-size: 0.8rem; color: var(--gray-500); }

.services { padding: 6rem 2rem; background: var(--white); }
.service-icon i{
  color:#fff;
}
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.section-label { display: inline-block; color: var(--accent); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.section-title { font-size: 2.5rem; font-weight: 800; color: var(--dark); margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; color: var(--gray-500); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 1000px; margin: 0 auto; }
.service-card { background: var(--gray-100); border-radius: 20px; padding: 2rem; transition: all 0.3s ease; border: 2px solid transparent; }
.service-card:hover { background: var(--white); border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 20px 40px rgba(14,165,233,0.1); }
.service-icon { width: 60px; height: 60px; background: var(--primary); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; margin-bottom: 1.5rem; transition: all 0.3s; }
.service-card:hover .service-icon { background: var(--accent); }
.service-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--dark); margin-bottom: 0.75rem; }
.service-card p { color: var(--gray-500); font-size: 0.95rem; line-height: 1.7; }

.target { padding: 6rem 2rem; background: var(--dark); color: white; }
.target-icon i{
  color:#fff;
}
.target-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.target-card { text-align: center; padding: 2rem; background: rgba(255,255,255,0.05); border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s; }
.target-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); }
.target-icon { width: 80px; height: 80px; margin: 0 auto 1.5rem; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.target-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.target-card p { font-size: 0.9rem; color: var(--gray-300); }

.features { padding: 6rem 2rem; background: var(--gray-100); }
.feature-icon i{
  color:#fff;
}
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-item { background: var(--white); border-radius: 16px; padding: 1.5rem; display: flex; align-items: flex-start; gap: 1rem; transition: all 0.3s; }
.feature-item:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); transform: translateY(-3px); }
.feature-icon { width: 50px; height: 50px; background: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.feature-item h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.feature-item p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.6; }

.auth { padding: 6rem 2rem; background: var(--white); }
.auth-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.auth-text h2 { font-size: 2.5rem; font-weight: 800; color: var(--dark); margin-bottom: 1.5rem; }
.auth-text p { color: var(--gray-500); font-size: 1.1rem; margin-bottom: 2rem; }
.auth-list { list-style: none; }
.auth-list li { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; padding: 1rem; background: var(--gray-100); border-radius: 12px; }
.auth-check { width: 28px; height: 28px; background: var(--success); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; font-size: 0.9rem; }
.auth-list li div strong { display: block; color: var(--dark); font-weight: 600; margin-bottom: 0.25rem; }
.auth-list li div span { font-size: 0.9rem; color: var(--gray-500); }
.auth-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.auth-card { background: var(--gray-100); border-radius: 20px; padding: 2rem; text-align: center; }
.auth-card:first-child { grid-column: span 2; background: var(--primary); color: white; }
.auth-card-number { font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: 0.5rem; }
.auth-card:first-child .auth-card-number { color: var(--accent-light); }
.auth-card-label { font-size: 1rem; opacity: 0.9; }
.auth-card-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.auth-card-icon i { color: var(--primary); }

.cta-section { padding: 6rem 2rem; background: var(--gray-100); }
.cta-box { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); border-radius: 32px; padding: 4rem; text-align: center; color: white; position: relative; overflow: hidden; }
.cta-box::before { content: ''; position: absolute; top: -50%; right: -20%; width: 60%; height: 150%; background: radial-gradient(ellipse, rgba(255,255,255,0.1) 0%, transparent 70%); pointer-events: none; }
.cta-box h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; position: relative; z-index: 1; }
.cta-box p { font-size: 1.2rem; opacity: 0.9; margin-bottom: 2rem; position: relative; z-index: 1; }
.cta-contacts { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-contact-item { display: flex; align-items: center; gap: 1rem; }
.cta-contact-icon { width: 50px; height: 50px; background: rgba(255,255,255,0.15); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.cta-contact-item div { text-align: left; }
.cta-contact-item div strong { display: block; font-size: 0.85rem; opacity: 0.7; }
.cta-contact-item div span { font-size: 1.1rem; font-weight: 600; }
.cta-contact-item a { color: white; text-decoration: none; }
.cta-contact-item a:hover { text-decoration: underline; }

footer { background: var(--dark); color: white; padding: 3rem 2rem 2rem; }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--gray-300); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; color: var(--gray-500); font-size: 0.85rem; flex-wrap: wrap; gap: 1rem; }

/* Footer (home_2 style) */
footer .logo-text strong { color: var(--white); }
footer .logo-text span { color: var(--gray-300); }

.footer-col { flex: 1 1 280px; min-width: 260px; }
.footer-col h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--white); }
.footer-col p, .footer-col li { color: var(--gray-300); font-size: 0.9rem; line-height: 1.7; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 0.35rem; }

.footer-about-text { margin-top: 1rem; }
.footer-hours-secondary { margin-top: 1rem; }

.footer-badges { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.footer-badge { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); padding: 0.4rem 0.75rem; border-radius: 999px; font-size: 0.8rem; color: var(--gray-300); }

.footer-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.9rem; }
.footer-contact-icon { width: 36px; height: 36px; background: rgba(255,255,255,0.08); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.footer-contact-icon i { color: #fff; }

.footer-link { color: var(--gray-300); text-decoration: none; }
.footer-link:hover { color: var(--accent); text-decoration: underline; }

.footer-links-stack { margin-top: 1rem; flex-wrap: wrap; gap: 1.25rem; }

.footer-image-container { margin-top: 1rem; }
.footer-badge-image { max-width: 140px; opacity: 0.95; height: auto; }

.mobile-menu { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-menu span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; }

/* ===== CONTATTI (usa classi home_2) ===== */

.contact-alert{
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: .75rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
}
.contact-alert-success{
    border-color: rgba(16,185,129,.22);
    background: rgba(16,185,129,.10);
}
.contact-alert i{
    color: #10b981;
    font-size: 1.1rem;
}

.contact-list{
    margin-top: 1.25rem;
    display: grid;
    gap: 1rem;
}
.contact-item{
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}
.contact-item-icon{
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 58, 95, 0.08);
    color: var(--primary);
    flex: 0 0 40px;
}
.contact-item-body strong{
    display: block;
    font-weight: 700;
    margin-bottom: 0.15rem;
}
.contact-item-body span{
    display: block;
    color: var(--gray-600);
    line-height: 1.4;
}
.contact-link{
    display: inline-block;
    margin-top: .25rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.contact-link:hover{ text-decoration: underline; }

.contact-badges{
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.pill{
    display: inline-flex;
    align-items: center;
    padding: .35rem .7rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(30,58,95,.08);
    border: 1px solid rgba(30,58,95,.12);
}

/* Form coerente con le card di home_2 */
.contact-form{ margin-top: 1.25rem; }
.form-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.form-field{ display: grid; gap: .35rem; }
.form-field--full{ grid-column: 1 / -1; }

.form-field label{
    font-weight: 600;
    color: var(--gray-700);
    font-size: .95rem;
}

.form-field input,
.form-field select,
.form-field textarea{
    width: 100%;
    border: 1px solid rgba(15,23,42,0.12);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    outline: none;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{
    border-color: rgba(14,165,233,.55);
    box-shadow: 0 0 0 4px rgba(14,165,233,.12);
}

.field-error{
    color: #ef4444;
    font-size: .9rem;
    font-weight: 600;
}

.privacy-row{
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    color: var(--gray-600);
}
.privacy-row input{ margin-top: .25rem; }
.privacy-row a{
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.privacy-row a:hover{ text-decoration: underline; }

/* Map card in stile auth-visual */
/* ===== MAPPA STANDARD override authvisual===== */
.fill{
  order: initial;                 /* = 0 */
  grid-template-columns: initial; /* = none */
}
.map-card{
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(15,23,42,0.08);
    box-shadow: 0 8px 30px rgba(15,23,42,0.06);
    background: #fff;
}
.map-container{
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
}
.map-container iframe{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.map-overlay{
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(6px);
    transition: opacity .2s ease;
}
.map-overlay.is-hidden{
    opacity: 0;
    pointer-events: none;
}
.map-overlay-inner{
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .75rem 1rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    color: var(--primary);
    font-weight: 600;
}
/* ===== MAPPA XL ===== */
.map-card--xl{
    width: 100%;
    margin-top: 1.25rem;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 12px 45px rgba(0,0,0,0.20);
}

.map-container--xl{
    aspect-ratio: 16/7;
    min-height: 520px;
}

@media (max-width: 900px){
    .map-container--xl{
        aspect-ratio: 16/10;
        min-height: 420px;
    }
}

.map-meta-grid{
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 900px){
    .map-meta-grid{ grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 900px){
    .form-grid{ grid-template-columns: 1fr; }
}


@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.75rem; }
    .hero-subtitle { margin: 0 auto 2rem; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { display: none; }
    .services-grid { grid-template-columns: 1fr; }
    .target-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr; }
    .auth-content { grid-template-columns: 1fr; }
    .auth-visual { order: -1; }
    .fill {order: initial; grid-template-columns: initial;}
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 768px) {
    nav { display: none; }
    .mobile-menu { display: block; }
    .hero { padding: 6rem 1.5rem 3rem; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .stat { text-align: center; }
    .section-title { font-size: 1.75rem; }
    .target-grid { grid-template-columns: 1fr; }
    .auth-visual { grid-template-columns: 1fr; }
    .fill { order: initial; grid-template-columns: initial; }
    .auth-card:first-child { grid-column: span 1; }
    .cta-box { padding: 2rem; }
    .cta-box h2 { font-size: 1.75rem; }
    .cta-contacts { flex-direction: column; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}