/* ============================================================
   ClimaService Rent - components.css
   ============================================================ */

/* ---------- Bottoni ---------- */

.btn {
    --btn-bg: var(--accent);
    --btn-fg: #fff;
    --btn-hover: var(--accent-hover);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 26px;
    height: 52px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    color: var(--btn-fg);
    background: var(--btn-bg);
    border: 1.5px solid var(--btn-bg);
    clip-path: polygon(0 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% 100%, 0 100%);
    overflow: hidden;
    isolation: isolate;
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.15s var(--ease);
}
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--btn-hover);
    transform: translateX(-101%);
    transition: transform 0.4s var(--ease);
    z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0); }
.btn:active { transform: scale(0.98); }
.btn i { font-size: 1.15em; }

.btn--outline {
    --btn-bg: transparent;
    --btn-fg: var(--ink);
    --btn-hover: var(--ink);
    border-color: var(--ink);
}
.btn--outline:hover, .btn--outline:focus-visible { color: #fff; }

.btn--light {
    --btn-bg: var(--surface);
    --btn-fg: var(--ink);
    --btn-hover: var(--tint);
}
.btn--ghost-light {
    --btn-bg: transparent;
    --btn-fg: var(--on-navy);
    --btn-hover: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.35);
}
.btn--sm { height: 44px; padding: 0 20px; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: 0.7; pointer-events: none; }
.btn.is-loading .btn__label { visibility: hidden; }
.btn.is-loading::after {
    content: "";
    position: absolute;
    width: 20px; height: 20px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent);
}
.link-arrow i { transition: transform 0.3s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Navigazione ---------- */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(251, 252, 253, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    z-index: 100;
}
.nav__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nav__logo img { height: 58px; width: auto; }
@media (max-width: 560px) { .nav__logo img { height: 46px; } }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
    position: relative;
    padding: 10px 14px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    transition: color 0.2s;
}
.nav__links a::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 4px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--accent-ink); }
.nav__right { display: flex; align-items: center; gap: 20px; }
.nav__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
}
.nav__phone i { color: var(--accent); font-size: 1.15rem; }
.nav__burger {
    display: none;
    width: 44px; height: 44px;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--ink);
}
.nav__progress {
    position: absolute;
    left: 0; bottom: -1px;
    height: 2px;
    width: 100%;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
    .nav__progress {
        animation: grow-x linear both;
        animation-timeline: scroll(root);
    }
    @keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

.nav-overlay {
    position: fixed;
    inset: 0;
    top: var(--nav-h);
    background: var(--surface);
    z-index: 99;
    padding: 32px var(--gutter) 40px;
    display: none;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}
.nav-overlay.is-open { display: flex; }
.nav-overlay a.nav-overlay__link {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.nav-overlay__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 16px; }
.nav-overlay__foot .nav__phone { font-size: 1.05rem; }

@media (max-width: 1100px) {
    .nav__links { display: none; }
    .nav__burger { display: inline-flex; }
    .nav__phone span { display: none; }
}
@media (max-width: 560px) {
    .nav__right .btn { display: none; }
}
body.nav-open { overflow: hidden; }

/* ---------- Page head (pagine interne) ---------- */

.page-head {
    padding: calc(var(--nav-h) + 56px) 0 56px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.page-head::after {
    content: "";
    position: absolute;
    right: -6vw; top: 0; bottom: 0;
    width: 32vw;
    background-color: var(--tint);
    background-image: repeating-linear-gradient(135deg, rgba(27,111,184,0.10) 0 1px, transparent 1px 12px);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; }
.page-head .lead { margin-top: 20px; }
.breadcrumb {
    display: flex; flex-wrap: wrap; gap: 8px;
    font-size: 0.85rem; color: var(--muted);
    margin-bottom: 22px;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span::before { content: "/"; margin-right: 8px; color: var(--line-strong); }

/* ---------- Hero home ---------- */

.hero {
    position: relative;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    background: var(--surface);
}
.hero__content {
    padding: calc(var(--nav-h) + 72px) 0 72px calc((100vw - var(--container)) / 2 + var(--gutter));
    padding-right: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
}
.hero__content .display-xl { font-size: clamp(2.3rem, 3.6vw, 3.4rem); max-width: 20ch; }
.hero__content .lead { margin-top: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__media {
    position: relative;
    min-height: 420px;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
    overflow: hidden;
}
.hero__media img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 70% 50%;
}
.hero__media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(16,27,38,0.18), transparent 40%);
}
@media (max-width: 1400px) {
    .hero__content { padding-left: var(--gutter); }
}
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; min-height: 0; }
    .hero__content { padding: calc(var(--nav-h) + 48px) var(--gutter) 48px; }
    .hero__media { min-height: 52vw; clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
}

