/* ============================================================
   IVALAB — style.css
   ============================================================ */

/* --- Reset ------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- Variables --------------------------------------------- */
:root {
    --blue:        #1B3A6B;
    --blue-dark:   #122a52;
    --blue-mid:    #254e8f;
    --yellow:      #B8860B;
    --yellow-dark: #9a6f09;
    --grey-bg:     #F8F9FA;
    --grey-border: #E4E7EC;
    --grey-text:   #6B7280;
    --white:       #FFFFFF;
    --black:       #0D1B2A;

    --font: 'DM Sans', sans-serif;
    --max-w: 1160px;
    --r: 14px;
    --r-lg: 22px;

    --shadow-sm: 0 2px 8px rgba(27,58,107,0.08);
    --shadow-md: 0 8px 28px rgba(27,58,107,0.13);
    --shadow-lg: 0 20px 56px rgba(27,58,107,0.18);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    color: var(--black);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

/* --- Container --------------------------------------------- */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
}

/* --- Utility: Reveal on scroll ----------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    padding: 20px 0;
    background: var(--white);
    box-shadow: 0 1px 0 var(--grey-border), var(--shadow-sm);
    transition: padding 0.35s;
}

.header.scrolled {
    padding: 13px 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.logo {
    font-family: 'Unbounded', 'Arial Black', Impact, sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--yellow);
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.logo span { color: #002060; }

/* Nav links */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    color: var(--blue);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s, opacity 0.2s;
    position: relative;
}
.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta).active {
    color: var(--yellow-dark);
}

/* Nav CTA button */
.nav-cta {
    background: var(--yellow);
    color: var(--blue) !important;
    padding: 9px 22px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
}
.nav-cta:hover {
    background: var(--yellow-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245, 196, 0, 0.35);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 201;
    position: relative;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--blue);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s;
}
.hamburger.open span { background: var(--white); }

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.22s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--yellow);
    color: var(--blue);
}
.btn-primary:hover {
    background: var(--yellow-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 196, 0, 0.38);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
}
.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.07);
}
.btn-arrow { transition: transform 0.2s; }
.btn-ghost:hover .btn-arrow { transform: translateX(4px); }

.btn-outline {
    background: transparent;
    color: var(--blue);
    border: 1.5px solid var(--blue);
    width: 100%;
    justify-content: center;
}
.btn-outline:hover {
    background: var(--blue);
    color: var(--white);
}

.btn-full {
    width: 100%;
    justify-content: center;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: var(--blue);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 130px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Ambient glow */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 900px 700px at 65% 40%, rgba(245,196,0,0.055) 0%, transparent 65%),
        radial-gradient(ellipse 500px 500px at 5% 90%, rgba(255,255,255,0.025) 0%, transparent 60%);
    pointer-events: none;
}

/* Subtle grid texture */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.5) 20%, rgba(0,0,0,0.5) 80%, transparent);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 60px;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 196, 0, 0.12);
    border: 1px solid rgba(245, 196, 0, 0.25);
    color: var(--yellow);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
    animation: fadeUp 0.6s var(--ease) 0.05s both;
}
.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--yellow);
    border-radius: 50%;
}

/* Hero title */
.hero-title {
    font-size: clamp(2.1rem, 3.8vw, 3.4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.13;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
    animation: fadeUp 0.65s var(--ease) 0.18s both;
}
.hero-title em {
    font-style: normal;
    color: var(--yellow);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.75;
    max-width: 500px;
    margin-bottom: 40px;
    font-weight: 400;
    animation: fadeUp 0.65s var(--ease) 0.32s both;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 56px;
    animation: fadeUp 0.65s var(--ease) 0.44s both;
}

/* Hero stats strip */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeUp 0.65s var(--ease) 0.56s both;
}

.stat-number {
    display: block;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--yellow);
    letter-spacing: -0.04em;
    line-height: 1;
}
.stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 4px;
    font-weight: 400;
}
.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.13);
    flex-shrink: 0;
}

/* ---- Hero Visual (geometric) ------------------------------ */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeUp 0.8s var(--ease) 0.25s both;
}

.geo-composition {
    position: relative;
    width: 400px;
    height: 440px;
}

