/* ═══ /valutazione — landing «Valutazione gratuita della struttura» (hotel) ═══
   Usa i token di css/style.css e le basi di css/pages.css (header--solid, page-hero, faq, footer). */

/* ─── Hero ─── */
.val-hero { padding: 150px 0 80px; overflow: hidden; position: relative; }
.val-hero::after {
    content: ''; position: absolute; inset: auto -20% -40% auto; width: 60vw; height: 60vw;
    max-width: 720px; max-height: 720px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(245,183,49,.14), transparent 70%);
    pointer-events: none;
}
.val-hero__inner {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    gap: 56px; align-items: center; position: relative; z-index: 1;
}
.val-hero h1 { max-width: 15ch; }
.val-hero__lead { margin-bottom: 30px; }
.val-hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.val-hero__note { font-size: 14.5px; opacity: .8; }

/* numeri del gancio */
.val-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 30px;
}
.val-stat {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
    border-radius: var(--radius); padding: 18px 18px 16px;
    backdrop-filter: blur(6px);
}
.val-stat__n {
    display: block; font-size: clamp(34px, 4.6vw, 50px); font-weight: 800; line-height: 1;
    letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums;
}
.val-stat__n small { font-size: .42em; font-weight: 700; color: rgba(255,255,255,.75); letter-spacing: 0; margin-left: 4px; }
.val-stat__l { display: block; margin-top: 10px; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.88); }
.val-sources { font-size: 12.5px; line-height: 1.55; opacity: .62; max-width: 62ch; margin: -14px 0 32px; }
.val-sources a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* video: niente autoplay, parte solo su click */
.val-video {
    position: relative; width: 100%; max-width: 330px; margin: 0 auto;
    aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden;
    background: #efede8; box-shadow: 0 30px 60px rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.18);
}
.val-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.val-video__play {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0; cursor: pointer;
    background: linear-gradient(to top, rgba(4,57,94,.55), rgba(4,57,94,0) 55%);
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    gap: 10px; padding: 0 20px 26px; color: #fff; font-family: var(--font-main);
    transition: background-color .2s ease;
}
.val-video__play span:first-child {
    width: 68px; height: 68px; border-radius: 50%; background: var(--accent);
    display: grid; place-items: center; box-shadow: var(--shadow-accent);
    transition: transform .2s var(--ease-out);
}
.val-video__play:hover span:first-child { transform: scale(1.06); }
.val-video__play svg { width: 26px; height: 26px; margin-left: 4px; fill: var(--text-dark); }
.val-video__play span:last-child { font-size: 14px; font-weight: 700; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.val-video.is-playing .val-video__play { display: none; }

/* ─── Sezioni ─── */
.val-section { padding: 88px 0; }
.val-section--light { background: var(--bg-light); }
.val-section .section-title { text-align: left; margin-bottom: 14px; font-size: clamp(28px, 3.6vw, 40px); }
.val-intro { font-size: 18.5px; line-height: 1.7; color: var(--text-body); max-width: 66ch; margin-bottom: 44px; }
.val-intro strong { color: var(--text-dark); }

/* cosa ricevi */
.val-deliv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.val-card {
    background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius);
    padding: 30px 28px; box-shadow: var(--shadow); position: relative;
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
@media (hover: hover) { .val-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); } }
.val-card__k {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px; background: var(--primary); color: #fff;
    font-weight: 800; font-size: 15px; margin-bottom: 18px;
}
.val-card h3 { font-size: 20px; font-weight: 800; color: var(--text-dark); line-height: 1.3; margin-bottom: 10px; }
.val-card p { font-size: 16px; line-height: 1.65; color: var(--text-body); }
.val-card p + p { margin-top: 10px; }
.val-card--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.val-card--wide .val-card__k { margin-bottom: 14px; }

