/* =============================================================================
   FORNITURA-TERMINI.CSS — stili della pagina Condizioni di Fornitura
   -----------------------------------------------------------------------------
   Caricato SOLO da pages/fornitura-termini.html, dopo css/main.min.css.
   Non fa parte di main.min.css (vedi build-css.sh): resta un foglio a se',
   come sito-attivo.css e analisi-economica.css.

   NOTA: il :root qui sotto ridefinisce alcune variabili del design system con
   valori diversi da css/variables.css (--bg2, --muted, --border) e introduce
   nomi non standard (--text invece di --white, --accent-dim invece di
   --accent-d). E' il motivo per cui questo foglio NON puo' finire in un file
   condiviso: riallineare la pagina al design system e' un lavoro a parte.
   ============================================================================= */

:root {
    --bg: #111008;
    --bg2: #181510;
    --accent: #e8a227;
    --accent-dim: rgba(232, 162, 39, 0.12);
    --text: #e8e4d9;
    --muted: #7a7567;
    --border: rgba(232, 162, 39, 0.18);
    --gap: 1px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* MARQUEE */
.marquee-strip {
    background: var(--accent);
    color: var(--bg);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 10;
}

.marquee-inner {
    display: inline-block;
    animation: marquee 24s linear infinite;
}

.marquee-inner span {
    margin: 0 40px;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* HEADER */
header {
    position: relative;
    z-index: 10;
    border-bottom: var(--gap) solid var(--border);
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
}

.logo span {
    color: var(--accent);
}

.header-badge {
    font-family: 'Courier Prime', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* HERO */
.hero {
    position: relative;
    z-index: 5;
    padding: 80px 40px 60px;
    border-bottom: var(--gap) solid var(--border);
}

.hero-label {
    font-family: 'Courier Prime', monospace;
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-label::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.hero h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(52px, 8vw, 96px);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
    display: block;
}

.hero-intro {
    max-width: 560px;
    font-weight: 300;
    font-size: 17px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero-meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.meta-item {
    font-family: 'Courier Prime', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.meta-item strong {
    display: block;
    color: var(--text);
    font-size: 13px;
    margin-top: 2px;
}

/* IN BREVE */
.inbreve {
    position: relative;
    z-index: 5;
    margin: 0;
    padding: 48px 40px;
    border-bottom: var(--gap) solid var(--border);
    background: var(--accent-dim);
}

.inbreve-label {
    font-family: 'Courier Prime', monospace;
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.inbreve-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--gap);
    background: var(--border);
}

.inbreve-item {
    background: var(--bg);
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 300;
    position: relative;
    overflow: hidden;
}

.inbreve-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.25s ease;
}

.inbreve-item:hover::before {
    transform: scaleY(1);
}

.inbreve-item .check {
    color: var(--accent);
    font-family: 'Courier Prime', monospace;
    font-size: 12px;
    margin-right: 8px;
}

/* LAYOUT */
.page-layout {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    border-bottom: var(--gap) solid var(--border);
}

/* SIDEBAR */
.sidebar {
    border-right: var(--gap) solid var(--border);
    padding: 40px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-title {
    font-family: 'Courier Prime', monospace;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0 24px 16px;
    border-bottom: var(--gap) solid var(--border);
    margin-bottom: 8px;
}

.nav-item {
    display: block;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.2s;
    line-height: 1.4;
}

.nav-item:hover, .nav-item.active {
    color: var(--text);
    border-left-color: var(--accent);
    background: var(--accent-dim);
}

.nav-item .num {
    font-family: 'Courier Prime', monospace;
    font-size: 10px;
    color: var(--accent);
    margin-right: 8px;
}

/* CONTENT */
.content {
    padding: 60px 56px;
    max-width: 800px;
}

.section {
    margin-bottom: 72px;
    padding-bottom: 72px;
    border-bottom: var(--gap) solid var(--border);
}

.section:last-child {
    border-bottom: none;
}

.section-num {
    font-family: 'Courier Prime', monospace;
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-num::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 36px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1;
    margin-bottom: 28px;
    color: var(--text);
}

.section h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin: 32px 0 12px;
}

.section p {
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 16px;
    font-size: 15.5px;
}

.section p strong {
    color: var(--text);
    font-weight: 500;
}

.section ul {
    list-style: none;
    margin: 16px 0;
}

.section ul li {
    padding: 8px 0 8px 20px;
    position: relative;
    color: var(--muted);
    font-weight: 300;
    font-size: 15px;
    border-bottom: var(--gap) solid rgba(232, 162, 39, 0.07);
}

.section ul li:last-child {
    border-bottom: none;
}

.section ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: 'Courier Prime', monospace;
}

/* HIGHLIGHT */
.highlight {
    border-left: 3px solid var(--accent);
    padding: 16px 20px;
    background: var(--accent-dim);
    margin: 24px 0;
    font-size: 14.5px;
    color: var(--text);
    font-style: italic;
    line-height: 1.7;
}

/* PRICING */
.pricing-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 14px 0;
    border-bottom: var(--gap) solid var(--border);
    gap: 16px;
}

.pricing-row:last-child {
    border-bottom: none;
}

.pricing-label {
    font-size: 15px;
    color: var(--muted);
    font-weight: 300;
}

.pricing-val {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--accent);
    white-space: nowrap;
}