/* Big translucent background block */
.geo-bg-block {
    position: absolute;
    bottom: 0; right: 0;
    width: 280px;
    height: 320px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* Yellow accent shape */
.geo-accent-block {
    position: absolute;
    top: 10px; left: 10px;
    width: 160px;
    height: 160px;
    background: var(--yellow);
    opacity: 0.1;
    border-radius: 28px;
    transform: rotate(-10deg);
}

/* Floating dots */
.geo-dot {
    position: absolute;
    border-radius: 50%;
    background: var(--yellow);
}
.geo-dot--1 { width: 12px; height: 12px; top: 8px;  right: 68px; opacity: 0.8; }
.geo-dot--2 { width:  8px; height:  8px; bottom: 90px; left: 24px;  opacity: 0.4; }
.geo-dot--3 { width:  6px; height:  6px; top: 190px; right: 8px;  opacity: 0.55; }

/* Floating cards */
.geo-card {
    position: absolute;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 20px 22px;
}

/* Document card */
.geo-card--doc {
    left: 0; top: 56px;
    width: 210px;
    animation: float1 4.5s ease-in-out infinite;
}
.geo-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.geo-card-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--blue);
    background: rgba(27,58,107,0.08);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.02em;
}
.geo-card-year {
    font-size: 0.72rem;
    color: var(--grey-text);
    font-weight: 500;
}
.geo-card-lines { display: flex; flex-direction: column; gap: 9px; }
.geo-line { height: 7px; background: var(--grey-border); border-radius: 4px; }
.geo-line.short   { width: 72%; }
.geo-line.shorter { width: 48%; }
.geo-card-status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #16a34a;
}
.geo-status-dot {
    width: 7px; height: 7px;
    background: #16a34a;
    border-radius: 50%;
}

/* Tax amount card */
.geo-card--tax {
    right: 8px; bottom: 56px;
    width: 196px;
    animation: float2 5.5s ease-in-out infinite;
}
.geo-tax-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--grey-text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.geo-tax-amount {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: -0.04em;
    line-height: 1;
}
.geo-tax-amount span { font-size: 1rem; }
.geo-tax-bar {
    height: 5px;
    background: var(--grey-border);
    border-radius: 3px;
    margin: 14px 0 8px;
    overflow: hidden;
}
.geo-tax-fill {
    height: 100%;
    width: 68%;
    background: linear-gradient(90deg, var(--blue), var(--yellow));
    border-radius: 3px;
}
.geo-tax-note {
    font-size: 0.68rem;
    color: var(--grey-text);
}

@keyframes float1 {
    0%, 100% { transform: translateY(0)   rotate(-1.5deg); }
    50%       { transform: translateY(-11px) rotate(-1.5deg); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0)   rotate(1.2deg); }
    50%       { transform: translateY(-9px)  rotate(1.2deg); }
}

/* Scroll indicator */
.hero-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 52px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    animation: pulseOpacity 2.5s ease-in-out infinite;
}
.scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
}
@keyframes pulseOpacity {
    0%, 100% { opacity: 0.45; }
    50%       { opacity: 1; }
}

/* Hero entrance keyframe */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   CHI SIAMO
   ============================================================ */
.chi-siamo {
    padding: 108px 0;
    background: var(--white);
}

.chi-siamo-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 80px;
    align-items: start;
}

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    background: rgba(27, 58, 107, 0.08);
    padding: 5px 12px;
    border-radius: 5px;
    margin-bottom: 20px;
}
.section-label--light {
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: clamp(1.65rem, 2.8vw, 2.4rem);
    font-weight: 700;
    color: var(--blue);
    line-height: 1.2;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
}
.section-title--light { color: var(--white); }

.chi-siamo-text {
    font-size: 1rem;
    color: var(--grey-text);
    line-height: 1.8;
    margin-bottom: 14px;
}

.link-arrow {
    display: inline-block;
    margin-top: 10px;
    color: var(--blue);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: letter-spacing 0.2s;
}
.link-arrow:hover { letter-spacing: 0.01em; }

/* Highlight cards */
.chi-siamo-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.highlight-card {
    background: var(--grey-bg);
    border-radius: var(--r);
    padding: 28px 24px;
    border: 1px solid var(--grey-border);
}
.highlight-card--blue {
    background: var(--blue);
    border-color: var(--blue);
}
.highlight-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 8px;
}
.highlight-card--blue .highlight-number { color: var(--yellow); }
.highlight-text {
    font-size: 0.875rem;
    color: var(--grey-text);
    line-height: 1.5;
}
.highlight-card--blue .highlight-text { color: rgba(255, 255, 255, 0.6); }


