/* ==========================================================================
   STUDIO PI · ARKEDA 2026 — Landing preadesioni
   ========================================================================== */

:root {
    --ink: #393637;
    --ink-deep: #2a2728;
    --ink-soft: #444041;
    --line: rgba(255, 255, 255, .12);
    --green: #a2d833;
    --green-hover: #b4e64c;
    --green-deep: #7fae1c;
    --white: #ffffff;
    --paper: #f4f3f1;
    --muted: rgba(255, 255, 255, .68);
    --text: #393637;
    --text-muted: #6f6b6c;
    --error: #ff7a6b;

    --ff: "Libre Franklin", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
    --ff-script: "Montserrat", "Helvetica Neue", Arial, sans-serif;

    --ease: cubic-bezier(.22, 1, .36, 1);
    --ease-in-out: cubic-bezier(.65, 0, .35, 1);
    --radius: 14px;
    --header-h: 84px;
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--ff);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
strong { font-weight: 700; }
[hidden] { display: none !important; }

.container {
    width: min(100% - 48px, var(--container));
    margin-inline: auto;
}

::selection { background: var(--green); color: var(--ink); }

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

/* ---------- Preloader ---------- */
.preloader { display: none; }
.js .preloader {
    position: fixed; inset: 0; z-index: 100;
    display: grid; place-items: center;
    background: var(--ink);
    transition: opacity .7s var(--ease), visibility .7s;
}
.preloader__inner { display: grid; justify-items: center; gap: 22px; }
.preloader__logo { width: 96px; height: auto; opacity: 0; transform: translateY(10px); animation: preIn .8s var(--ease) .1s forwards; }
.preloader__bar { width: 140px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.preloader__bar::after {
    content: ""; position: absolute; inset: 0;
    background: var(--green);
    transform: scaleX(0); transform-origin: left;
    animation: preBar 1s var(--ease-in-out) .25s forwards;
}
.is-loaded .preloader { opacity: 0; visibility: hidden; }
@keyframes preIn { to { opacity: 1; transform: none; } }
@keyframes preBar { to { transform: scaleX(1); } }

/* ---------- Progress bar ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--green); transform-origin: left; transform: scaleX(0); }

/* ---------- Header ---------- */
.header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    height: var(--header-h);
    transition: background .4s var(--ease), height .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease);
}
.header__inner {
    height: 100%;
    width: min(100% - 48px, 1400px);
    margin-inline: auto;
    display: flex; align-items: center; justify-content: space-between;
}
.header__brand { display: flex; align-items: center; gap: 18px; text-decoration: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .header__brand { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.js .header.show-brand .header__brand { opacity: 1; transform: none; pointer-events: auto; }
.js .header:not(.show-brand) .header__inner { justify-content: flex-end; }
.header__brand img { width: 50px; height: auto; transition: width .4s var(--ease); }
.header__brand .header__cosmet { width: 118px; }
.header__sep { width: 1px; height: 34px; background: rgba(255, 255, 255, .3); }
.header.is-scrolled {
    --header-h: 66px;
    background: rgba(42, 39, 40, .86);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 1px 0 var(--line);
}
.header.is-scrolled .header__brand img { width: 40px; }
.header.is-scrolled .header__brand .header__cosmet { width: 96px; }
.header.is-hidden { transform: translateY(-100%); }

/* ---------- Buttons ---------- */
.btn {
    --bg: transparent; --fg: var(--white);
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 54px; padding: 0 28px;
    border: 0; border-radius: 999px;
    font: 700 15px/1 var(--ff); letter-spacing: .02em;
    color: var(--fg); background: var(--bg);
    text-decoration: none; cursor: pointer;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
    will-change: transform;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--green { --bg: var(--green); --fg: var(--ink); box-shadow: 0 10px 30px -12px rgba(162, 216, 51, .65); }
.btn--green::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--green-hover);
    transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn--green:hover::before { transform: none; }
.btn--green:hover { box-shadow: 0 16px 40px -14px rgba(162, 216, 51, .8); }
.btn--ghost { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--green); color: var(--green); }
.btn--small { min-height: 42px; padding: 0 22px; font-size: 14px; }

.ripple {
    position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
    background: rgba(255, 255, 255, .45);
    transform: scale(0); animation: ripple .7s var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- Reveal ---------- */
.js .reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 1s var(--ease), transform 1s var(--ease);
    transition-delay: calc(var(--d, 0) * 110ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.js .reveal-clip > * { display: block; height: 100%; clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-in-out); }
.js .reveal-clip.is-in > * { clip-path: inset(0 0 0 0); }
.js .reveal-clip::after { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) 1.1s; }
.js .reveal-clip.is-in::after { transform: scaleX(1); }

/* ---------- HERO ---------- */
.hero {
    position: relative;
    display: grid; grid-template-columns: 1fr 1fr;
    min-height: 100vh; min-height: 100svh;
    background: var(--ink); color: var(--white);
}
.hero__panel { position: relative; display: flex; align-items: center; justify-content: center; padding: calc(var(--header-h) + 10px) 6vw 70px; overflow: hidden; }
.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1; pointer-events: none; }
.js .hero__lines path, .js .hero__lines circle { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 3.2s var(--ease-in-out) forwards; animation-delay: calc(.9s + var(--i, 0) * .25s); }
.hero__lines :nth-child(2) { --i: 1; } .hero__lines :nth-child(3) { --i: 2; } .hero__lines :nth-child(4) { --i: 3; } .hero__lines :nth-child(5) { --i: 4; stroke: rgba(162, 216, 51, .18); } .hero__lines :nth-child(6) { --i: 5; stroke: rgba(162, 216, 51, .35); stroke-width: 2; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero__content { position: relative; width: 100%; max-width: 520px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__brand { display: inline-flex; flex-direction: column; align-items: stretch; max-width: 100%; }
.hero__logos { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 2.6vw, 34px); }
.hero__logo-spi { width: clamp(104px, 9.5vw, 138px); height: auto; }
.hero__logo-cosmet { width: clamp(176px, 16vw, 236px); height: auto; }
.hero__logos-sep { align-self: stretch; width: 1px; margin: 6px 0; background: rgba(255, 255, 255, .28); }
.hero__rule { display: block; width: 100%; height: 3px; margin: 18px 0 8px; background: var(--green); transform-origin: left; }
.js .hero__rule { transform: scaleX(0); transition: transform 1.3s var(--ease-in-out); transition-delay: .6s; }
.js .hero__rule.is-in { transform: scaleX(1); }
.hero__informa { margin: 0; text-align: left; font: italic 300 20px/1.2 var(--ff-script); color: rgba(255, 255, 255, .85); }
.hero__invite { margin: 30px 0 22px; font-size: clamp(20px, 2vw, 26px); font-weight: 300; }

.hero__title { margin: 0; width: 100%; max-width: 440px; }
.hero__title .mask { display: block; overflow: hidden; }
.hero__title img { width: 100%; height: auto; }
.js .hero__title img { transform: translateY(105%); transition: transform 1.3s var(--ease); transition-delay: .55s; }
.is-ready .hero__title img { transform: none; }

.pill {
    margin: 30px 0 0;
    display: inline-flex; padding: 13px 34px; border-radius: 999px;
    background: var(--green); color: var(--ink);
    font-weight: 800; font-size: clamp(16px, 1.6vw, 20px); letter-spacing: .02em;
    position: relative; overflow: hidden;
}
.pill::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-20deg); animation: shine 5s var(--ease-in-out) 2.4s infinite;
}
@keyframes shine { 0% { left: -60%; } 22%, 100% { left: 130%; } }

