/* ===== Reset & Base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #1a2e5a;
    --primary-dark: #111e3d;
    --primary-light: #2a4a8a;
    --secondary: #c9a227;
    --accent: #c9a227;
    --pink: #e8c46a;
    --green: #2a7a4e;
    --amber: #c9a227;
    --text-dark: #0d1b35;
    --text: #2c3e6b;
    --text-light: #5a6a8a;
    --bg: #ffffff;
    --bg-soft: #f5f7fb;
    --bg-dark: #0d1b35;
    --border: #dce3f0;
    --grad-primary: linear-gradient(135deg, #1a2e5a 0%, #2a4a8a 100%);
    --grad-accent: linear-gradient(135deg, #c9a227 0%, #e8c46a 100%);
    --grad-hero: linear-gradient(135deg, #1a2e5a 0%, #0d1b35 60%, #1a3a6a 100%);
    --shadow-sm: 0 1px 3px rgba(13,27,53,0.08);
    --shadow: 0 8px 30px rgba(13,27,53,0.10);
    --shadow-lg: 0 20px 50px rgba(13,27,53,0.15);
    --shadow-glow: 0 10px 40px rgba(26,46,90,0.30);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    max-width: 100vw;
}

img { max-width: 100%; height: auto; }
*, *::before, *::after { max-width: 100%; }

h1, h2, h3, h4 { font-family: 'Sora', sans-serif; color: var(--text-dark); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ===== Animated background blobs ===== */
.bg-decoration {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: float 20s ease-in-out infinite;
}
.blob-1 { width: 500px; height: 500px; background: var(--primary-light); top: -150px; right: -100px; }
.blob-2 { width: 400px; height: 400px; background: var(--accent); bottom: 10%; left: -100px; animation-delay: -7s; }
.blob-3 { width: 350px; height: 350px; background: var(--secondary); top: 40%; right: 20%; animation-delay: -14s; }

@keyframes float {
    0%, 100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(40px,-40px) scale(1.1); }
    66% { transform: translate(-30px,30px) scale(0.95); }
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
}
.header.scrolled {
    padding: 10px 0;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}
.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.logo { height: 80px; width: auto; transition: var(--transition); }
.header.scrolled .logo { height: 64px; }

.nav-menu { display: flex; list-style: none; gap: 2rem; }
.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}
.nav-link::after {
    content: '';
    position: absolute; bottom: -6px; left: 0;
    width: 0; height: 2px;
    background: var(--grad-primary);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 26px; height: 3px; background: var(--text-dark); border-radius: 3px; transition: var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border: none;
    border-radius: 50px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 45px rgba(26,46,90,0.4); }