/* ============================================================
   SERVIZI
   ============================================================ */
.servizi {
    padding: 108px 0;
    background: var(--grey-bg);
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 56px;
}

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--r-lg);
    padding: 40px 32px;
    border: 1px solid var(--grey-border);
    position: relative;
    overflow: hidden;
    transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease);
}

/* Animated top border */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.38s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }

.service-number {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--yellow);
    letter-spacing: 0.1em;
    background: rgba(245, 196, 0, 0.1);
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.service-icon {
    color: var(--blue);
    margin-bottom: 18px;
}
.service-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: -0.025em;
    margin-bottom: 12px;
}
.service-desc {
    font-size: 0.9rem;
    color: var(--grey-text);
    line-height: 1.75;
    margin-bottom: 24px;
}
.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.service-features li {
    font-size: 0.875rem;
    color: var(--black);
    padding-left: 20px;
    position: relative;
    line-height: 1.4;
}
.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 700;
    font-size: 0.78rem;
}


/* ============================================================
   PRICING
   ============================================================ */
.pricing {
    padding: 108px 0;
    background: var(--blue);
    position: relative;
    overflow: hidden;
}

.pricing::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 600px at 80% 10%, rgba(245,196,0,0.06), transparent),
        radial-gradient(ellipse 500px 400px at 10% 90%, rgba(255,255,255,0.03), transparent);
    pointer-events: none;
}

.section-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    max-width: 460px;
    margin-top: -4px;
    line-height: 1.6;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Pricing cards */
.pricing-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: var(--r-lg);
    padding: 44px 40px;
    transition: transform 0.3s var(--ease);
    position: relative;
}
.pricing-card:hover { transform: translateY(-5px); }

.pricing-card--featured {
    background: var(--white);
    border-color: var(--white);
}

.pricing-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.09);
    padding: 5px 13px;
    border-radius: 100px;
    margin-bottom: 20px;
}
.pricing-badge--featured {
    background: var(--blue);
    color: var(--yellow);
}

.pricing-name {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}
.pricing-card--featured .pricing-name { color: var(--blue); }

.pricing-for {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 28px;
    line-height: 1.5;
}
.pricing-card--featured .pricing-for { color: var(--grey-text); }

/* Price display */
.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.pricing-card--featured .pricing-price { border-bottom-color: var(--grey-border); }

.price-sym {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--yellow);
    line-height: 1;
    margin-top: 6px;
}
.pricing-card--featured .price-sym { color: var(--blue); }

.price-num {
    font-size: 3.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.05em;
    line-height: 1;
}
.pricing-card--featured .price-num { color: var(--blue); }

.price-per {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.38);
    font-weight: 400;
    margin-left: 2px;
}
.pricing-card--featured .price-per { color: var(--grey-text); }

/* Feature list */
.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 36px;
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.78);
}
.pricing-card--featured .pricing-features li { color: var(--black); }
.feat-no { color: rgba(255, 255, 255, 0.28) !important; }
.pricing-card--featured .feat-no { color: var(--grey-text) !important; opacity: 0.5; }

/* Feature icons */
.feat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 800;
    flex-shrink: 0;
    line-height: 1;
}
.feat-icon.yes {
    background: rgba(245, 196, 0, 0.14);
    color: var(--yellow);
}
.feat-icon.yes-blue {
    background: rgba(27, 58, 107, 0.1);
    color: var(--blue);
}
.feat-icon.no {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.22);
}

.pricing-note {
    text-align: center;
    margin-top: 44px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}
.pricing-note a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 500;
}
.pricing-note a:hover { text-decoration: underline; }


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--black);
    padding: 44px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px 32px;
}

.footer-logo span { color: var(--white); }

.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-nav a {
    color: rgba(255, 255, 255, 0.38);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--yellow); }

.footer-copy {
    width: 100%;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.22);
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}