/* PIANO CARDS */
.piano-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gap);
    background: var(--border);
    margin: 24px 0;
}

.piano-card {
    background: var(--bg2);
    padding: 28px 20px;
    position: relative;
    transition: background 0.2s;
}

.piano-card:hover {
    background: var(--accent-dim);
}

.piano-card.featured {
    background: var(--accent-dim);
}

.piano-name {
    font-family: 'Courier Prime', monospace;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.piano-prezzo {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 42px;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 4px;
}

.piano-note {
    font-family: 'Courier Prime', monospace;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.piano-consegna {
    font-size: 13px;
    color: var(--muted);
    font-weight: 300;
}

/* FAQ */
.faq-section {
    position: relative;
    z-index: 5;
    padding: 80px 40px;
    border-top: var(--gap) solid var(--border);
    background: var(--bg2);
}

.faq-label {
    font-family: 'Courier Prime', monospace;
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.faq-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(36px, 5vw, 64px);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 56px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--gap);
    background: var(--border);
}

.faq-item {
    background: var(--bg);
    padding: 32px 28px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.faq-item:hover {
    background: var(--accent-dim);
}

.faq-q {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text);
    margin-bottom: 12px;
    padding-right: 32px;
    line-height: 1.2;
}

.faq-icon {
    position: absolute;
    top: 32px;
    right: 28px;
    color: var(--accent);
    font-family: 'Courier Prime', monospace;
    font-size: 18px;
    transition: transform 0.2s;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-a {
    font-size: 14.5px;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.75;
    display: none;
    margin-top: 8px;
    border-top: var(--gap) solid var(--border);
    padding-top: 16px;
}

.faq-item.open .faq-a {
    display: block;
}

/* CTA */
.cta-section {
    position: relative;
    z-index: 5;
    padding: 80px 40px;
    border-top: var(--gap) solid var(--border);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
}

.cta-text h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: clamp(32px, 4vw, 52px);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 12px;
}

.cta-text p {
    color: var(--muted);
    font-weight: 300;
    font-size: 15px;
}

.btn {
    display: inline-block;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 16px 36px;
    text-decoration: none;
    background: var(--accent);
    color: var(--bg);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn:hover {
    background: var(--text);
    color: var(--bg);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    margin-left: 12px;
}

.btn-ghost:hover {
    background: var(--accent);
    color: var(--bg);
}

/* FOOTER */
footer {
    position: relative;
    z-index: 5;
    border-top: var(--gap) solid var(--border);
    padding: 32px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
}

.footer-brand span {
    color: var(--accent);
}

.footer-info {
    font-family: 'Courier Prime', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-align: right;
}

/* SCROLL PROGRESS */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--accent);
    z-index: 100;
    width: 0%;
    transition: width 0.1s;
}

/* BACK TO TOP */
.back-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    cursor: pointer;
    font-family: 'Courier Prime', monospace;
    font-size: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: background 0.2s;
}

.back-top:hover {
    background: var(--text);
}
.back-top.visible {
    display: flex;
}

/* MOBILE */
@media (max-width: 900px) {
    .page-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none;
    }
    .content {
        padding: 40px 24px;
    }
    header {
        padding: 16px 24px;
    }
    .hero {
        padding: 56px 24px 40px;
    }
    .inbreve {
        padding: 40px 24px;
    }
    .piano-grid {
        grid-template-columns: 1fr;
    }
    .faq-section {
        padding: 56px 24px;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .cta-section {
        grid-template-columns: 1fr;
        padding: 56px 24px;
    }
    footer {
        padding: 24px;
        flex-direction: column;
        text-align: center;
    }
    .footer-info {
        text-align: center;
    }
    .hero-meta {
        gap: 20px;
    }
}

/* ── ECCEZIONE CONSEGNA DISCLAIMER ───────────────────────────────────────────
   .consegna-disclaimer (css/components.css) vale 11px, ma .section p qui sopra
   e' piu' specifico (0,1,1 contro 0,1,0) e vincerebbe con i suoi 15.5px.
   Il disclaimer va letto come nota di servizio, in coppia con .piano-note
   che e' a 10px: serve riportarlo alla sua misura.
   -------------------------------------------------------------------------- */
.section p.consegna-disclaimer {
    font-size: 11px;
}