.hero__where { margin-top: 26px; display: grid; justify-items: center; gap: 4px; font-size: 19px; font-weight: 300; }
.hero__where strong { font-size: 16px; letter-spacing: .04em; }
.hero__city { font-size: 26px; letter-spacing: .06em; text-transform: uppercase; }
.hero__mini-rule { width: 34px; height: 2px; background: var(--green); margin: 6px 0 8px; }

.hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.hero__media { position: relative; margin: 0; overflow: hidden; background: #1d1b1c; }
.hero__media picture, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 60%; transform-origin: 50% 60%; }
.js .hero__media img { animation: kenburns 2.4s var(--ease) .2s both; }
@keyframes kenburns { from { transform: scale(1.22); filter: brightness(.4); } to { transform: scale(1.06); filter: none; } }
.hero__media::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        linear-gradient(90deg, rgba(57, 54, 55, .9) 0%, rgba(57, 54, 55, 0) 28%),
        linear-gradient(0deg, rgba(42, 39, 40, .55) 0%, rgba(42, 39, 40, 0) 40%);
}
.hero__badge {
    position: absolute; z-index: 2; left: 40px; bottom: 44px;
    display: flex; align-items: center; gap: 18px;
    padding: 18px 26px 18px 22px; border-radius: var(--radius);
    background: rgba(42, 39, 40, .55);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .14);
    color: var(--white);
}
.hero__badge-num { font-size: 34px; font-weight: 800; color: var(--green); line-height: 1; white-space: nowrap; }
.hero__badge-txt { font-size: 14px; line-height: 1.35; color: var(--muted); }

