/* ============================================================
   TrovaPavimenti 2026 — design system
   Palette: carta + inchiostro + giallo (continuità col marchio storico)
   Font: Inter Tight self-hosted (variabile 300-600) — nessuna chiamata a Google.
   ============================================================ */
@font-face {
    font-family: 'Inter Tight';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('/fonts/inter-tight-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter Tight';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('/fonts/inter-tight-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --ink: #111111;
    --ink-soft: #2A2A2A;
    --muted: #6F6C67;
    --paper: #FFFFFF;
    --paper-2: #F4F3F1;
    --line: #E7E5E2;
    --accent: #FFD400;
    --max: 1400px;
    --gutter: 24px;
    --font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
p {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    transition: top 0.15s ease;
}

.skip-link:focus-visible {
    top: 12px;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

/* Menu mobile: sotto i 900px il menu orizzontale sparisce e serve un accesso esplicito. */
.mobile-nav {
    display: none;
}

.mobile-nav>summary {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    list-style: none;
}

.mobile-nav>summary::-webkit-details-marker {
    display: none;
}

.nav-icon,
.nav-icon::before,
.nav-icon::after {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
}

.nav-icon {
    position: relative;
}

.nav-icon::before,
.nav-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-icon::before {
    top: -5px;
}

.nav-icon::after {
    top: 5px;
}

.mobile-nav nav {
    position: absolute;
    inset: 100% 0 auto 0;
    display: grid;
    gap: 0;
    padding: 4px var(--gutter) 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(17, 17, 17, 0.08);
}

.mobile-nav nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}

.mobile-nav nav a:last-child {
    border-bottom: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: var(--max);
    height: 64px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.brand-bar {
    width: 22px;
    height: 6px;
    background: var(--accent);
}

.nav {
    display: flex;
    gap: 26px;
    font-size: 0.85rem;
}

.nav a {
    color: var(--muted);
    transition: color 0.15s ease;
}

.nav a:hover {
    color: var(--ink);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}

.btn-login {
    font-size: 0.85rem;
    font-weight: 500;
}

.btn-login:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.85rem;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
    border-color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(420px, 58vh, 620px);
    overflow: hidden;
    background: var(--ink);
}

.hero-media {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.18) 0%,
            rgba(0, 0, 0, 0.08) 35%,
            rgba(0, 0, 0, 0.74) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter) clamp(36px, 5vw, 56px);
    color: #fff;
}

.hero h1 {
    max-width: 18ch;
    font-size: clamp(2.2rem, 5.4vw, 4.5rem);
    font-weight: 300;
    line-height: 0.98;
    letter-spacing: -0.045em;
    margin-bottom: clamp(22px, 3vw, 32px);
}

.hero :focus-visible {
    outline-color: #fff;
}

.hero-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(560px, 100%);
    padding: 6px 6px 6px 22px;
    background: #fff;
    border-radius: 999px;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 12px 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
}

.hero-search input::placeholder {
    color: #8B8883;
}

.hero-search button {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: var(--ink);
    cursor: pointer;
    transition: transform 0.18s ease;
}

.hero-search button:hover {
    transform: scale(1.06);
}

.hero-meta {
    margin-top: 18px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

/* ---------- Sezioni ---------- */

.materials,
.products {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(40px, 5vw, 64px) var(--gutter);
}

.products {
    padding-top: 0;
}

.section-bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.section-bar h2 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.link-arrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
}

/* ---------- Mosaico materiali ---------- */

.mosaic {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.tile {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--paper-2);
}

.tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.tile:hover img,
.tile:focus-visible img {
    transform: scale(1.05);
}

.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 58%);
    pointer-events: none;
}

.tile-label {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
    color: #fff;
}

.tile-name {
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tile-count {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.78);
    font-variant-numeric: tabular-nums;
}

/* ---------- Prodotti ---------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 18px;
}

.product {
    display: block;
}

.product-media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--paper-2);
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Le card usano <picture> (WebP + fallback JPEG): il wrapper deve riempire il box. */
.product-media picture,
.post-card-media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.product:hover .product-media img,
.product:focus-visible .product-media img {
    transform: scale(1.05);
}