/* ---------- Strips: slider ad espansione ---------- */

.strips {
    display: flex;
    gap: 6px;
    height: 560px;
}
.strip {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.7s var(--ease);
    clip-path: polygon(0 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% 100%, 0 100%);
    background: var(--navy);
}
.strip img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease), opacity 0.4s;
    opacity: 0.85;
}
.strip::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(16,27,38,0) 35%, rgba(16,27,38,0.85) 100%);
}
.strip__label {
    position: absolute;
    left: 24px; bottom: 24px; right: 24px;
    z-index: 1;
    color: #fff;
}
.strip__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    white-space: nowrap;
}
.strip__title-full { display: none; font-size: 1.35rem; }
.strip.is-active .strip__title-short, .strip:hover .strip__title-short, .strip:focus-within .strip__title-short { display: none; }
.strip.is-active .strip__title-full, .strip:hover .strip__title-full, .strip:focus-within .strip__title-full { display: inline; }
.strip__icon {
    display: inline-flex;
    width: 40px; height: 40px;
    align-items: center; justify-content: center;
    background: var(--accent);
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 14px;
}
.strip__body {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s var(--ease), opacity 0.4s 0.15s;
    color: rgba(255,255,255,0.86);
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: 40ch;
}
.strip__body .link-arrow { color: #fff; margin-top: 14px; }
.strip.is-active, .strip:hover, .strip:focus-within {
    flex: 3.2 1 0;
}
.strip.is-active img, .strip:hover img, .strip:focus-within img { opacity: 1; transform: scale(1.04); }
.strip.is-active .strip__body, .strip:hover .strip__body, .strip:focus-within .strip__body { max-height: 220px; opacity: 1; }
@media (max-width: 1100px) {
    .strips { height: 480px; }
}
@media (max-width: 768px) {
    .strips { flex-direction: column; height: auto; gap: 8px; }
    .strip { flex: none; height: 200px; }
    .strip.is-active, .strip:hover { flex: none; height: 380px; }
    .strip__title-short { display: none; }
    .strip__title-full { display: inline; }
}

/* ---------- Timeline (come funziona) ---------- */

.process {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 64px;
    align-items: start;
}
.process__sticky { position: sticky; top: calc(var(--nav-h) + 32px); }
.process__sticky .lead { margin-top: 20px; }
.process__sticky .btn { margin-top: 32px; }
.tl { display: grid; gap: 0; }
.tl-item {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 28px;
    padding: 0 0 48px;
}
.tl-item::before {
    content: "";
    position: absolute;
    left: 27px; top: 56px; bottom: 0;
    width: 2px;
    background: var(--line);
}
.tl-item:last-child::before { display: none; }
.tl-item__icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface);
    border: 1.5px solid var(--line-strong);
    color: var(--accent);
    font-size: 1.5rem;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    position: relative; z-index: 1;
}
.tl-item__title { margin-top: 12px; }
.tl-item__body { margin-top: 12px; }
.tl-item__meta {
    margin-top: 14px;
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-ink);
    background: var(--tint);
    padding: 6px 12px;
}
@media (max-width: 900px) {
    .process { grid-template-columns: 1fr; gap: 40px; }
    .process__sticky { position: static; }
}

/* ---------- Form / preventivo ---------- */