.scroll-cue { position: absolute; left: 25%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .4); z-index: 3; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--green); animation: cue 1.8s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Countdown ---------- */
.countdown { background: var(--ink-deep); color: var(--white); border-top: 1px solid var(--line); }
.countdown__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 0; flex-wrap: wrap; }
.countdown__label { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.countdown__grid { display: flex; gap: clamp(14px, 3vw, 44px); }
.countdown__grid div { display: grid; justify-items: center; min-width: 64px; }
.countdown__grid span { font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__grid span.tick { animation: tick .5s var(--ease); }
.countdown__grid small { margin-top: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); font-weight: 600; }
@keyframes tick { 0% { transform: translateY(-30%); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--green); color: var(--ink); overflow: hidden; padding: 20px 0; }
.marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.marquee i { width: 10px; height: 10px; background: var(--ink); transform: rotate(45deg); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Stand ---------- */
.stand { background: var(--paper); padding: clamp(80px, 11vw, 150px) 0 clamp(80px, 10vw, 130px); overflow: hidden; }
.stand__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.kicker { margin: 0 0 18px; display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--green-deep); }
.kicker::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.kicker--light { color: var(--green); }
.stand .stand__big { margin: 0; max-width: none; font-size: clamp(84px, 12vw, 160px); font-weight: 800; line-height: .9; color: var(--green-deep); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stand__big .unit { font-size: .42em; margin-left: .12em; vertical-align: top; position: relative; top: .25em; }
.stand h2 { margin: 18px 0 26px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; font-weight: 300; letter-spacing: -.01em; color: var(--ink); }
.stand h2 strong { font-weight: 800; display: block; }
.stand p { color: var(--text-muted); max-width: 560px; }
.lead { font-size: 19px; color: var(--text) !important; }

.stand__visual { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(42, 39, 40, .55); }
.stand__visual picture { position: absolute; inset: 0; overflow: hidden; }
.stand__visual img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.stand__visual::after { content: ""; position: absolute; z-index: 2; left: 0; bottom: 0; width: 46%; height: 6px; background: var(--green); }

.cards { margin-top: clamp(60px, 8vw, 110px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    position: relative; padding: 36px 32px 34px; border-radius: var(--radius);
    background: var(--white); color: var(--text);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 24px 50px -36px rgba(42, 39, 40, .45);
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
    transform-style: preserve-3d;
}
.card::before { content: ""; position: absolute; left: 32px; right: 32px; top: 0; height: 3px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.card:hover::before { transform: scaleX(1); }
.card:hover { box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 34px 60px -30px rgba(42, 39, 40, .5); }
.card__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--ink); margin-bottom: 26px; }
.card__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card__icon .draw { stroke: var(--green); stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset 1.2s var(--ease) .4s; }
.card.is-in .draw, .no-js .card .draw { stroke-dashoffset: 0; }
html:not(.js) .card__icon .draw { stroke-dashoffset: 0; }
.card h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--green-deep); }
.card__main { margin: 0 0 6px; font-size: 22px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }
.card__link { display: inline-flex; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; background: linear-gradient(var(--green), var(--green)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); padding-bottom: 2px; }
.card__link:hover { background-size: 100% 2px; }