.product-name {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.product-company {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
    color: var(--muted);
}

.product-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, #F4F3F1, #F4F3F1 10px, #EFEDE9 10px, #EFEDE9 20px);
}

.product-premium {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    background: var(--accent);
    color: var(--ink);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------- Elenco prodotti ---------- */

.listing {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 44px) var(--gutter) clamp(48px, 6vw, 72px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 0.75rem;
    color: var(--muted);
}

.breadcrumb a:hover {
    color: var(--ink);
}

.breadcrumb [aria-current="page"] {
    color: var(--ink);
}

/* Ricerca nella pagina elenco: stessa forma della ricerca in home, più compatta. */

.listing-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(560px, 100%);
    margin: 0 0 22px;
    padding: 4px 4px 4px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    transition: border-color 0.15s ease;
}

.listing-search:focus-within {
    border-color: var(--ink);
}

.listing-search input {
    flex: 1;
    min-width: 0;
    padding: 10px 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
}

.listing-search input::placeholder {
    color: #8B8883;
}

.listing-search button {
    flex: 0 0 auto;
    height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.listing-search button:hover {
    background: var(--accent);
    color: var(--ink);
}

/* Riga "Ricerca: … — Azzera la ricerca" */

.listing-query {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    margin: -10px 0 24px;
    font-size: 0.9rem;
    color: var(--muted);
}

.listing-query-text strong {
    color: var(--ink);
    font-weight: 600;
}

.listing-query-clear {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1px solid currentColor;
}

/* Selezione rapida delle categorie (come il FiltroTipologie del legacy) */

.category-strip {
    display: flex;
    gap: 8px;
    margin: -6px 0 24px;
    padding-bottom: 14px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-strip::-webkit-scrollbar {
    display: none;
}

.cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.8rem;
    line-height: 1;
    white-space: nowrap;
    color: var(--ink-soft);
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.cat:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.cat.is-current {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.cat-count {
    font-size: 0.68rem;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
}

.cat.is-current .cat-count {
    color: rgba(255, 255, 255, 0.66);
}

.listing-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    padding-bottom: 18px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.listing-head h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.04em;
}

.listing-count {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.empty {
    padding: 64px 0;
    color: var(--muted);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
    font-size: 0.85rem;
}

.page,
.page-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.page:hover,
.page-arrow:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.page.is-current {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.page-gap {
    padding: 0 4px;
    color: var(--muted);
}

@media (max-width: 700px) {
    .listing-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pagination {
        margin-top: 36px;
    }
}

/* ---------- Faccette ---------- */

.listing-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 3vw, 44px);
    align-items: start;
}

.listing-layout.has-facets {
    grid-template-columns: 236px minmax(0, 1fr);
}

.listing-content {
    min-width: 0;
}

.facets {
    font-size: 0.85rem;
}

.facets-wrap {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 108px);
    padding-right: 2px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.facets>.facets-summary {
    display: none;
}

.facets-body {
    min-width: 0;
}

.facets-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.facets-head h2 {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.facets-clear {
    font-size: 0.72rem;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.facets-clear:hover {
    color: var(--ink);
}

.facet-group {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.facet-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    list-style: none;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
}

.facet-group summary::-webkit-details-marker {
    display: none;
}

.facet-group summary::after {
    content: "+";
    font-weight: 400;
    color: var(--muted);
}

.facet-group[open] summary::after {
    content: "–";
}

0 .facet-list {
    display: grid;
    gap: 1px;
    max-height: 280px;
    margin: 10px 0 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
    scrollbar-width: thin;
}

.facet {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    color: var(--ink-soft);
}

.facet:hover {
    color: var(--ink);
}

.facet-box {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    border: 1px solid var(--line);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.facet:hover .facet-box {
    border-color: var(--ink);
}

.facet.is-on {
    font-weight: 500;
    color: var(--ink);
}

.facet.is-on .facet-box {
    background: var(--ink);
    border-color: var(--ink);
}

.facet-name {
    flex: 1;
    min-width: 0;
}

.facet-count {
    font-size: 0.72rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

/* ---------- Fascia CTA ---------- */

.band {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.band-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(48px, 6vw, 80px) var(--gutter);
    color: #fff;
}

.band h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.btn-yellow {
    display: inline-flex;
    align-items: center;
    height: 50px;
    padding: 0 26px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--accent);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: transform 0.18s ease;
}

.btn-yellow:hover {
    transform: translateY(-2px);
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--ink);
    color: #A9A7A3;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 32px;
    max-width: var(--max);
    margin: 0 auto;
    padding: 56px var(--gutter) 48px;
    font-size: 0.84rem;
}

.footer-inner h3 {
    margin-bottom: 14px;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer-inner nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-inner nav a {
    color: #A9A7A3;
    transition: color 0.15s ease;
}

.footer-inner nav a:hover {
    color: #fff;
}

.brand--light .brand-name {
    color: #fff;
}

.footer-note {
    margin-top: 12px;
    font-size: 0.78rem;
    line-height: 1.7;
    color: #85827D;
}

.footer-social {
    display: inline-block;
    margin-top: 16px;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #A9A7A3;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-social:hover {
    color: #fff;
    border-color: var(--accent);
}

.footer-bottom {
    max-width: var(--max);
    margin: 0 auto;
    padding: 18px var(--gutter) 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    color: #85827D;
}

.footer-credit {
    margin: 0;
}

.footer-credit a {
    padding-bottom: 1px;
    border-bottom: 1px solid transparent;
    color: #A9A7A3;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.footer-credit a:hover {
    color: #fff;
    border-color: var(--accent);
}

/* ---------- Elenco aziende ---------- */

.aziende-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.az-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--line);
    transition: border-color 0.15s ease;
}

.az-card:hover,
.az-card:focus-visible {
    border-color: var(--ink);
}

.az-logo {
    display: grid;
    place-items: center;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    overflow: hidden;
    background: var(--paper-2);
}

.az-logo img {
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain;
}

.az-monogram {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--muted);
}

.az-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.az-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.az-meta {
    font-size: 0.72rem;
    color: var(--muted);
}

.az-card .product-premium {
    top: 8px;
    right: 8px;
    left: auto;
}

/* ---------- Scheda prodotto ---------- */

.pdp {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 44px) var(--gutter) clamp(56px, 7vw, 88px);
}

.pdp-grid,
.pdp-body {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}

.pdp-body {
    margin-top: clamp(44px, 6vw, 72px);
}

.pdp-hero {
    position: relative;
    margin: 0;
    aspect-ratio: 3 / 2;
    max-height: 78vh;
    overflow: hidden;
    background: var(--paper-2);
}

/* L'immagine non deve mai essere ritagliata: si adatta al riquadro. */
.pdp-hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pdp-thumbs {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 6px 0 0;
    padding: 2px 2px 4px;
    list-style: none;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.pdp-thumb {
    display: block;
    flex: 0 0 auto;
    background: var(--paper-2);
    opacity: 0.72;
    outline-offset: 1px;
    transition: opacity 0.15s ease;
}

/* Anche le miniature mostrano la foto intera: ognuna conserva il proprio rapporto. */
.pdp-thumb img {
    display: block;
    width: auto;
    height: 88px;
    max-width: none;
    object-fit: contain;
}

.pdp-thumb:hover,
.pdp-thumb:focus-visible {
    opacity: 1;
}

.pdp-thumb.is-current {
    opacity: 1;
    outline: 2px solid var(--ink);
}

.pdp-info {
    position: sticky;
    top: 88px;
}

.pdp-eyebrow {
    margin-bottom: 14px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.pdp-eyebrow a:hover {
    color: var(--ink);
}

.pdp-title {
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.pdp-company {
    margin-top: 14px;
    font-size: 0.95rem;
}

.pdp-company a {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 1px;
}

.pdp-company-place {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--muted);
}

.pdp-price {
    margin-top: 26px;
}

.pdp-price-value {
    font-size: 1.65rem;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.pdp-price-note {
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
    color: var(--muted);
}

.pdp-lead {
    margin-top: 22px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

.pdp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
}

.pdp-alt {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--line, #e6e6e6);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--muted);
}

.pdp-alt a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    height: 50px;
    padding: 0 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.85rem;
    transition: border-color 0.15s ease;
}

.btn-ghost:hover {
    border-color: var(--ink);
}

.pdp-contact {
    display: grid;
    gap: 6px;
    margin: 30px 0 0;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
}

.pdp-contact>div {
    display: flex;
    gap: 12px;
}

.pdp-contact dt {
    flex: 0 0 82px;
    color: var(--muted);
}

.pdp-contact dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.pdp-contact a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pdp-description {
    max-width: 68ch;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-soft);
    white-space: pre-line;
}

.pdp-specs {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.pdp-specs h2 {
    margin-bottom: 16px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.pdp-specs dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

.spec {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    font-size: 0.85rem;
}

.spec dt {
    color: var(--muted);
}

.spec dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.spec dd a {
    border-bottom: 1px solid var(--line);
}

.spec dd a:hover {
    border-color: var(--ink);
}

.spec dd span {
    margin: 0 6px;
    color: var(--muted);
}

.pdp-premium-note {
    margin-top: 22px;
    padding: 12px 14px;
    border-left: 3px solid var(--accent);
    background: var(--paper-2);
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--muted);
}

/* ---------- Comunicati ---------- */

.comunicati-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 18px;
}

.post-card {
    display: block;
}

.post-card-media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--paper-2);
}