.quote {
    position: relative;
    padding: clamp(64px, 8vw, 112px) 0;
    overflow: hidden;
}
.quote::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 58%;
    background-color: var(--tint);
    background-image: repeating-linear-gradient(135deg, rgba(27,111,184,0.10) 0 1px, transparent 1px 12px);
    clip-path: polygon(0 0, 100% 0, 84% 100%, 0 100%);
}
.quote .container { position: relative; z-index: 1; }
.quote__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 56px;
    align-items: start;
}
.quote__panel {
    background: var(--surface);
    padding: clamp(28px, 3.5vw, 48px);
    box-shadow: var(--shadow-float);
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}
.quote__panel .display-md { margin-bottom: 8px; }
.quote__aside { padding-top: 24px; }
.quote__aside .display-sm { margin-bottom: 24px; }
.after-step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.after-step:last-of-type { border-bottom: 1px solid var(--line); }
.after-step i { font-size: 1.6rem; color: var(--accent); }
.after-step strong { display: block; font-family: var(--font-display); font-weight: 600; margin-bottom: 4px; }
.after-step p { color: var(--muted); font-size: 0.95rem; }
.contact-inline { margin-top: 28px; display: grid; gap: 10px; }
.contact-inline a { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; }
.contact-inline a i { color: var(--accent); font-size: 1.3rem; }
@media (max-width: 1000px) {
    .quote::before { width: 100%; clip-path: polygon(0 0, 100% 0, 100% 40%, 0 62%); }
    .quote__grid { grid-template-columns: 1fr; gap: 40px; }
}

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .form__row, .form__row--3 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
}
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    background: #fff;
    border: 1.5px solid var(--line-strong);
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.field select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234B5B6B' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.field input::placeholder, .field textarea::placeholder { color: #7A8896; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(27,111,184,0.18);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field__error { display: none; font-size: 0.8rem; color: var(--danger); }
.field.has-error .field__error { display: block; }
.field__help { font-size: 0.8rem; color: var(--muted); }
.check {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.5;
}
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.check.has-error { color: var(--danger); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-msg {
    display: none;
    padding: 14px 16px;
    font-size: 0.95rem;
    border-left: 3px solid;
}
.form-msg.is-success { display: block; background: #E6F3EA; border-color: var(--success); color: var(--success); }
.form-msg.is-error { display: block; background: #FBEAE9; border-color: var(--danger); color: var(--danger); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__foot .small { color: var(--muted); }

/* ---------- Bento catalogo ---------- */

.bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 250px;
    gap: 10px;
}
.bento__cell {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
    color: #fff;
    background: var(--navy);
    clip-path: polygon(0 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% 100%, 0 100%);
}
.bento__cell--lg { grid-column: span 2; grid-row: span 2; }
.bento__cell img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}
.bento__cell::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(16,27,38,0.05) 30%, rgba(16,27,38,0.88) 100%);
}
.bento__cell:hover img { transform: scale(1.05); }
.bento__inner { position: relative; z-index: 1; }
.bento__title { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.bento__cell--lg .bento__title { font-size: 1.75rem; }
.bento__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font-size: 0.875rem; color: rgba(255,255,255,0.82); }
.bento__price {
    position: absolute;
    top: 0; left: 0;
    z-index: 1;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 14px;
}
.bento__cell .link-arrow { color: #fff; margin-top: 14px; }
@media (max-width: 1000px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 240px; }
    .bento__cell--lg { grid-column: span 2; grid-row: span 1; min-height: 320px; }
}
@media (max-width: 600px) {
    .bento { grid-template-columns: 1fr; grid-auto-rows: minmax(260px, auto); }
    .bento__cell { padding-top: 64px; }
    .bento__cell--lg { grid-column: span 1; min-height: 380px; }
}

/* ---------- Confronto editoriale ---------- */