/* ---------- Form section ---------- */
.form-section { position: relative; padding: clamp(90px, 11vw, 150px) 0; color: var(--white); background: var(--ink); overflow: hidden; scroll-margin-top: 20px; }
.form-section__bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(600px 400px at 85% 10%, rgba(162, 216, 51, .12), transparent 70%),
        radial-gradient(500px 500px at 5% 95%, rgba(162, 216, 51, .07), transparent 70%);
}
.form-section__bg::after {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
    animation: grid 30s linear infinite;
}
@keyframes grid { to { background-position: 64px 64px, 64px 64px; } }

.form-section__grid { position: relative; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.form-section__intro { position: sticky; top: 110px; }
.form-section h2 { margin: 0 0 22px; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; font-weight: 300; letter-spacing: -.01em; }
.form-section h2 strong { display: block; font-weight: 800; color: var(--green); }
.form-section__intro p { color: var(--muted); max-width: 420px; }
.checklist { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.checklist li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23393637' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; }

.form-card {
    position: relative; padding: clamp(28px, 4vw, 52px);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
    border: 1px solid rgba(255, 255, 255, .12);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .6);
}
.form-card::before { content: ""; position: absolute; left: clamp(28px, 4vw, 52px); top: -1px; width: 80px; height: 3px; background: var(--green); border-radius: 0 0 3px 3px; }

.form { display: grid; gap: 30px; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* floating label fields */
.field { position: relative; }
.field input {
    width: 100%; height: 60px; padding: 22px 0 6px;
    border: 0; border-bottom: 1.5px solid rgba(255, 255, 255, .25); border-radius: 0;
    background: transparent; color: var(--white);
    font: 500 18px/1.2 var(--ff);
    outline: none; transition: border-color .3s;
    -webkit-appearance: none; appearance: none;
}
.field input:-webkit-autofill { -webkit-text-fill-color: var(--white); transition: background-color 9999s; }
.field label {
    position: absolute; left: 0; top: 22px; pointer-events: none;
    font-size: 17px; color: rgba(255, 255, 255, .6);
    transform-origin: left top; transition: transform .35s var(--ease), color .3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label { transform: translateY(-20px) scale(.76); color: var(--green); }
.field__line { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.field input:focus ~ .field__line { transform: scaleX(1); }
.field__error { display: block; min-height: 0; font-size: 13px; font-weight: 500; color: var(--error); margin-top: 6px; }
.field__error:empty { margin: 0; }
.has-error input { border-bottom-color: var(--error); }
.has-error { animation: shake .45s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.group { border: 0; padding: 0; margin: 0; min-width: 0; }
.group legend { padding: 0; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 2; cursor: pointer; }
.chip span {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
    border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .25);
    font-size: 15px; font-weight: 500; transition: all .3s var(--ease);
}
.chip:hover span { border-color: rgba(255, 255, 255, .6); transform: translateY(-2px); }
.chip input:checked + span { background: var(--green); border-color: var(--green); color: var(--ink); font-weight: 700; transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(162, 216, 51, .8); }
.chip input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 3px; }
.field--altro { margin-top: 14px; animation: slideDown .5s var(--ease); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.day { position: relative; cursor: pointer; }
.day input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 2; cursor: pointer; }
.day__box {
    position: relative; display: grid; justify-items: center; gap: 2px;
    padding: 18px 10px 16px; border-radius: var(--radius);
    border: 1.5px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .03);
    transition: all .4s var(--ease);
}
.day__week { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .65); transition: color .3s; }
.day__num { font-size: 40px; font-weight: 800; line-height: 1.05; }
.day__month { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .65); transition: color .3s; }
.day__check { position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--ink); fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.4); transition: all .4s var(--ease); }
.day__check path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .5s var(--ease) .15s; }
.day:hover .day__box { border-color: rgba(255, 255, 255, .55); transform: translateY(-3px); }
.day input:checked + .day__box { background: var(--green); border-color: var(--green); color: var(--ink); transform: translateY(-3px); box-shadow: 0 18px 34px -18px rgba(162, 216, 51, .85); }
.day input:checked + .day__box .day__week, .day input:checked + .day__box .day__month { color: rgba(57, 54, 55, .75); }
.day input:checked + .day__box .day__check { opacity: 1; transform: none; }
.day input:checked + .day__box .day__check path { stroke-dashoffset: 0; }
.day input:focus-visible + .day__box { outline: 2px solid var(--green); outline-offset: 3px; }