.post-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.post-card:hover .post-card-media img,
.post-card:focus-visible .post-card-media img {
    transform: scale(1.05);
}

.post-card-date {
    display: block;
    margin-top: 10px;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.post-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* ---------- Comunicato (dettaglio) ---------- */

.post {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 44px) var(--gutter) clamp(56px, 7vw, 88px);
}

.post-head {
    max-width: 80ch;
    margin-bottom: clamp(24px, 3vw, 36px);
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.post-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.post-eyebrow a:hover {
    color: var(--ink);
}

.post-title {
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    font-weight: 300;
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.post-author {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    font-size: 0.9rem;
}

.post-author a {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 1px;
}

.post-author-logo {
    width: 36px;
    height: 36px;
    padding: 2px;
    object-fit: contain;
    background: var(--paper-2);
}

.post-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}

.post-hero {
    margin: 0;
    aspect-ratio: 3 / 2;
    max-height: 78vh;
    overflow: hidden;
    background: var(--paper-2);
}

.post-hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.post-text {
    max-width: 68ch;
    margin-top: 28px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-soft);
    white-space: pre-line;
}

.post-aside {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.post-aside h2 {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.post-aside-place {
    margin-top: 4px;
    margin-bottom: 18px;
    font-size: 0.8rem;
    color: var(--muted);
}

.post-aside-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}

.post-aside-actions .btn-yellow,
.post-aside-actions .btn-ghost {
    justify-content: center;
}

/* ---------- Scheda azienda ---------- */

.company {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 44px) var(--gutter) clamp(56px, 7vw, 88px);
}

