/* Busta e Fondo - stile del sito */

:root {
	--green: #18cb96;
	--lime: #c9f31d;
	--ink: #10171e;
	--ink-2: #131c25;
	--cream: #f0f5da;
	--text: #5a5a5a;
	--green-dark: #0a7a59;
}

*, *:before, *:after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0px; font-family: "Space Grotesk", sans-serif; font-size: 17px; line-height: 1.65; color: var(--text); background: #FFFFFF; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
h1, h2, h3 { color: var(--ink); margin: 0px 0px 20px; }
p { margin: 0px 0px 30px; }
button, input, select { font-family: inherit; font-size: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100%, 81.25rem); margin: 0px auto; padding: 0px 1.5rem; }

/* le quattro linee sottili sullo sfondo bianco */
.hair-cols { background: #fff repeating-linear-gradient(90deg, #f0f0f0 0px, #f0f0f0 1px, transparent 1px, transparent 25%); }

/* bottoni */
.btn-green { display: inline-block; background: var(--green); color: var(--ink); padding: 12px 24px; border-radius: 3px; border: 0px; font-size: 15px; font-weight: 500; cursor: pointer; }
.btn-green:hover { background: var(--lime); }
.btn-lime { display: inline-flex; align-items: center; gap: 10px; background: var(--lime); color: var(--ink); padding: 10px 30px; border-radius: 10px; font-weight: 600; border: 0px; cursor: pointer; }
.btn-lime:hover { background: var(--ink); color: var(--lime); }
.btn-line { display: inline-block; color: var(--ink); font-weight: 500; padding: 10px 0px; border-bottom: 2px solid var(--green); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 3px; padding: 10px 16px; cursor: pointer; }
.btn-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* testata sopra la foto, diventa scura quando si scorre */
.hatbar { position: absolute; top: 0px; left: 0px; right: 0px; z-index: 9999; border-bottom: 1px solid rgba(255, 255, 255, 0.2); transition: background 0.3s ease; }
.hatbar.is-fixed { position: fixed; background: var(--ink); }
.hatbar_inner { width: min(100%, 1300px); margin: 0px auto; padding: 0px 24px; height: 98px; display: flex; align-items: center; gap: 40px; }
.hatbar-logo img { width: 190px; }
.hatbar-nav { display: flex; gap: 30px; margin-right: auto; }
.hatbar-nav > a, .has-sub > a { color: #fffdfd; font-weight: 500; font-size: 16px; position: relative; padding: 36px 0px; display: inline-flex; align-items: center; gap: 6px; }
.hatbar-nav > a:before, .has-sub > a:before { content: ""; position: absolute; left: 0px; right: 0px; bottom: 0px; height: 3px; background: var(--green); transform: scaleX(0); transition: transform 0.3s ease; }
.hatbar-nav > a:hover, .has-sub > a:hover { color: var(--green); }
.hatbar-nav > a:hover:before, .has-sub > a:hover:before { transform: scaleX(1); }
.has-sub { position: relative; }
.has-sub__drop { position: absolute; top: 96px; left: -20px; min-width: 260px; background: var(--ink); padding: 14px 20px; display: none; flex-direction: column; gap: 8px; border-radius: 0px 0px 10px 10px; }
.has-sub:hover .has-sub__drop, .has-sub:focus-within .has-sub__drop { display: flex; }
.has-sub__drop a { color: #fff; font-size: 15px; }
.has-sub__drop a:hover { color: var(--green); }
.hatbar-burger { display: none; width: 44px; height: 44px; background: none; border: 0px; position: relative; cursor: pointer; }
.hatbar-burger i { position: absolute; right: 10px; height: 2px; background: #fff; }
.hatbar-burger i:nth-of-type(1) { top: 14px; width: 22px; }
.hatbar-burger i:nth-of-type(2) { top: 21px; width: 16px; }
.hatbar-burger i:nth-of-type(3) { top: 28px; width: 22px; }
.side-panel { position: fixed; top: 0px; right: 0px; bottom: 0px; width: min(360px, 88vw); z-index: 10000; background: var(--ink); padding: 100px 30px 30px; display: flex; flex-direction: column; gap: 16px; }
.side-panel a { color: #fff; font-size: 18px; }
.side-panel .btn-green { align-self: flex-start; margin-top: 10px; }

/* la foto grande in cima, con le pillole che scorrono */
.hero-band { position: relative; min-height: 890px; display: flex; align-items: center; background: var(--ink); overflow: hidden; }
.hero-band__photo { position: absolute; inset: 0px; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); opacity: 0.3; }
.hero-band__content { position: relative; padding-top: 120px; padding-bottom: 80px; }
.hero-title { color: #fff; font-weight: 400; font-size: clamp(2.375rem, 0.5rem + 6.6vw, 5.75rem); text-shadow: 0 2px 24px rgba(16, 23, 30, 0.6); line-height: 1.12; letter-spacing: -2px; margin: 0px; }
.hero-title__line { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-title__line--end { justify-content: flex-end; }
.hero-title__line--with-text { padding-left: 8%; }
.pill-run { display: inline-block; width: 520px; max-width: 100%; height: 120px; border-radius: 75px; background: var(--green); overflow: hidden; position: relative; vertical-align: middle; }
.pill-run__track { position: absolute; top: 50%; left: 0px; display: flex; gap: 60px; white-space: nowrap; -webkit-transform: translateY(-50%); transform: translateY(-50%); text-shadow: none; color: var(--ink); animation: scorri 14s linear infinite; padding-left: 30px; color: #f2f9f7; }
.pill-run--rev .pill-run__track { animation-direction: reverse; }
.pill-pair { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 36px; }
.pill-pair .pill-run { height: 96px; width: 460px; font-size: 54px; letter-spacing: -1px; }
.hero-plate { display: inline-block; margin-top: 2.5rem; padding: 0.625rem 1.375rem; border: 1px solid rgba(255,255,255,0.4); border-radius: 75px; color: #fff; font-size: 14px; letter-spacing: 3px; text-transform: uppercase; font-weight: 500; }
@keyframes scorri { from { transform: translate(0px, -50%); } to { transform: translate(-50%, -50%); } }

.ticker-band { background: var(--green); height: 90px; overflow: hidden; display: flex; align-items: center; }
.ticker-band__track { list-style: none; margin: 0px; padding: 0px; display: flex; gap: 120px; white-space: nowrap; color: var(--ink); font-weight: 700; font-size: 1.25rem; animation: nastro 22s linear infinite; padding-left: 60px; }
@keyframes nastro { from { transform: translateX(0px); } to { transform: translateX(-50%); } }

/* intro */
.intro-band { padding: 130px 0px; }
.intro-band__grid { display: grid; grid-template-columns: 440px 1fr; grid-gap: 100px; align-items: center; }
.media_wrap img { border-radius: 20px; width: 100%; object-fit: cover; filter: grayscale(1); }
.lead-text { font-size: 1.25rem; line-height: 1.6; }
.lead-text strong { color: var(--ink); font-weight: 600; }

.green-title { font-size: clamp(1.75rem, 1rem + 2vw, 2.625rem); line-height: 1.24; font-weight: 600; letter-spacing: -1px; color: var(--green-dark); text-wrap: balance; }
.green-title em { font-style: normal; background: linear-gradient(90deg, var(--green-dark), #11a77b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.green-title .rule { display: inline-block; width: 120px; height: 2px; background: var(--green); vertical-align: middle; margin-right: 24px; }
.eyebrow { font-size: 0.875rem; letter-spacing: 0.1875rem; text-transform: uppercase; font-weight: 500; color: var(--ink); margin-bottom: 12px; }
.muted-line { max-width: 640px; }
.white-title { color: #fff; font-size: 42px; line-height: 45px; font-weight: 600; }

/* due documenti */
.cream-band { background: var(--cream); padding: 8.125rem 0px; }
.service_grid_list { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.service-head { grid-column: 1 / -1; }
.notch-card { position: relative; border: 1px solid #e1e7c6; border-radius: 20px; padding: 24px 24px 60px; }
.notch-card--low { margin-top: 15px; }
.notch-card:after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 38px; height: 35px; background: var(--ink); border-radius: 14px 0px 20px 0px; }
.notch-card img { border-radius: 14px; margin-bottom: 22px; width: 100%; aspect-ratio: 900 / 420; object-fit: cover; }
.notch-card h3 { color: var(--green-dark); font-size: 24px; line-height: 34px; font-weight: 700; }
.tick-rows { list-style: none; margin: 0px 0px 30px; padding: 0px; display: flex; flex-direction: column; gap: 10px; }
.tick-rows li { position: relative; padding-left: 2rem; font-size: 1rem; line-height: 1.5; }
.tick-rows li:before { content: ""; position: absolute; left: 0px; top: 3px; width: 20px; height: 20px; border-radius: 5px; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10l3 3 7-7' fill='none' stroke='%2310171E' stroke-width='2'/%3E%3C/svg%3E") center / 14px no-repeat; }
.tick-rows b { color: var(--ink); font-weight: 600; display: block; }

/* tre situazioni */
.people-band, .sheets-band, .place-band, .steps-band { padding: 120px 0px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 50px; }
.post-card img { border-radius: 20px; aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 20px; width: 100%; }
.post-card h3 { font-size: 24px; line-height: 30px; font-weight: 700; }

.counter-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 50px; }
.counter-item { text-align: center; }
.counter-pill { background: var(--cream); border-radius: 70px; height: 98px; display: flex; align-items: center; justify-content: center; font-size: 1.625rem; font-weight: 500; color: var(--green-dark); letter-spacing: 1px; margin-bottom: 18px; }
.counter-item h3 { font-size: 20px; line-height: 28px; font-weight: 700; margin-bottom: 8px; }
.counter-item p { font-size: 16px; line-height: 1.5; margin: 0px; }

/* calendario */
.cycles-band { overflow: hidden; }
.cycles-band .wrap { position: relative; }
.spin-badge { position: absolute; top: -40px; right: 24px; width: 160px; height: 160px; }
.spin-badge svg { animation: gira 18s linear infinite; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; fill: var(--ink); }
.spin-badge__dot { position: absolute; top: 50%; left: 50%; width: 70px; height: 70px; margin: -35px 0px 0px -35px; border-radius: 50%; background: var(--green); }
@keyframes gira { to { transform: rotate(360deg); } }
.cycle-row { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 30px; row-gap: 20px; margin: 40px 0px; }
.cycle-pill { background: #fff; border-radius: 70px; padding: 22px 34px; display: flex; flex-direction: column; }
.cycle-pill b { color: var(--green-dark); font-size: 24px; font-weight: 600; }
.cycle-pill span { color: var(--ink); font-weight: 500; }
.cycle-pill small { font-size: 14px; }
.cycle-pill--dark { background: var(--ink); }
.cycle-pill--dark span, .cycle-pill--dark small { color: #fff; }

/* mattine */
.mornings-band { background: #fff; padding: 120px 0px; }
.mornings-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; }
.arrows { display: flex; gap: 10px; }
.arrow-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.arrow-btn:hover { background: var(--green); border-color: var(--green); color: #fff; }
.frame-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 50px) / 3); gap: 25px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.frame-card { scroll-snap-align: start; border: 1px solid #e1e1e1; border-radius: 20px; overflow: hidden; background: #f7f7f7; min-width: 0px; }
.frame-card img { aspect-ratio: 720 / 420; object-fit: cover; width: 100%; }
.frame-card h3, .frame-card p { padding: 0px 22px; }
.frame-card h3 { margin-top: 20px; font-size: 22px; }

.place-band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.media_wrap--bleed { margin-right: -24px; }

.step-pills { list-style: none; counter-reset: passo; margin: 40px 0px 0px; padding: 0px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.step-pills li { counter-increment: passo; display: flex; flex-direction: column; gap: 6px; }
.step-pills li:before { content: counter(passo); width: 98px; height: 60px; border-radius: 70px; background: var(--cream); color: var(--green-dark); font-size: 1.875rem; font-weight: 500; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.step-pills b { color: var(--ink); font-size: 20px; }

.dark-band { background: var(--ink); padding: 120px 0px; }
.clear-list { list-style: none; margin: 30px 0px 0px; padding: 0px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.clear-list li { background: var(--ink-2); border: 1px solid #1e2a37; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; color: #c3c9cf; }
.clear-list b { color: #fff; font-size: 20px; }
.clear-list__real { grid-column: 1 / -1; border-color: var(--green) !important; }
.clear-list__real b { color: var(--lime); }

.faq-switch { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0px 20px; }
.faq-switch__btn { background: #fff; border: 0px; border-radius: 75px; padding: 12px 26px; color: var(--ink); font-weight: 500; cursor: pointer; }
.faq-switch__btn.active { background: var(--green); color: var(--ink); }
.faq-pane details { background: #fff; border-radius: 20px; padding: 20px 26px; margin-bottom: 12px; }
.faq-pane summary { cursor: pointer; color: var(--ink); font-weight: 600; font-size: 19px; }
.faq-pane details p { margin: 12px 0px 0px; }

/* piede */
.tailblock { background: var(--ink); color: #fff; padding-top: 90px; }
.tailblock__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.4fr; gap: 30px; padding-bottom: 60px; }
.tailblock__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.tailblock__col img { width: 190px; margin-bottom: 20px; }
.tailblock__h { font-size: 22px; font-weight: 600; margin-bottom: 10px; }
.tailblock__col a:hover { color: var(--green); }
.tailblock__contact a, .tailblock__contact span { display: flex; gap: 12px; align-items: flex-start; }
.tailblock__contact svg { flex: none; margin-top: 4px; }
.bottom-strip { border-top: 1px solid #1e2a37; padding: 18px 0px; font-size: 15px; color: #c3c9cf; }
.text-btn { background: none; border: 0px; color: inherit; text-decoration: underline; cursor: pointer; padding: 0px; }

/* cookie, carta scura nell'angolo */
.cookie-card { position: fixed; right: 20px; bottom: 20px; z-index: 10001; width: min(420px, calc(100% - 40px)); background: var(--ink-2); color: #fff; border-radius: 20px; padding: 24px; font-size: 15px; line-height: 1.5; box-shadow: 0 0 5px rgba(0,0,0,0.3); }
.cookie-card a { text-decoration: underline; }
.cookie-card p { margin-bottom: 14px; }
.cookie-card__check { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.cookie-card__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-card .btn-ghost, .form-box .btn-ghost { color: #fff; border-color: #3a4a5a; }

/* pagine del corso e documenti legali */
.page-dark { background: var(--ink); padding: 190px 0px 90px; position: relative; }
.page-dark h1 { color: #fff; font-size: 64px; line-height: 70px; font-weight: 400; letter-spacing: -2px; }
.page-dark .eyebrow { color: var(--green); }
.page-dark .lead-text { color: #c3c9cf; max-width: 720px; margin: 0px; }
.band-plain { padding: 110px 0px; }
.band-plain h2 { font-size: clamp(1.75rem, 1rem + 2vw, 2.625rem); line-height: 1.24; font-weight: 600; letter-spacing: -1px; color: var(--green-dark); }
.band-plain p { max-width: 760px; }
.band-cream { background: var(--cream); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.two-col--mid { align-items: center; }
.two-col__item { min-width: 0px; }
.round-photo { border-radius: 20px; width: 100%; aspect-ratio: 9 / 7; object-fit: cover; filter: grayscale(1); }
.wide-figure { margin: 40px 0px; }
.wide-figure img { border-radius: 20px; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.wide-figure figcaption { font-size: 14px; margin-top: 10px; }
.legal-body h3 { color: var(--ink); font-size: 22px; line-height: 28px; margin-top: 40px; }
.legal-body p { max-width: none; }

/* modulo a passi */
.form-box { background: var(--ink-2); border-radius: 20px; padding: 40px; max-width: 640px; color: #fff; }
.step-dots { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0px 0px 30px; padding: 0px; }
.step-dots li { padding: 6px 16px; border-radius: 75px; border: 1px solid #1e2a37; font-size: 14px; color: #8a929b; }
.step-dots li.on { background: var(--green); border-color: var(--green); color: var(--ink); }
.step-form fieldset { border: 0px; margin: 0px; padding: 0px; }
.step-form legend { color: #fff; font-size: 28px; font-weight: 600; margin-bottom: 20px; padding: 0px; }
.lbl { display: block; color: #c3c9cf; font-size: 15px; margin: 22px 0px 8px; }
.step-form input[type="text"], .step-form input[type="email"], .step-form select { width: 100%; height: 60px; background: var(--ink); border: 1px solid #1e2a37; border-radius: 3px; padding: 16px 15px 16px 18px; color: #fff; }
.picks { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.picks label { display: flex; gap: 8px; align-items: center; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: 15px; }
.agree a { color: var(--green); text-decoration: underline; }
.btn-row-x { display: flex; gap: 12px; margin-top: 30px; }
.step-form .btn-ghost { padding: 12px 24px; }
.trap-field { position: absolute; left: -9999px; }
.step-form__msg { min-height: 52px; margin: 20px 0px 0px; color: var(--lime); }
.after-box { margin-top: 70px; }

/* B5: il vecchio ritocco delle carte, lasciato per ricordo */
/* .notch-card { padding: 20px; } */
.notch-card h3 + p { color: #666666; }

@media (max-width: 1366px) {
	.hero-title { font-size: 80px; }
	.pill-run { width: 420px; height: 104px; }
}
@media (max-width: 1180px) {
	.hatbar-nav { gap: 20px; }
}
@media (max-width: 1024px) {
	.hatbar-nav, .hatbar-cta { display: none; }
	.hatbar-burger { display: block; margin-left: auto; }
	.hero-band { min-height: 760px; }
	.hero-title { font-size: 64px; }
	.intro-band__grid, .place-band__grid, .two-col { grid-template-columns: 1fr; gap: 40px; }
	.service_grid_list { grid-template-columns: 1fr; }
	.counter-row { grid-template-columns: repeat(2, 1fr); }
	.post-grid { grid-template-columns: 1fr 1fr; }
	.frame-track { grid-auto-columns: 70%; }
	.tailblock__grid { grid-template-columns: 1fr 1fr; }
	.spin-badge { position: static; margin-bottom: 20px; }
}
/* TODO: su iPhone SE la pillola taglia la seconda parola, la teniamo più bassa finché non cambiamo il testo */
@media (max-width: 813px) {
	.pill-run { height: 80px; width: 100%; }
}
@media (max-width: 767px) {
	.pill-pair .pill-run { height: 64px; font-size: 32px; }
	.wrap, .hatbar_inner { padding: 0px 16px; }
	.hatbar_inner { height: 76px; }
	.hero-band { min-height: 680px; }
	.hero-title { font-size: 46px; line-height: 1.15; }
	.hero-title__line--end { justify-content: flex-start; }
	.intro-band, .cream-band, .people-band, .sheets-band, .place-band, .steps-band, .mornings-band, .dark-band { padding: 70px 0px; }
	.green-title, .white-title, .band-plain h2 { font-size: 28px; line-height: 38px; }
	.green-title .rule { width: 50px; margin-right: 12px; }
	.post-grid, .counter-row, .cycle-row, .step-pills, .clear-list, .tailblock__grid { grid-template-columns: 1fr; }
	.hair-cols { background: #fff; }
	.media_wrap--bleed { margin-right: 0px; }
	.page-dark { padding: 130px 0px 60px; }
	.page-dark h1 { font-size: 40px; line-height: 46px; }
	.band-plain { padding: 60px 0px; }
	.form-box { padding: 24px; }
	.mornings-top { flex-direction: column; align-items: flex-start; }
	.tailblock__col a, .side-panel a { padding: 4px 0px; }
}
@media (max-width: 480px) {
	.hero-title { font-size: 38px; }
	.ticker-band__track { font-size: 17px; gap: 60px; }
}
@media (prefers-reduced-motion: reduce) {
	.pill-run__track, .ticker-band__track, .spin-badge svg { animation: none; }
	html { scroll-behavior: auto; }
}