.checkbox { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; position: relative; }
.checkbox input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; z-index: 2; cursor: pointer; }
.checkbox__box { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid rgba(255, 255, 255, .4); display: grid; place-items: center; transition: all .3s var(--ease); margin-top: 1px; }
.checkbox__box svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.checkbox__box path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .4s var(--ease) .05s; }
.checkbox input:checked + .checkbox__box { background: var(--green); border-color: var(--green); transform: scale(1.05); }
.checkbox input:checked + .checkbox__box path { stroke-dashoffset: 0; }
.checkbox input:focus-visible + .checkbox__box { outline: 2px solid var(--green); outline-offset: 3px; }
.checkbox__txt { font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .72); }
.checkbox__txt a { color: var(--green); text-underline-offset: 3px; }

.form__footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.form__note { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .5); }
.btn--submit { min-width: 260px; min-height: 60px; font-size: 16px; }
.btn__loader { display: none; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(57, 54, 55, .25); border-top-color: var(--ink); animation: spin .8s linear infinite; }
.is-loading .btn__loader { display: block; }
.is-loading .btn__arrow { display: none; }
.is-loading { pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__message { font-size: 15px; font-weight: 500; color: var(--error); }
.form__message:empty { display: none; }

.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 24px; font-size: 15px; }
.alert--error { background: rgba(255, 122, 107, .12); color: #ffb3aa; border: 1px solid rgba(255, 122, 107, .35); }

/* success */
.success { text-align: center; padding: 30px 0 10px; outline: none; }
.success__icon { width: 96px; height: 96px; margin: 0 auto 26px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.success__icon circle { stroke: var(--green); stroke-width: 3; stroke-dasharray: 230; stroke-dashoffset: 230; animation: dash 1s var(--ease-in-out) .1s forwards; transform: rotate(-90deg); transform-origin: center; }
.success__icon path { stroke: var(--green); stroke-width: 4.5; stroke-dasharray: 60; stroke-dashoffset: 60; animation: dash .6s var(--ease) .9s forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.success h3 { margin: 0 0 12px; font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; line-height: 1.1; }
.success p { margin: 0 auto 8px; max-width: 460px; color: rgba(255, 255, 255, .85); font-size: 18px; }
.success p strong { color: var(--green); }
.success__sub { color: var(--muted) !important; font-size: 15px !important; }
.success__actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.success > * { animation: fadeUp .8s var(--ease) both; }
.success > :nth-child(2) { animation-delay: .5s; } .success > :nth-child(3) { animation-delay: .65s; } .success > :nth-child(4) { animation-delay: .8s; } .success > :nth-child(5) { animation-delay: .95s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.closed { text-align: center; padding: 20px 0; }
.closed h3 { font-size: 30px; margin: 0 0 10px; }
.closed p { color: var(--muted); margin: 0 0 26px; }

/* confetti */
.confetti { position: fixed; top: -12px; width: 9px; height: 14px; z-index: 90; pointer-events: none; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate3d(var(--x), 105vh, 0) rotate(var(--r)); } }

/* ---------- Footer ---------- */
.footer { background: var(--ink-deep); color: var(--muted); padding: 48px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer__logos { display: flex; align-items: center; gap: 18px; }
.footer__logos img:first-child { width: 50px; height: auto; }
.footer__logos img:last-child { width: 118px; height: auto; }
.footer__links { display: flex; gap: 28px; }
.footer__links a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--white); transition: color .3s; }
.footer__links a:hover { color: var(--green); }
.footer__bottom { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; }
.footer__address { font-style: normal; font-size: 14px; line-height: 1.6; display: flex; flex-wrap: wrap; align-items: center; }
.footer__address > * + *::before { content: ""; display: inline-block; width: 4px; height: 4px; margin: 0 14px; border-radius: 50%; background: var(--green); vertical-align: middle; }
.footer__address strong { color: var(--white); font-weight: 700; }
.footer__address a { color: inherit; text-decoration: none; background: linear-gradient(var(--green), var(--green)) 0 100% / 0 1px no-repeat; transition: color .3s, background-size .4s var(--ease); }
.footer__address a:hover { color: var(--white); background-size: 100% 1px; }
.footer__copy { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    .stand__grid { grid-template-columns: 1fr; }
    .stand__visual { aspect-ratio: 16 / 10; }
    .form-section__grid { grid-template-columns: 1fr; }
    .form-section__intro { position: static; }
    .cards { grid-template-columns: 1fr 1fr; }
    .cards .card:last-child { grid-column: span 2; }
}

@media (max-width: 900px) {
    :root { --header-h: 70px; }
    .hero { grid-template-columns: 1fr; }
    .hero__media { order: -1; height: 46vh; min-height: 320px; }
    .hero__media::before { background: linear-gradient(0deg, rgba(57, 54, 55, 1) 0%, rgba(57, 54, 55, 0) 55%), linear-gradient(180deg, rgba(42, 39, 40, .7) 0%, rgba(42, 39, 40, 0) 35%); }
    .hero__panel { padding: 10px 24px 90px; margin-top: -60px; z-index: 2; }
    .hero__badge { left: 24px; bottom: auto; top: calc(var(--header-h) + 14px); padding: 12px 18px; gap: 12px; }
    .hero__badge-num { font-size: 24px; }
    .hero__badge-txt { font-size: 12px; }
    .scroll-cue { left: 50%; }
    .countdown__inner { justify-content: center; text-align: center; }
    .footer__inner, .footer__bottom { flex-direction: column; text-align: center; }
    .footer__address { flex-direction: column; gap: 2px; }
    .footer__address > * + *::before { display: none; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .container { width: min(100% - 36px, var(--container)); }
    .header__inner { width: calc(100% - 32px); }
    .header__brand { gap: 12px; }
    .header__brand img { width: 40px; }
    .header__brand .header__cosmet { width: 92px; }
    .header__sep { height: 26px; }
    .hero__informa { font-size: 17px; }
    .hero__logo-spi { width: 92px; }
    .hero__logo-cosmet { width: 158px; }
    .hero__invite { margin: 32px 0 20px; }
    .hero__title { max-width: 320px; }
    .pill { margin-top: 30px; padding: 12px 26px; }
    .hero__cta { flex-direction: column; width: 100%; }
    .hero__cta .btn { width: 100%; }
    .countdown__grid div { min-width: 54px; }
    .cards { grid-template-columns: 1fr; }
    .cards .card:last-child { grid-column: auto; }
    .form__row--2 { grid-template-columns: 1fr; gap: 30px; }
    .days { gap: 10px; }
    .day__num { font-size: 32px; }
    .day__week, .day__month { font-size: 11px; }
    .form__footer { flex-direction: column; align-items: stretch; }
    .btn--submit { width: 100%; min-width: 0; }
    .form__note { text-align: center; }
    .success__actions .btn { width: 100%; }
}

@media (max-width: 380px) {
    .header .btn--small { padding: 0 16px; }
    .chip span { padding: 0 16px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
    .marquee__track { animation: none; }
}