.company-head {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px 32px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.company-logo {
    display: grid;
    place-items: center;
    width: 140px;
    height: 140px;
    overflow: hidden;
    background: var(--paper-2);
}

.company-logo img {
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
}

.company-monogram {
    font-size: 2.4rem;
    font-weight: 300;
    letter-spacing: -0.04em;
    color: var(--muted);
}

.company-id {
    min-width: 0;
}

.company-title {
    margin-top: 8px;
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.company-place {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--muted);
}

.company-count {
    margin-top: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.company-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-premium {
    display: inline-block;
    padding: 4px 8px;
    background: var(--accent);
    color: var(--ink);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.company-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
    margin-top: clamp(32px, 4vw, 52px);
}

.company-prose {
    max-width: 70ch;
    font-size: 1rem;
    line-height: 1.68;
    color: var(--ink-soft);
    white-space: pre-line;
}

.company-section {
    margin-top: 36px;
}

.company-section h2,
.company-aside h2 {
    margin-bottom: 14px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.company-aside {
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.contact-list {
    display: grid;
    gap: 14px;
    margin: 0;
    font-size: 0.85rem;
}

.contact-list dt {
    margin-bottom: 2px;
    color: var(--muted);
}

.contact-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.contact-list a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-line {
    display: block;
}

.company-premium-note {
    margin-top: 22px;
    padding: 12px 14px;
    border-left: 3px solid var(--accent);
    background: var(--paper-2);
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--muted);
}

.company-products {
    margin-top: clamp(44px, 6vw, 72px);
}

/* ---------- Banner cookie ---------- */

.cookie-banner {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 34px rgba(17, 17, 17, 0.1);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 28px;
    max-width: var(--max);
    margin: 0 auto;
    padding: 18px var(--gutter);
}

.cookie-copy {
    flex: 1 1 420px;
    min-width: 0;
}

.cookie-title {
    margin-bottom: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.cookie-text {
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--muted);
}

.cookie-text a {
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.cookie-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.8rem;
    cursor: pointer;
}

.cookie-toggle input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--ink);
}

.cookie-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.cookie-actions .btn-ghost,
.cookie-actions .btn-yellow {
    height: 42px;
    font-size: 0.82rem;
}

/* Il banner è fisso: riserva spazio per non coprire il footer. */
body.cookie-open {
    padding-bottom: 150px;
}

@media (max-width: 700px) {
    body.cookie-open {
        padding-bottom: 270px;
    }
}

/* ---------- Area clienti ---------- */

.auth {
    max-width: 460px;
    margin: 0 auto;
    padding: clamp(40px, 7vh, 88px) var(--gutter) clamp(56px, 8vh, 96px);
}

.auth-box {
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid var(--line);
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: -0.03em;
}

.auth-lead {
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--muted);
}