/* ============================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        max-width: 680px;
    }
    .hero-visual { display: none; }

    .chi-siamo-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .chi-siamo-cards {
        flex-direction: row;
        gap: 16px;
    }
    .highlight-card { flex: 1; }

    .servizi-grid { grid-template-columns: 1fr 1fr; }

    .pricing-grid {
        max-width: 640px;
    }
}


/* ============================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    /* Nav mobile overlay */
    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: fixed;
        inset: 0;
        background: var(--blue);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 28px;
        z-index: 199;
        padding: 80px 28px 40px;
    }
    .nav-links.open { display: flex; }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { font-size: 1.25rem; color: var(--white) !important; }
    .nav-links a:hover { color: var(--yellow) !important; }
    .nav-cta {
        background: var(--yellow) !important;
        color: var(--blue) !important;
        display: block;
        padding: 14px 28px !important;
    }

    /* Hero */
    .hero { padding: 110px 0 60px; min-height: auto; }
    .hero-stats { flex-direction: column; align-items: flex-start; gap: 16px; }
    .stat-divider { width: 36px; height: 1px; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }

    /* Chi siamo */
    .chi-siamo-cards { flex-direction: column; }

    /* Servizi */
    .servizi-grid { grid-template-columns: 1fr; }

    /* Pricing */
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card { padding: 36px 28px; }

    /* Footer */
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-nav { gap: 16px 20px; }
}

/* ============================================================
   RESPONSIVE — SMALL (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .service-card { padding: 30px 24px; }
    .pricing-card { padding: 28px 22px; }
    .hero-title { font-size: 1.95rem; }
    .price-num { font-size: 2.8rem; }
}


/* ============================================================
   REGISTRAZIONE — 3-step form
   ============================================================ */

/* Page layout */
.reg-page {
    background: var(--grey-bg);
    min-height: calc(100vh - 70px);
    padding: 52px 0 96px;
}
.reg-container {
    max-width: 780px;
}

/* Page title */
.reg-header {
    text-align: center;
    margin-bottom: 44px;
}
.reg-title {
    font-size: clamp(1.65rem, 3vw, 2.1rem);
    font-weight: 700;
    color: var(--blue);
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}
.reg-subtitle {
    font-size: 0.95rem;
    color: var(--grey-text);
}

/* ── Progress indicator ── */
.reg-progress {
    margin-bottom: 32px;
}
.progress-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--grey-border);
    background: var(--white);
    color: var(--grey-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    transition: background 0.3s var(--ease), border-color 0.3s, color 0.3s;
    position: relative;
    flex-shrink: 0;
}

.step-check {
    display: none;
    width: 14px;
    height: 14px;
    position: absolute;
}

.step-item.active .step-circle {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(27,58,107,0.12);
}
.step-item.done .step-circle {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}
.step-item.done .step-num  { display: none; }
.step-item.done .step-check { display: block; color: var(--white); }

.step-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--grey-text);
    white-space: nowrap;
    transition: color 0.3s;
    text-align: center;
}
.step-item.active .step-label,
.step-item.done .step-label { color: var(--blue); }

.step-line {
    flex: 1;
    height: 2px;
    background: var(--grey-border);
    margin: 19px 10px 0; /* 19px = half of 40px circle, aligns vertically */
    min-width: 48px;
    transition: background 0.4s var(--ease);
}
.step-line.done { background: var(--blue); }

/* ── Form card ── */
.reg-card {
    background: var(--white);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--grey-border);
    overflow: hidden;
}

/* ── Form steps ── */
.form-step {
    display: none;
    padding: 44px 48px;
    animation: stepFadeIn 0.3s var(--ease) both;
}
.form-step.active { display: block; }

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.step-header { margin-bottom: 32px; }
.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: -0.025em;
    margin-bottom: 6px;
}
.step-desc {
    font-size: 0.88rem;
    color: var(--grey-text);
    line-height: 1.5;
}

/* ── Form grid ── */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}
.form-full { grid-column: 1 / -1; }

/* ── Form group ── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-label {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--black);
    line-height: 1.4;
}
.required { color: var(--yellow); font-weight: 700; }

.form-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--grey-border);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--black);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.form-input::placeholder { color: #c0c8d2; }
.form-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(27,58,107,0.1);
}
.form-input.is-error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.08);
}
.form-input::-webkit-calendar-picker-indicator {
    opacity: 0.45;
    cursor: pointer;
}
.cf-input { text-transform: uppercase; letter-spacing: 0.04em; }

.form-hint {
    font-size: 0.76rem;
    color: var(--grey-text);
    line-height: 1.45;
}
.form-error {
    font-size: 0.76rem;
    color: #dc2626;
    font-weight: 600;
    min-height: 1.1em;
    line-height: 1.3;
}

/* ── Input with € prefix ── */
.input-prefix-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.input-prefix {
    position: absolute;
    left: 13px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--grey-text);
    pointer-events: none;
    user-select: none;
}
.form-input.has-prefix { padding-left: 28px; }