.btn-glass {
    background: rgba(255,255,255,0.15);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-glass:hover { background: rgba(255,255,255,0.25); transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-large { padding: 16px 34px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ===== Hero ===== */
.hero {
    padding: 160px 0 100px;
    position: relative;
}
.hero-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(26,46,90,0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s both;
}
.gradient-text {
    background: var(--grad-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 36px;
    max-width: 540px;
    animation: fadeInUp 0.6s ease 0.2s both;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; animation: fadeInUp 0.6s ease 0.3s both; }

.hero-stats { display: flex; align-items: center; gap: 28px; animation: fadeInUp 0.6s ease 0.4s both; }
.stat { display: flex; flex-direction: column; }
.stat-number, .stat-suffix {
    font-family: 'Sora', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    display: inline;
}
.stat-suffix { color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--text-light); font-weight: 600; }
.stat-divider { width: 1px; height: 44px; background: var(--border); }

/* Hero visual */
.hero-visual { position: relative; animation: fadeInRight 0.8s ease 0.3s both; }
.hero-image-wrap {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.hero-image-wrap::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(26,46,90,0.20));
}
.hero-image-wrap img { width: 100%; height: 540px; object-fit: cover; object-position: center 5%; display: block; }

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.6);
    animation: floatCard 4s ease-in-out infinite;
}
.floating-card-1 { top: 180px; left: -30px; }
.floating-card-2 { bottom: 100px; right: -30px; animation-delay: -1.5s; }
.floating-card-3 { bottom: 20px; left: 20px; animation-delay: -3s; }
@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.fc-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad-primary);
    color: #fff; font-size: 1.2rem;
}
.fc-icon-green { background: linear-gradient(135deg,#c9a227,#a07d1a); }
.fc-icon-purple { background: var(--grad-accent); }
.fc-text { display: flex; flex-direction: column; }
.fc-text strong { font-size: 0.9rem; color: var(--text-dark); }
.fc-text span { font-size: 0.78rem; color: var(--text-light); }

/* ===== Trust ===== */
.trust { padding: 40px 0 60px; }
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    padding: 32px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.trust-item { display: flex; align-items: center; gap: 16px; }
.trust-icon {
    width: 54px; height: 54px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(26,46,90,0.1);
    color: var(--primary);
    font-size: 1.4rem;
}
.trust-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.trust-content p { font-size: 0.85rem; color: var(--text-light); }

/* ===== Section header ===== */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-tag {
    display: inline-block;
    padding: 7px 18px;
    background: rgba(26,46,90,0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.section-tag-light { background: rgba(255,255,255,0.2); color: #fff; }
.section-header h2 { font-size: clamp(2rem,4vw,2.8rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.section-header p { font-size: 1.1rem; color: var(--text-light); }

/* ===== Services ===== */
.services { padding: 90px 0; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.service-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.service-image { position: relative; height: 280px; overflow: hidden; }
.service-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 5%; transition: var(--transition); }
.service-card:hover .service-image img { transform: scale(1.08); }
.service-badge {
    position: absolute; top: 16px; right: 16px;
    width: 46px; height: 46px;
    border-radius: 12px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}
.service-content { padding: 28px; }
.service-content h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.service-content > p { color: var(--text-light); margin-bottom: 18px; font-size: 0.95rem; }
.service-features { list-style: none; margin-bottom: 22px; }
.service-features li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text); margin-bottom: 8px; }
.service-features i { color: var(--green); font-size: 1rem; }
.service-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--primary); font-weight: 700; text-decoration: none;
    font-size: 0.95rem; transition: var(--transition);
}
.service-link:hover { gap: 14px; }

/* ===== Esami Strumentali ===== */
.exams {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 40%, #0e7490 100%);
    position: relative;
    overflow: hidden;
}
.exams::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 40%),
                      radial-gradient(circle at 80% 70%, rgba(255,255,255,0.06) 0%, transparent 40%);
}
.exams .section-header h2 { color: #fff; }
.exams .section-header p { color: rgba(255,255,255,0.8); }
.exams-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; position: relative; }
.exam-card {
    padding: 32px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius);
    transition: var(--transition);
}
.exam-card:hover { transform: translateY(-8px); background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.35); }
.exam-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; color: #fff;
    margin-bottom: 20px;
}
.exam-card h3 { color: #fff; font-size: 1.25rem; margin-bottom: 10px; }
.exam-card p { color: rgba(255,255,255,0.78); font-size: 0.92rem; margin-bottom: 16px; }
.exam-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}
.exams-cta { text-align: center; margin-top: 48px; position: relative; }
.exams-cta .btn-primary { background: #fff; color: var(--primary); }
.exams-cta .btn-primary:hover { background: #f1f5f9; }

/* ===== Figure Assistenziali ===== */
.figures { padding: 100px 0; }
.figures-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.figure-card {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: default;
}
.figure-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.figure-img { height: 380px; overflow: hidden; }
.figure-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 5%; transition: var(--transition); }
.figure-card:hover .figure-img img { transform: scale(1.08); }
.figure-info {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 60px 20px 22px;
    background: linear-gradient(180deg, transparent 0%, rgba(10,18,40,0.75) 40%, rgba(10,18,40,0.97) 100%);
    color: #fff;
}
.figure-info h3 { color: #fff; font-size: 1.25rem; margin-bottom: 6px; text-shadow: 0 2px 8px rgba(0,0,0,0.8); }
.figure-info p { color: rgba(255,255,255,0.92); font-size: 0.85rem; text-shadow: 0 1px 6px rgba(0,0,0,0.7); }

/* ===== Careers ===== */
.careers { padding: 100px 0; }
.careers-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: linear-gradient(135deg, #1a2e5a 0%, #0d1b35 60%, #1a3a6a 100%);
    border-radius: 32px;
    padding: 60px;
    overflow: hidden;
    position: relative;
}
.careers-text .section-tag { margin-bottom: 16px; }
.careers-text h2 { color: #fff; font-size: 2.4rem; margin-bottom: 18px; }
.careers-text > p { color: rgba(255,255,255,0.88); margin-bottom: 32px; }
.careers-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 36px; }
.benefit-item { display: flex; gap: 14px; align-items: flex-start; }
.benefit-item i {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.1rem;
}
.benefit-item h4 { color: #fff; font-size: 1rem; margin-bottom: 3px; }
.benefit-item p { color: rgba(255,255,255,0.78); font-size: 0.85rem; }
.careers-visual { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.careers-visual img { width: 100%; height: 480px; object-fit: cover; display: block; }

/* ===== Contact ===== */
.contact { padding: 100px 0; background: var(--bg-soft); }
.contact-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-item {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 22px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.contact-item:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.contact-icon {
    width: 50px; height: 50px; flex-shrink: 0;
    border-radius: 12px;
    background: var(--grad-primary);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.2rem;
}
.contact-details h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-details p { color: var(--text); font-weight: 600; font-size: 0.95rem; }
.contact-details span { color: var(--text-light); font-size: 0.82rem; }

.contact-map {
    grid-column: 1 / -1;
    margin: 10px 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.contact-map iframe {
    display: block;
    width: 100%;
    height: 220px;
    border: 0;
}
.contact-form { background: #fff; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.form-group { position: relative; margin-bottom: 22px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    transition: var(--transition);
}
.form-group select { color: var(--text-light); cursor: pointer; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26,46,90,0.1);
}
.form-group label {
    position: absolute; top: 16px; left: 16px;
    color: var(--text-light); pointer-events: none;
    transition: var(--transition);
    background: #fff; padding: 0 6px;
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px; font-size: 0.8rem; color: var(--primary); font-weight: 600;
}
.form-group textarea { resize: vertical; min-height: 110px; }

/* ===== CTA ===== */
.cta { padding: 80px 0 100px; }
.cta-card {
    text-align: center;
    padding: 70px 40px;
    background: var(--grad-hero);
    border-radius: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.cta-card::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15), transparent 50%);
}
.cta-card h2 { color: #fff; font-size: 2.5rem; margin-bottom: 14px; position: relative; }
.cta-card p { color: rgba(255,255,255,0.9); font-size: 1.15rem; margin-bottom: 34px; position: relative; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ===== Footer ===== */
.footer { background: var(--bg-dark); color: #cbd5e1; padding: 70px 0 30px; }
.footer-content { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; margin-bottom: 18px; }
.footer-logo-img {
    height: 70px; width: auto;
    background: #fff;
    padding: 10px 16px;
    border-radius: 14px;
}
.footer-section > p { color: #94a3b8; margin-bottom: 20px; font-size: 0.92rem; }
.footer-section h4 { color: #fff; margin-bottom: 18px; font-size: 1.05rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 12px; font-size: 0.9rem; }
.footer-section ul li a { color: #94a3b8; text-decoration: none; transition: var(--transition); }
.footer-section ul li a:hover { color: var(--primary-light); }
.footer-section ul li i { margin-right: 8px; color: var(--primary-light); width: 16px; }
.footer-section ul li strong { color: #fff; font-weight: 700; }
.footer-section ul li { color: #e2e8f0; }
.social-links { display: flex; gap: 12px; }
.social-links a {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    color: #cbd5e1; text-decoration: none;
    transition: var(--transition);
}
.social-links a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 28px; text-align: center; color: #64748b; }
.footer-bottom p { margin-bottom: 6px; font-size: 0.85rem; }

/* ===== Galleria ===== */
.gallery-section { padding: 100px 0; background: var(--bg-soft); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}
.gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 420px;
}
.gallery-item.gallery-wide {
    grid-column: span 2;
    height: 420px;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 8%;
    display: block;
    transition: transform 0.5s ease;
}
.gallery-item:hover { box-shadow: var(--shadow-lg); }
.gallery-item:hover img { transform: scale(1.04); }

/* ===== Come Funziona ===== */
.howit { padding: 100px 0; background: var(--bg-soft); }
.howit-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.howit-step {
    position: relative;
    background: #fff;
    padding: 40px 26px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}
.howit-step:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.howit-num {
    position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff; font-family: 'Sora',sans-serif; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-glow);
}
.howit-icon {
    width: 70px; height: 70px; margin: 8px auto 18px;
    border-radius: 18px;
    background: rgba(26,46,90,0.1);
    color: var(--primary); font-size: 1.8rem;
    display: flex; align-items: center; justify-content: center;
}
.howit-step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.howit-step p { color: var(--text-light); font-size: 0.9rem; }

/* ===== Recensioni ===== */
.reviews { padding: 100px 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.review-card {
    background: #fff;
    padding: 34px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.review-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.review-stars { color: var(--amber); font-size: 1rem; margin-bottom: 16px; display: flex; gap: 3px; }
.review-card > p { color: var(--text); font-style: italic; margin-bottom: 22px; line-height: 1.7; }
.review-author { display: flex; align-items: center; gap: 14px; }
.review-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--grad-accent);
    color: #fff; font-family: 'Sora',sans-serif; font-weight: 700; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center;
}
.review-author strong { display: block; color: var(--text-dark); font-size: 0.95rem; }
.review-author span { color: var(--text-light); font-size: 0.82rem; }

/* ===== WhatsApp float ===== */
.whatsapp-float {
    position: fixed; bottom: 26px; right: 26px;
    width: 60px; height: 60px;
    background: #25d366;
    color: #fff; font-size: 1.9rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(37,211,102,0.45);
    z-index: 998;
    transition: var(--transition);
    animation: pulse-wa 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse-wa {
    0% { box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 0 0 16px rgba(37,211,102,0); }
    100% { box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== Scroll to top ===== */
.scroll-top {
    position: fixed; bottom: 26px; left: 26px;
    width: 50px; height: 50px;
    background: var(--grad-primary);
    color: #fff; font-size: 1.1rem;
    border: none; border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: var(--transition);
    z-index: 998;
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-4px); }

/* ===== Cookie banner ===== */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(15,23,42,0.97);
    backdrop-filter: blur(10px);
    color: #e2e8f0;
    padding: 18px 24px;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-content {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; gap: 18px;
}
.cookie-content > i { font-size: 1.8rem; color: var(--amber); flex-shrink: 0; }
.cookie-content p { font-size: 0.88rem; flex: 1; }
.cookie-content a { color: var(--primary-light); }
.cookie-content .btn { flex-shrink: 0; padding: 10px 24px; }

/* ===== Animations ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.loading { display: inline-block; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: #fff; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.success-message, .error-message { padding: 14px; border-radius: 12px; margin-bottom: 18px; text-align: center; font-weight: 600; animation: fadeInUp 0.4s ease; }
.success-message { background: rgba(16,185,129,0.12); color: var(--green); }
.error-message { background: rgba(239,68,68,0.12); color: #dc2626; }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; gap: 50px; }
    .hero-visual { max-width: 520px; margin: 0 auto; }
    .services-grid, .exams-grid { grid-template-columns: repeat(2,1fr); }
    .figures-grid { grid-template-columns: repeat(2,1fr); }
    .howit-grid { grid-template-columns: repeat(2,1fr); gap: 32px; }
    .reviews-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .careers-inner { grid-template-columns: 1fr; padding: 44px; }
    .careers-visual { order: -1; }
    .contact-content { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    /* Navbar */
    .nav-menu {
        position: fixed; top: 0; right: -100%;
        width: 80%; max-width: 320px; height: 100vh;
        flex-direction: column;
        background: #fff;
        padding: 100px 32px 32px;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
        z-index: 999;
        overflow-y: auto;
    }
    .nav-menu.active { right: 0; }
    .hamburger { display: flex; z-index: 1001; }
    .nav-cta { display: none; }

    /* Hero */
    .hero { padding: 120px 0 60px; }
    .hero-title { font-size: 2.2rem; line-height: 1.2; }
    .hero-subtitle { font-size: 1rem; }
    .hero-cta { flex-direction: column; gap: 12px; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; width: 100%; overflow: hidden; }
    .stat-divider { display: none; }
    .stat { text-align: center; padding: 0 4px; overflow: hidden; }
    .stat-number { font-size: 1.4rem; }
    .stat-suffix { font-size: 1.4rem; }
    .stat-label { font-size: 0.62rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
    .floating-card-1, .floating-card-2, .floating-card-3 { display: none; }
    .hero-image-wrap img { height: 300px; object-fit: cover; }
    .blob { display: none; }

    /* Trust */
    .trust-grid { grid-template-columns: 1fr 1fr; gap: 16px; padding: 20px 16px; }
    .trust-item { padding: 18px 14px; }
    .trust-icon { width: 44px; height: 44px; font-size: 1.1rem; }

    /* Sections */
    .section-header h2 { font-size: 1.8rem; }
    .services-grid, .exams-grid { grid-template-columns: 1fr; }
    .figures-grid { grid-template-columns: 1fr 1fr; }
    .howit-grid { grid-template-columns: 1fr; gap: 32px; }
    .reviews-grid { grid-template-columns: 1fr; }
    .exams-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-item.gallery-wide { grid-column: span 2; aspect-ratio: 16/9; }

    /* Careers */
    .careers-inner { padding: 28px 16px; overflow: hidden; }
    .careers-benefits { grid-template-columns: 1fr; }
    .careers-visual { display: none; }
    .careers-text { width: 100%; max-width: 100%; overflow: hidden; }
    .careers-text .btn { width: 100%; text-align: center; justify-content: center; box-sizing: border-box; }

    /* CTA */
    .cta-card { padding: 44px 20px; }
    .cta-card h2 { font-size: 1.7rem; }
    .cta-buttons { flex-direction: column; align-items: center; gap: 12px; }
    .cta-buttons .btn { width: 100%; max-width: 320px; justify-content: center; }

    /* Footer */
    .footer-content { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-bottom p { font-size: 0.78rem; }

    /* Cookie */
    .cookie-content { flex-direction: column; text-align: center; gap: 12px; }

    /* Float buttons */
    .whatsapp-float { width: 54px; height: 54px; font-size: 1.7rem; bottom: 20px; right: 16px; }
    .scroll-top { width: 44px; height: 44px; bottom: 20px; left: 16px; }
}

@media (max-width: 480px) {
    .container, .nav-container, .hero-container { padding: 0 14px; }

    /* Hero */
    .hero-title { font-size: 1.9rem; }
    .hero-badge { font-size: 0.78rem; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); }
    .stat-number { font-size: 1.2rem; }
    .stat-suffix { font-size: 1.2rem; }
    .stat-label { font-size: 0.6rem; }
    .hero-image-wrap { display: none; }

    /* Trust */
    .trust-grid { grid-template-columns: 1fr; }
    .trust-item { flex-direction: row; text-align: left; gap: 14px; }

    /* Sections */
    .section-header h2 { font-size: 1.6rem; }
    .section-header p { font-size: 0.9rem; }
    .figures-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .exams-grid { grid-template-columns: 1fr; }
    .service-card, .exam-card, .review-card { border-radius: 16px; }
    .figure-card { display: block; }
    .figure-img { height: 200px; width: 100%; }
    .figure-info { padding: 18px 14px 14px; }
    .figure-info h3 { font-size: 1.1rem; }
    .figure-info p { font-size: 0.85rem; color: rgba(255,255,255,0.9); }
    .howit-step { padding: 36px 20px 22px; }

    /* Contact */
    .contact-item { flex-direction: row; gap: 14px; overflow: hidden; }
    .contact-icon { width: 44px; height: 44px; font-size: 1.1rem; flex-shrink: 0; }
    .contact-details { overflow: hidden; min-width: 0; }
    .contact-details h4 { font-size: 0.95rem; }
    .contact-details p, .contact-details span { font-size: 0.82rem; word-break: break-word; }

    /* Footer */
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-logo, .social-links { justify-content: center; }
    .footer-section ul li { font-size: 0.82rem; }

    /* Form */
    .contact-section .container { padding: 0 14px; }
    .contact-form { padding: 20px 14px; width: 100%; box-sizing: border-box; overflow: hidden; }
    .contact-form form { width: 100%; box-sizing: border-box; }
    .form-group { width: 100%; box-sizing: border-box; }
    .form-group input, .form-group textarea, .form-group select { padding: 13px 10px; font-size: 0.9rem; width: 100%; box-sizing: border-box; }
    .btn-full { width: 100% !important; box-sizing: border-box !important; padding: 14px 8px; font-size: 0.85rem; white-space: normal; text-align: center; display: flex; justify-content: center; }
    .contact-form p { font-size: 0.78rem; padding: 0 4px; word-break: break-word; }
    .careers { padding: 60px 0; }
    .careers-inner { border-radius: 16px; }

    /* Misc */
    .cta-card h2 { font-size: 1.5rem; }
    .review-card { padding: 22px; }
    .exam-card { padding: 22px; }
}