.val-verdicts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.val-pill {
    font-size: 12.5px; font-weight: 700; letter-spacing: .02em; padding: 5px 12px; border-radius: 999px;
    background: var(--bg-light); border: 1px solid var(--border-light); color: var(--text-dark);
}
.val-pill--ok { border-color: rgba(23,128,61,.35); color: #146c36; background: #ecf8f0; }
.val-pill--fix { border-color: rgba(217,158,26,.45); color: #8a5e00; background: #fff6e0; }
.val-pill--no { border-color: rgba(180,35,24,.35); color: #9c1f14; background: #fdeeec; }

/* il conto in euro */
.val-math {
    background: var(--primary); color: #fff; border-radius: var(--radius); padding: 26px 26px 22px;
    font-variant-numeric: tabular-nums;
}
.val-math__title { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.val-math dl { display: grid; grid-template-columns: 1fr auto; row-gap: 9px; column-gap: 16px; margin: 0; }
.val-math dt { font-size: 15px; color: rgba(255,255,255,.82); }
.val-math dd { font-size: 15px; font-weight: 700; text-align: right; margin: 0; white-space: nowrap; }
.val-math .val-math__tot { border-top: 1px solid rgba(255,255,255,.2); padding-top: 11px; margin-top: 4px; }
.val-math .val-math__tot dd { color: var(--accent); font-size: 20px; }
.val-math__foot { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.72); margin: 14px 0 0; }

/* come funziona */
.val-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.val-step { position: relative; padding: 28px 26px 26px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius); }
.val-step::before {
    counter-increment: step; content: counter(step);
    position: absolute; top: -16px; left: 24px; width: 34px; height: 34px; border-radius: 50%;
    background: var(--accent); color: var(--text-dark); font-weight: 800; font-size: 15px;
    display: grid; place-items: center; box-shadow: var(--shadow-accent);
}
.val-step h3 { font-size: 19px; font-weight: 800; color: var(--text-dark); margin: 6px 0 10px; }
.val-step p { font-size: 16px; line-height: 1.65; color: var(--text-body); }
.val-step__time { display: inline-block; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--primary); letter-spacing: .04em; text-transform: uppercase; }

.val-after { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.val-after h3 { font-size: 22px; font-weight: 800; color: var(--text-dark); margin-bottom: 14px; }
.val-after p { font-size: 16.5px; line-height: 1.7; color: var(--text-body); }
.val-outcomes { display: grid; gap: 10px; }
.val-outcome { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px 18px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-sm); }
.val-outcome b { color: var(--text-dark); white-space: nowrap; font-size: 15.5px; }
.val-outcome span { font-size: 15.5px; line-height: 1.55; color: var(--text-body); }

/* perché è gratis */
.val-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.val-why p { font-size: 16.5px; line-height: 1.7; color: var(--text-body); padding-top: 16px; border-top: 3px solid var(--accent); }
.val-why p strong { display: block; color: var(--text-dark); font-weight: 800; margin-bottom: 6px; font-size: 17.5px; }

/* chi è Helven */
.val-who { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.val-who__photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.val-who__photo img { width: 100%; height: auto; display: block; }
.val-who p { font-size: 17px; line-height: 1.75; color: var(--text-body); margin-bottom: 14px; }
.val-who p strong { color: var(--text-dark); }
.val-who__clients { font-size: 14.5px; line-height: 1.7; color: var(--text-light); }
.val-who__facts { display: flex; flex-wrap: wrap; gap: 28px; margin: 22px 0 20px; }
.val-who__fact b { display: block; font-size: 30px; font-weight: 800; color: var(--primary); line-height: 1; letter-spacing: -0.02em; }
.val-who__fact span { display: block; font-size: 13.5px; color: var(--text-light); margin-top: 6px; max-width: 20ch; line-height: 1.4; }

/* ─── Modulo ─── */
.val-form-section { padding: 96px 0; background: var(--bg-light); scroll-margin-top: var(--header-h); }
.val-form-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.val-form-side p { font-size: 17px; line-height: 1.7; color: var(--text-body); margin-bottom: 18px; }
.val-form-side .tick-list li { font-size: 16px; }
.val-form { position: relative; }
.val-form .booking__form-title { text-align: left; margin-bottom: 6px; }
.val-form__sub { font-size: 15px; color: var(--text-light); margin-bottom: 24px; line-height: 1.55; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group select {
    width: 100%; padding: 14px 44px 14px 16px; border: 1.5px solid var(--border-field);
    border-radius: var(--radius-sm); font-family: var(--font-main); font-size: 16px;
    color: var(--text-dark); background: var(--bg-light); appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%2304395E' stroke-width='2' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat; background-position: right 16px center; cursor: pointer;
}
.form-group select:hover { border-color: #b5bccb; }
.form-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245,183,49,.25); background-color: var(--secondary); }
.form-group select:invalid { color: #8a8a99; }
.form-consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 22px; font-size: 14px; line-height: 1.55; color: var(--text-body); }
.form-consent input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; accent-color: var(--primary); cursor: pointer; }
.form-consent a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.val-form .booking__form-note { margin-top: 14px; }
.val-form__error {
    display: none; margin: 0 0 16px; padding: 12px 14px; border-radius: var(--radius-sm);
    background: #fdeeec; border: 1px solid rgba(180,35,24,.3); color: #9c1f14; font-size: 14.5px; font-weight: 600;
}
.val-form__error.is-visible { display: block; }

/* stato di ringraziamento */
.val-thanks { display: none; background: var(--secondary); padding: var(--card-padding); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.val-thanks.is-visible { display: block; animation: valFade .5s var(--ease-out) both; }
.val-thanks__icon { width: 56px; height: 56px; border-radius: 50%; background: #ecf8f0; color: #146c36; display: grid; place-items: center; margin-bottom: 18px; font-size: 26px; font-weight: 800; }
.val-thanks h3 { font-size: 26px; font-weight: 800; color: var(--text-dark); margin-bottom: 12px; line-height: 1.25; }
.val-thanks p { font-size: 16.5px; line-height: 1.7; color: var(--text-body); margin-bottom: 14px; }
.val-thanks p:last-of-type { margin-bottom: 0; }
.val-thanks strong { color: var(--text-dark); }
.val-form.is-hidden { display: none; }
@keyframes valFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .val-hero { padding: 120px 0 64px; }
    .val-hero__inner { grid-template-columns: 1fr; gap: 44px; }
    .val-video { max-width: 300px; }
    .val-deliv, .val-steps, .val-why { grid-template-columns: 1fr 1fr; }
    .val-card--wide { grid-template-columns: 1fr; }
    .val-who { grid-template-columns: 1fr; gap: 32px; }
    .val-who__photo { max-width: 360px; }
    .val-form-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
    .val-hero { padding: 104px 0 56px; }
    .val-hero h1 { max-width: none; }
    .val-stats { grid-template-columns: 1fr; gap: 10px; }
    .val-stat { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; padding: 14px 18px; }
    .val-stat__n { font-size: 36px; min-width: 96px; }
    .val-stat__l { margin-top: 0; }
    .val-section { padding: 64px 0; }
    .val-deliv, .val-steps, .val-why, .val-after { grid-template-columns: 1fr; }
    .val-steps { gap: 30px; }
    .val-card { padding: 24px 22px; }
    .val-math { padding: 20px 18px 18px; }
    .val-math dt, .val-math dd { font-size: 14px; }
    .val-form-section { padding: 64px 0; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .val-outcome { grid-template-columns: 1fr; gap: 4px; }
    .val-who__facts { gap: 20px; }
}