.compare {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
}
.compare__intro .display-lg { max-width: 14ch; }
.compare__intro .lead { margin-top: 20px; }
.args { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 36px; }
.arg { padding-top: 22px; border-top: 2px solid var(--ink); }
.arg__num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
    line-height: 1;
}
.arg h3 { margin-top: 14px; }
.arg p { margin-top: 10px; color: var(--muted); }
@media (max-width: 1000px) {
    .compare { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) { .args { grid-template-columns: 1fr; } }

/* ---------- Copertura ---------- */

.coverage {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.coverage__media { position: relative; min-height: 520px; clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%); }
.coverage__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.coverage__body { padding: clamp(48px, 6vw, 96px) clamp(24px, 5vw, 80px) clamp(48px, 6vw, 96px) 24px; }
.coverage__body .lead { margin-top: 16px; }
.hubs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.hub { padding: 18px 0 0; border-top: 2px solid var(--accent); }
.hub strong { font-family: var(--font-display); font-weight: 600; display: block; font-size: 1.05rem; }
.hub span { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.hub em { display: block; font-style: normal; font-size: 0.8rem; color: var(--accent-ink); margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 7px 12px;
    background: var(--tint);
    color: var(--accent-ink);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
}
@media (max-width: 1000px) {
    .coverage { grid-template-columns: 1fr; }
    .coverage__media { min-height: 52vw; clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%); }
    .coverage__body { padding: 40px var(--gutter) 56px; }
    .hubs { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
.faq-wrap__sticky { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq-wrap__sticky .lead { margin-top: 16px; }
.faq-wrap__sticky .link-arrow { margin-top: 24px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr 32px;
    gap: 20px;
    align-items: center;
    padding: 22px 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i {
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--line-strong);
    color: var(--accent);
    transition: transform 0.35s var(--ease), background 0.2s, color 0.2s;
}
.faq details[open] summary i { transform: rotate(45deg); background: var(--accent); color: #fff; border-color: var(--accent); }
.faq details p { padding: 0 52px 24px 0; color: var(--muted); max-width: 70ch; }
.faq-group { margin-bottom: 48px; }
.faq-group h2 { margin-bottom: 16px; }
@media (max-width: 900px) {
    .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
    .faq-wrap__sticky { position: static; }
    .faq details p { padding-right: 0; }
}

/* ---------- Testimonianze sfalsate ---------- */

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.quote-card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 32px 30px 28px;
    clip-path: polygon(0 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% 100%, 0 100%);
}
.quotes .quote-card:nth-child(2) { margin-top: 56px; }
.quotes .quote-card:nth-child(3) { margin-top: 112px; }
.quote-card__mark { font-family: var(--font-display); font-size: 3rem; line-height: 0.6; color: var(--accent); margin-bottom: 18px; font-weight: 700; }
.quote-card blockquote { margin: 0; font-size: 1.05rem; line-height: 1.55; color: var(--ink); }
.quote-card figcaption { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.quote-card figcaption strong { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 600; }
@media (max-width: 900px) {
    .quotes { grid-template-columns: 1fr; }
    .quotes .quote-card:nth-child(n) { margin-top: 0; }
}

/* ---------- Blocco navy: CTA + footer ---------- */

.navy-block { background: var(--navy); color: var(--on-navy); }
.cta-band { padding: clamp(64px, 8vw, 104px) 0; border-bottom: 1px solid rgba(255,255,255,0.10); }
.cta-band__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.cta-band .display-lg { color: #fff; max-width: 18ch; }
.cta-band .lead { color: var(--on-navy-muted); margin-top: 18px; }
.cta-band__side { display: grid; gap: 22px; justify-items: start; }
.cta-band__phone { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 2rem); color: #fff; display: inline-flex; align-items: center; gap: 14px; }
.cta-band__phone i { color: var(--accent); }
.cta-band__side .small { color: var(--on-navy-muted); }
@media (max-width: 900px) { .cta-band__grid { grid-template-columns: 1fr; } }

.footer { padding: 64px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__logo img { height: 54px; width: auto; filter: brightness(0) invert(1); opacity: 0.95; }
.footer__about { margin-top: 18px; font-size: 0.9rem; color: var(--on-navy-muted); max-width: 36ch; line-height: 1.6; }
.footer__legal-data { margin-top: 18px; font-size: 0.8rem; color: var(--on-navy-muted); line-height: 1.7; }
.footer h3 { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { font-size: 0.95rem; color: var(--on-navy-muted); transition: color 0.2s; }
.footer__links a:hover { color: #fff; }
.footer__sedi li { font-size: 0.9rem; color: var(--on-navy-muted); margin-bottom: 12px; line-height: 1.5; }
.footer__sedi strong { color: #fff; font-weight: 600; }
.footer__bottom {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.10);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
    font-size: 0.8rem; color: var(--on-navy-muted);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__bottom a:hover { color: #fff; }
@media (max-width: 1000px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Cookie banner ---------- */

.cookie {
    position: fixed;
    left: 20px; bottom: 20px;
    z-index: 200;
    width: min(440px, calc(100vw - 40px));
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-float);
    padding: 24px;
    clip-path: polygon(0 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% 100%, 0 100%);
    display: none;
}
.cookie.is-visible { display: block; }
.cookie h2 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.cookie p { font-size: 0.875rem; color: var(--muted); line-height: 1.55; }
.cookie p a { color: var(--accent); text-decoration: underline; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cookie__prefs { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.cookie.show-prefs .cookie__prefs { display: block; }
.cookie__pref { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; font-size: 0.875rem; }
.cookie__pref span small { display: block; color: var(--muted); font-size: 0.78rem; }
.cookie__pref input { width: 20px; height: 20px; accent-color: var(--accent); }
.cookie .btn--text { font-size: 0.85rem; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; align-self: center; }

/* ---------- WhatsApp float ---------- */

.wa-float {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 150;
    width: 56px; height: 56px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #25A05A;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 12px 30px rgba(16,27,38,0.20);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    transition: transform 0.25s var(--ease);
}
.wa-float:hover { transform: translateY(-3px); }

/* ---------- Catalogo: categorie e spec cards ---------- */

.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.cat-nav a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cat-nav a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.category { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.category__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.category__head--flip .category__media { order: 2; }
.category__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.category__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.category__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 20px; font-size: 0.9rem; color: var(--muted); }
.category__facts strong { color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.category__text { margin-top: 22px; }
.included { margin-top: 24px; display: grid; gap: 8px; }
.included li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 0.95rem; color: var(--muted); }
.included li i { color: var(--accent); font-size: 1.2rem; line-height: 1.4; }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.spec-card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 26px 26px 22px;
    display: grid;
    gap: 16px;
    clip-path: polygon(0 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% 100%, 0 100%);
}
.spec-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.spec-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; line-height: 1.25; }
.spec-card__power { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--accent); letter-spacing: -0.02em; white-space: nowrap; }
.spec-card__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; font-size: 0.875rem; }
.spec-card__list div span { display: block; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.spec-card__prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: 14px; }
.spec-card__prices div span { display: block; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.spec-card__prices div strong { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
@media (max-width: 900px) {
    .category__head { grid-template-columns: 1fr; }
    .category__head--flip .category__media { order: 0; }
    .spec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .spec-card__list { grid-template-columns: 1fr; } }

/* ---------- Settori ---------- */

.sector { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.sector__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.sector__grid--flip .sector__media { order: 2; }
.sector__media { position: relative; aspect-ratio: 3 / 4; max-height: 560px; overflow: hidden; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.sector__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sector__body .display-md { margin-top: 8px; }
.sector__body .prose { margin-top: 20px; }
.sector__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.sector__points li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 0.95rem; font-weight: 500; }
.sector__points li i { color: var(--accent); font-size: 1.2rem; }
.sector--band { background: var(--navy); color: var(--on-navy); border-top: 0; }
.sector--band .display-md { color: #fff; }
.sector--band .prose p { color: var(--on-navy-muted); }
.sector--band .sector__points li { color: #fff; }
.sector--band .sector__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; }
.sector__icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-size: 1.4rem; margin-bottom: 18px; }
@media (max-width: 900px) {
    .sector__grid, .sector--band .sector__grid { grid-template-columns: 1fr; gap: 32px; }
    .sector__grid--flip .sector__media { order: 0; }
    .sector__media { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) { .sector__points { grid-template-columns: 1fr; } }

/* ---------- Pagine legali ---------- */

.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 2px; border-left: 2px solid var(--line); }
.legal-toc__title { font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0 0 12px 18px; }
.legal-toc a { padding: 7px 18px; font-size: 0.875rem; color: var(--muted); margin-left: -2px; border-left: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.legal-toc a:hover { color: var(--accent); border-left-color: var(--accent); }
.legal-content { max-width: 760px; }
.legal-content h2 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; scroll-margin-top: calc(var(--nav-h) + 24px); }
.legal-content h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1em 0 1.5em; }
.legal-content th, .legal-content td { text-align: left; padding: 10px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal-content th { font-family: var(--font-display); font-weight: 600; color: var(--ink); background: var(--tint-2); }
.legal-content td { color: var(--muted); }
.legal-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 32px; }
.table-scroll { overflow-x: auto; }
@media (max-width: 900px) {
    .legal-layout { grid-template-columns: 1fr; gap: 32px; }
    .legal-toc { position: static; }
}

/* ---------- Chi siamo ---------- */

.story { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.story__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.story__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__media--offset { margin-top: 64px; }
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.member { background: var(--surface); border: 1px solid var(--line); padding: 26px 24px 24px; clip-path: polygon(0 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% 100%, 0 100%); }
.member__initials { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; background: var(--tint); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-bottom: 18px; }
.member strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.member span { display: block; font-size: 0.85rem; color: var(--accent-ink); margin: 4px 0 12px; }
.member p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.fact { padding: 28px 24px 28px 0; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact + .fact { padding-left: 24px; }
.fact strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2rem; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.fact span { display: block; margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.value { border-top: 2px solid var(--ink); padding-top: 20px; }
.value i { font-size: 1.8rem; color: var(--accent); }
.value h3 { margin-top: 14px; }
.value p { margin-top: 10px; color: var(--muted); }
@media (max-width: 1000px) {
    .story { grid-template-columns: 1fr; gap: 32px; }
    .story__media--offset { margin-top: 0; }
    .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fact:nth-child(2) { border-right: 0; }
    .fact:nth-child(3) { padding-left: 0; border-top: 1px solid var(--line); }
    .fact:nth-child(4) { border-top: 1px solid var(--line); }
    .values { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
    .team, .facts { grid-template-columns: 1fr; }
    .fact { border-right: 0; padding-left: 0 !important; }
    .fact + .fact { border-top: 1px solid var(--line); }
}

/* ---------- Contatti ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
.contact-card { border-top: 2px solid var(--ink); padding: 22px 0 26px; }
.contact-card h3 { display: flex; align-items: center; gap: 10px; }
.contact-card h3 i { color: var(--accent); }
.contact-card p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.contact-card a.strong { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.contact-card a.strong:hover { color: var(--accent); }
.map-embed { margin-top: 0; aspect-ratio: 16 / 9; width: 100%; border: 0; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); filter: saturate(0.85); }
.sedi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sede { background: var(--surface); border: 1px solid var(--line); padding: 28px 26px; clip-path: polygon(0 0, calc(100% - var(--ch)) 0, 100% var(--ch), 100% 100%, 0 100%); }
.sede__label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.sede h3 { margin-top: 8px; }
.sede address { margin-top: 12px; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.sede address a { color: var(--ink); font-weight: 500; }
.sede address a:hover { color: var(--accent); }
.sede__ref { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.sede__ref strong { color: var(--ink); font-weight: 600; }
@media (max-width: 1000px) {
    .contact-grid { grid-template-columns: 1fr; }
    .sedi-grid { grid-template-columns: 1fr; }
}

/* ---------- Come funziona: fasce ---------- */

.phase { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.phase:last-child { border-bottom: 1px solid var(--line); }
.phase__icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: var(--tint); color: var(--accent-ink); font-size: 1.8rem; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.phase__body .prose { margin-top: 12px; }
.phase__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin-top: 20px; }
.phase__grid div strong { display: block; font-family: var(--font-display); font-weight: 600; margin-bottom: 4px; }
.phase__grid div p { color: var(--muted); font-size: 0.95rem; }
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.split__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.checklist { display: grid; gap: 12px; margin-top: 24px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--muted); }
.checklist li i { color: var(--accent); font-size: 1.3rem; }
.checklist li strong { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
    .phase { grid-template-columns: 1fr; gap: 16px; }
    .phase__grid { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- 404 ---------- */

.err { min-height: 70vh; display: grid; place-items: center; text-align: left; padding: calc(var(--nav-h) + 48px) 0 64px; }
.err .display-xl { color: var(--accent); }