/* ── Toggle (sì/no) ── */
.toggle-group {
    display: inline-flex;
    border: 1.5px solid var(--grey-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
}
.toggle-btn {
    padding: 10px 24px;
    background: transparent;
    border: none;
    border-right: 1.5px solid var(--grey-border);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--grey-text);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.toggle-btn:last-child { border-right: none; }
.toggle-btn:hover:not(.active) { background: var(--grey-bg); color: var(--blue); }
.toggle-btn.active {
    background: var(--blue);
    color: var(--white);
}

/* ── Form navigation ── */
.form-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--grey-border);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 18px;
    background: transparent;
    color: var(--grey-text);
    border: 1.5px solid var(--grey-border);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    text-decoration: none;
}
.btn-back:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.btn-submit {
    gap: 9px;
}

/* ── Plan cards (step 3) ── */
.plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 28px;
}

.plan-card {
    border: 2px solid var(--grey-border);
    border-radius: var(--r);
    padding: 26px 22px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
    background: var(--white);
    user-select: none;
}
.plan-card:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.plan-card.selected {
    border-color: var(--blue);
    background: rgba(27,58,107,0.025);
    box-shadow: 0 0 0 3px rgba(27,58,107,0.1), var(--shadow-sm);
}

/* Checkmark badge top-right */
.plan-check {
    position: absolute;
    top: 16px; right: 16px;
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid var(--grey-border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}
.plan-check svg { width: 10px; height: 10px; color: transparent; transition: color 0.15s; }
.plan-card.selected .plan-check { background: var(--blue); border-color: var(--blue); }
.plan-card.selected .plan-check svg { color: var(--white); }

.plan-badge {
    display: inline-block;
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--grey-text);
    background: var(--grey-bg);
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 12px;
}
.plan-card.selected .plan-badge {
    background: rgba(27,58,107,0.08);
    color: var(--blue);
}

.plan-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.plan-for {
    font-size: 0.78rem;
    color: var(--grey-text);
    margin-bottom: 14px;
    line-height: 1.45;
}
.plan-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--grey-border);
}
.plan-sym { font-size: 1rem; font-weight: 700; color: var(--yellow); margin-top: 4px; }
.plan-num { font-size: 2rem; font-weight: 700; color: var(--blue); letter-spacing: -0.04em; line-height: 1; }
.plan-per { font-size: 0.75rem; color: var(--grey-text); margin-left: 2px; }

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 0.82rem;
    color: var(--black);
    line-height: 1.4;
}
.pfeat-check {
    color: var(--blue);
    font-weight: 700;
    font-size: 0.72rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Order summary ── */
.form-summary {
    background: var(--grey-bg);
    border: 1px solid var(--grey-border);
    border-radius: var(--r);
    padding: 18px 22px;
    margin-bottom: 4px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--grey-border);
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row span  { color: var(--grey-text); }
.summary-row strong { color: var(--blue); font-weight: 700; }
.summary-note {
    font-size: 0.76rem;
    color: var(--grey-text);
    margin-top: 12px;
    line-height: 1.55;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 0;
}
.summary-note::before { content: '🔒'; }

/* ── Login link ── */
.reg-login {
    text-align: center;
    margin-top: 22px;
    font-size: 0.875rem;
    color: var(--grey-text);
}
.reg-login a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}
.reg-login a:hover { text-decoration: underline; }

/* ── Responsive — tablet ── */
@media (max-width: 640px) {
    .form-step  { padding: 32px 22px; }
    .form-grid  { grid-template-columns: 1fr; }
    .plan-grid  { grid-template-columns: 1fr; }
    .step-label { font-size: 0.7rem; }
    .step-line  { min-width: 28px; }
}

/* ── Responsive — mobile ── */
@media (max-width: 420px) {
    .step-label { display: none; }
    .form-nav   { gap: 10px; }
    .btn-submit { font-size: 0.85rem; padding: 12px 16px; }
}