.auth-error {
    margin-top: 18px;
    padding: 10px 12px;
    border-left: 3px solid #C62828;
    background: #FDF3F3;
    font-size: 0.82rem;
}

.auth-form {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.auth-field {
    display: grid;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--muted);
}

.auth-field input {
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
}

.auth-field input:focus {
    outline: 2px solid var(--ink);
    outline-offset: 1px;
}

.auth-advanced summary {
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--muted);
}

.auth-advanced[open] summary {
    margin-bottom: 10px;
}

.auth-submit {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
}

.auth-note {
    margin-top: 18px;
    font-size: 0.78rem;
    color: var(--muted);
}

.auth-note a {
    border-bottom: 1px solid var(--line);
}

.account {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 44px) var(--gutter) clamp(56px, 7vw, 88px);
}

.account-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.account-eyebrow {
    margin-bottom: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.account-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.account-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--muted);
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 26px;
}

.account-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.account-stat {
    padding: 18px;
    background: var(--paper-2);
}

.account-stat-value {
    display: block;
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.account-stat-label {
    display: block;
    margin-top: 2px;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 3vw, 44px);
    margin-top: clamp(32px, 4vw, 48px);
}

.product-grid--compact {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 14px;
}

.comunicati-grid--compact {
    grid-template-columns: 1fr;
    gap: 20px;
}

.account-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 36px;
}

.account-note {
    margin-top: 22px;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--muted);
}

.account-note a {
    border-bottom: 1px solid var(--line);
}

/* ---------- Pannello di gestione ---------- */

.panel {
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 44px) var(--gutter) clamp(56px, 7vw, 88px);
}

.panel-narrow {
    max-width: 760px;
}

.panel-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.panel-nav a {
    padding: 8px 12px;
    border: 1px solid var(--line);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.panel-nav a:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.panel-nav a[aria-current="page"] {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.alert {
    margin-top: 20px;
    padding: 12px 14px;
    border-left: 3px solid var(--line);
    font-size: 0.85rem;
    line-height: 1.55;
}

.alert--ok {
    border-color: #2E7D32;
    background: #F1F8F2;
}

.alert--ko {
    border-color: #C62828;
    background: #FDF3F3;
}

.campi {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.campi--2 {
    grid-template-columns: 1fr 1fr;
}

.campi fieldset {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
}

.campi legend {
    padding: 0 8px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.campo {
    display: grid;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--muted);
}

.campo input,
.campo select,
.campo textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.92rem;
}

.campo input,
.campo select {
    height: 44px;
}

.campo textarea {
    min-height: 116px;
    line-height: 1.55;
    resize: vertical;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
    outline: 2px solid var(--ink);
    outline-offset: 1px;
}

.campo-aiuto {
    font-size: 0.74rem;
    color: var(--muted);
}

.campo-errore {
    font-size: 0.74rem;
    color: #C62828;
}

.scelte {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.scelta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: var(--ink-soft);
}

.scelta input {
    width: 16px;
    height: 16px;
    accent-color: var(--ink);
}

.tabella {
    width: 100%;
    margin-top: 24px;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.tabella th {
    padding: 0 12px 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: left;
    color: var(--muted);
}

.tabella td {
    padding: 12px 12px 12px 0;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.tabella img {
    display: block;
    width: 64px;
    height: 48px;
    object-fit: cover;
    background: var(--paper-2);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--line);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.badge--ok {
    border-color: #2E7D32;
    color: #2E7D32;
}

.azioni {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.thumb {
    border: 1px solid var(--line);
}

.thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--paper-2);
}

.thumb-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    font-size: 0.72rem;
    color: var(--muted);
}

@media (max-width: 720px) {
    .campi--2 {
        grid-template-columns: 1fr;
    }
}

/* ---------- Pagine informative (contatti, info, privacy) ---------- */

.info-page {
    max-width: 940px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 44px) var(--gutter) clamp(56px, 7vw, 88px);
}

.info-title {
    margin-top: 12px;
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.info-mark {
    color: var(--accent);
}

.info-lead {
    max-width: 68ch;
    margin-top: 16px;
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

.info-note {
    margin-top: 28px;
    font-size: 0.85rem;
    color: var(--muted);
}

.info-note a {
    border-bottom: 1px solid var(--line);
}

.info-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.contact-card {
    padding: 22px;
    border: 1px solid var(--line);
}

.contact-card h2 {
    margin-bottom: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact-card p {
    margin-bottom: 14px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

.contact-card .contact-list {
    margin: 0;
}

.reasons {
    display: grid;
    gap: 0;
    margin: 32px 0 0;
    border-top: 1px solid var(--line);
}

.reason {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.reason dt {
    font-size: 0.95rem;
    line-height: 1.6;
}

.reason dd {
    margin: 0;
    padding-left: 14px;
    border-left: 2px solid var(--accent);
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--muted);
}

.colophon {
    margin-top: clamp(40px, 6vw, 64px);
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.colophon-title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.colophon-intro {
    max-width: 68ch;
    margin-top: 12px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

.colophon-list {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    font-size: 0.85rem;
}

.colophon-list > div {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 16px;
}

.colophon-list dt {
    flex: 0 0 170px;
    color: var(--muted);
}

.colophon-list dd {
    margin: 0;
    color: var(--ink-soft);
}

.colophon-list a {
    border-bottom: 1px solid var(--line);
}

@media (max-width: 620px) {
    .colophon-list dt {
        flex: 0 0 100%;
    }
}

.prose {
    max-width: 68ch;
    margin-top: 24px;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--ink-soft);
}

.prose p {
    margin-bottom: 16px;
}

.prose h2 {
    margin: 30px 0 10px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
}

.prose ul {
    margin: 0 0 16px;
    padding-left: 18px;
}

.prose li {
    margin-bottom: 6px;
}

.prose a {
    border-bottom: 1px solid var(--line);
}

.prose strong {
    color: var(--ink);
    font-weight: 600;
}

/* Dati societari (Chi siamo) */
.legal-data {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
    padding: 18px 20px;
    background: var(--paper-2);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.legal-data > div {
    display: grid;
    grid-template-columns: minmax(140px, 190px) 1fr;
    gap: 4px 16px;
}

.legal-data dt {
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.legal-data dd {
    margin: 0;
    color: var(--ink);
}

.nowrap {
    white-space: nowrap;
}

@media (max-width: 620px) {
    .legal-data > div {
        grid-template-columns: 1fr;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .mosaic {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .aziende-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .comunicati-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .nav {
        display: none;
    }

    .mobile-nav {
        display: block;
        margin-left: auto;
    }

    .header-actions .btn-login,
    .header-actions .btn-outline {
        display: none;
    }

    /* I filtri occupavano l'intera prima schermata: ora sono un pannello richiudibile. */
    .facets-wrap {
        position: static;
        max-height: none;
        overflow: visible;
        margin-bottom: 18px;
    }

    .facets {
        border: 1px solid var(--line);
    }

    .facets>.facets-summary {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 16px;
        cursor: pointer;
        list-style: none;
        font-size: 0.78rem;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .facets>.facets-summary::-webkit-details-marker {
        display: none;
    }

    .facets[open]>.facets-summary {
        border-bottom: 1px solid var(--line);
    }

    .facets-summary::after {
        content: "+";
        font-weight: 400;
        color: var(--muted);
    }

    .facets[open] .facets-summary::after {
        content: "–";
    }

    .facets-badge {
        padding: 2px 8px;
        border-radius: 999px;
        background: var(--accent);
        font-size: 0.65rem;
        letter-spacing: 0.06em;
    }

    .facets-body {
        padding: 0 16px 14px;
    }

    .facets-head {
        margin: 0;
        padding: 10px 0 0;
        border-bottom: 0;
        justify-content: flex-end;
    }

    .facets-head h2 {
        display: none;
    }

    .pdp-grid,
    .pdp-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .pdp-body {
        margin-top: 36px;
    }

    .pdp-info {
        position: static;
    }

    .company-head {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .company-logo {
        width: 96px;
        height: 96px;
    }

    .company-actions {
        grid-column: 1 / -1;
    }

    .company-grid {
        grid-template-columns: 1fr;
    }

    .listing-layout.has-facets {
        grid-template-columns: 1fr;
    }

    .facets {
        position: static;
    }

    .post-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .account-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    :root {
        --gutter: 18px;
    }

    .header-inner {
        height: 58px;
        gap: 16px;
    }

    .btn-outline {
        display: none;
    }

    .hero {
        min-height: 74vh;
    }

    .hero h1 {
        max-width: 12ch;
    }

    .mosaic {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }

    .tile-name {
        font-size: 0.8rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px 10px;
    }

    .aziende-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comunicati-grid {
        grid-template-columns: 1fr;
    }

    .band-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .pdp-thumb img {
        height: 76px;
    }

    .pdp-contact>div {
        flex-direction: column;
        gap: 0;
    }

    .company-head {
        grid-template-columns: 1fr;
    }

    .company-logo {
        width: 84px;
        height: 84px;
    }

    .account-stats {
        grid-template-columns: 1fr;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .reason {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ---------- Richiesta preventivo (/richiesta) ---------- */

.quote-page {
    max-width: 1100px;
}

.quote-head {
    max-width: 62ch;
}

.quote-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
    color: var(--muted);
}

.quote-steps li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.quote-steps li + li::before {
    content: "";
    width: 22px;
    height: 1px;
    margin-right: 4px;
    background: var(--line);
}

.quote-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
}

.quote-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 10px;
    max-width: 720px;
    margin-top: 28px;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--paper-2);
    font-size: 0.9rem;
}

.quote-context-label {
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.quote-context-company {
    color: var(--muted);
}

.quote-context a {
    margin-left: auto;
    font-size: 0.76rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.quote-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 316px;
    gap: 36px;
    margin-top: 34px;
    align-items: start;
}

.quote-form {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.quote-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.q-section {
    margin: 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.q-section legend {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
}

.q-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
}

.q-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
    margin-top: 14px;
}

.q-field--wide {
    grid-column: 1 / -1;
}

.q-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.q-field > label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.q-optional {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
}

.q-required {
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
}

.q-field input,
.q-field select,
.q-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.q-field input,
.q-field select {
    height: 48px;
}

.q-field textarea {
    min-height: 116px;
    line-height: 1.55;
    resize: vertical;
}

.q-field input::placeholder,
.q-field textarea::placeholder {
    color: #A9A7A3;
}

.q-field input:focus,
.q-field select:focus,
.q-field textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.45);
}

.q-hint {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--muted);
}

.q-error {
    font-size: 0.75rem;
    font-weight: 500;
    color: #C62828;
}

.q-error:empty {
    display: none;
}

.q-suffix {
    position: relative;
}

.q-suffix input {
    padding-right: 46px;
}

.q-suffix span {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: var(--muted);
    pointer-events: none;
}

.q-field .q-file {
    height: auto;
    padding: 10px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: var(--paper-2);
    cursor: pointer;
}

.q-field .q-file:hover {
    border-color: var(--ink);
}

.q-file::file-selector-button {
    margin-right: 14px;
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

/* Controllo file personalizzato: l'input nativo resta accessibile da tastiera,
   il pulsante e il nome del file sono nostri (testo in italiano). */
.q-file-wrap {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 10px 12px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: var(--paper-2);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.q-file-wrap:hover,
.q-file-wrap:focus-within {
    border-color: var(--ink);
    background: #fff;
}

.q-file-wrap .q-file {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

.q-file-button {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.q-file-wrap:hover .q-file-button {
    transform: translateY(-1px);
}

.q-file-wrap:focus-within .q-file-button {
    box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.55);
}

.q-file-name {
    font-size: 0.8rem;
    color: var(--muted);
}

.q-file-name[data-pieno="true"] {
    color: var(--ink);
    font-weight: 500;
}

.q-choices {
    display: grid;
    gap: 12px;
}

.q-choice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.q-choice:hover {
    border-color: var(--ink);
}

.q-choice input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: var(--ink);
    cursor: pointer;
}

.q-choice span {
    display: grid;
    gap: 3px;
    font-size: 0.86rem;
    line-height: 1.5;
}

.q-choice strong {
    font-weight: 600;
}

.q-choice em {
    font-style: normal;
    font-size: 0.78rem;
    color: var(--muted);
}

.q-choice em a {
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.q-submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 24px;
    margin-top: 4px;
}

.q-submit .btn-yellow {
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.q-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.76rem;
    color: var(--muted);
}

.q-trust li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.q-trust li::before {
    content: "✓";
    font-weight: 700;
    color: var(--ink);
}

.quote-aside {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 92px;
}

.q-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.q-card--soft {
    background: var(--paper-2);
    border-color: transparent;
}

.q-card h2 {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

.q-flow {
    display: grid;
    gap: 16px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: flusso;
}

.q-flow li {
    position: relative;
    display: grid;
    gap: 3px;
    padding-left: 30px;
    font-size: 0.84rem;
    line-height: 1.5;
}

.q-flow li::before {
    counter-increment: flusso;
    content: counter(flusso);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 0.66rem;
    color: var(--muted);
}

.q-flow strong {
    font-weight: 600;
}

.q-flow span {
    color: var(--muted);
}

.q-card p {
    margin-top: 12px;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--muted);
}

.q-card-mail {
    font-size: 0.78rem !important;
}

.q-card-mail a {
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

/* ---------- Esito e conferma della richiesta ---------- */

.confirm-card {
    max-width: 620px;
    margin-top: 30px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.confirm-lead {
    font-size: 1.06rem;
    line-height: 1.45;
    letter-spacing: -0.02em;
}

.confirm-aziende {
    margin: 10px 0 0;
    padding-left: 18px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink);
}

.confirm-aziende li {
    margin-bottom: 2px;
}

.confirm-text {
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

.confirm-text a {
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.confirm-list {
    display: grid;
    margin: 0;
}

.confirm-list > div {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
}

.confirm-list > div:last-child {
    border-bottom: 0;
}

.confirm-list dt {
    color: var(--muted);
}

.confirm-list dd {
    margin: 0;
    text-align: right;
    font-weight: 500;
}

.confirm-steps {
    display: grid;
    gap: 18px;
    margin: 0 0 6px;
    padding: 0;
    list-style: none;
    counter-reset: esito;
}

.confirm-steps li {
    position: relative;
    display: grid;
    gap: 3px;
    padding-left: 34px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.confirm-steps li::before {
    counter-increment: esito;
    content: counter(esito);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--ink);
}

.confirm-steps strong {
    font-weight: 600;
}

.confirm-steps span {
    color: var(--muted);
    font-size: 0.84rem;
}

.confirm-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 22px;
    margin-top: 24px;
}

.confirm-actions .btn-yellow {
    border: 0;
    font-family: inherit;
    cursor: pointer;
}

.confirm-note {
    max-width: 62ch;
    margin-top: 22px;
    font-size: 0.8rem;
    line-height: 1.55;
    color: var(--muted);
}

@media (max-width: 560px) {
    .confirm-card {
        padding: 22px 18px;
    }

    .confirm-list > div {
        flex-direction: column;
        gap: 2px;
    }

    .confirm-list dd {
        text-align: left;
    }

    .confirm-actions .btn-yellow {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .quote-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .quote-aside {
        position: static;
    }
}

@media (max-width: 720px) {
    .q-grid {
        grid-template-columns: 1fr;
    }

    .q-section {
        padding: 20px 18px;
    }

    .q-submit .btn-yellow {
        width: 100%;
        justify-content: center;
    }
}
