/*
 * LA RIPARERIA — site.css
 * Copyright (c) 2026 Noccioli Carlo — Noccioli Tecnologie Srl.
 * Tutti i diritti riservati.
 * File CSS documentato e indentato; selettori e dichiarazioni invariati.
 */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root {
    --ink: #171a19;
    --paper: #f6f5f1;
    --soft: #eaeae4;
    --line: #d5d7d0;
    --accent: #426c5a;
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans',Arial,sans-serif;
    line-height: 1.6;
}
a {
    color: inherit;
}
button {
    font: inherit;
}
.wrap {
    width: min(1180px,calc(100% - 56px));
    margin: auto;
}
.top {
    min-height: 94px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
}
.brand {
    text-decoration: none;
    font-family: Manrope,sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -.9px;
    line-height: 1;
}
.brand span {
    display: block;
    font-weight: 500;
    letter-spacing: 3.2px;
    font-size: 12px;
    margin-top: 5px;
}
.brand small {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--accent);
}
nav {
    display: flex;
    gap: 32px;
}
nav a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
nav a:hover,.brand-note a:hover {
    color: var(--accent);
}
.hero {
    padding: 105px 0 42px;
}
.eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 800;
    color: var(--accent);
}
.dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 10px;
}
.hero h1,h2 {
    font-family: Manrope,Arial,sans-serif;
    letter-spacing: -.065em;
    line-height: 1.13;
    font-weight: 800;
}
.hero h1 {
    font-size: clamp(52px,8vw,112px);
    margin: 28px 0;
}
.hero h1 em,h2 em {
    font-style: normal;
    color: var(--accent);
}
.lead {
    font-size: clamp(18px,2.3vw,24px);
    max-width: 630px;
    color: #535b55;
}
.actions,.contact-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 32px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 14px 22px;
    border: 1px solid var(--ink);
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s,background .2s;
}
.btn:hover {
    transform: translateY(-2px);
}
.primary {
    background: var(--ink);
    color: white;
}
.secondary {
    background: transparent;
    color: var(--ink);
}
.hero-bottom {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    margin-top: 105px;
    padding-top: 22px;
    color: #788079;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 800;
}
.section {
    padding: 100px 0;
}
.muted {
    background: var(--soft);
}
.section-heading {
    max-width: 780px;
    margin-bottom: 45px;
}
.section-heading h2,.manifesto h2,.contact h2 {
    font-size: clamp(39px,5.5vw,72px);
    margin: 16px 0 22px;
}
.section-heading>p:last-child,.manifesto>p:not(.eyebrow),.contact>p:not(.eyebrow) {
    font-size: 18px;
    color: #555e57;
    max-width: 670px;
}
.cards {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 12px;
}
.service {
    background: var(--paper);
    padding: 27px;
    min-height: 315px;
    display: flex;
    flex-direction: column;
}
.num {
    font-size: 12px;
    color: #7c857e;
}
.symbol {
    font-size: 36px;
    color: var(--accent);
    margin: 18px 0;
}
.service h3 {
    font: 800 19px Manrope,sans-serif;
    letter-spacing: -.6px;
    margin: 0 0 10px;
}
.service p {
    font-size: 14px;
    color: #626a64;
    margin: 0;
}
.manifesto {
    padding-top: 120px;
    padding-bottom: 120px;
}
.manifesto h2 {
    max-width: 950px;
}
.brand-note {
    margin-top: 38px!important;
    font-size: 14px!important;
}
.brand-note a {
    font-weight: 800;
    text-underline-offset: 4px;
}
.company {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 36px;
}
.company-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 26px;
}
.company h3 {
    font: 800 clamp(20px,2.8vw,30px) Manrope,sans-serif;
    letter-spacing: -1px;
    margin: 8px 0;
}
.company-head p {
    font-size: 13px;
    color: #687169;
    margin: 0;
}
.details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 36px;
    margin: 0;
}
.details>div {
    padding: 21px 0;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}
.details dt {
    color: #737b74;
    font-size: 12px;
    margin-bottom: 5px;
}
.details dd {
    margin: 0;
    font-weight: 700;
    font-size: 15px;
    overflow-wrap: anywhere;
}
.hint,.fine {
    font-size: 12px!important;
    color: #6c756e!important;
}
.contact {
    padding-top: 120px;
    padding-bottom: 140px;
}
.contact h2 {
    max-width: 900px;
}
footer {
    background: var(--ink);
    color: #fff;
    padding: 42px 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}
.footer-inner strong {
    font: 800 14px Manrope,sans-serif;
}
.footer-inner p {
    color: #b8c0b9;
    font-size: 12px;
}
.footer-inner a {
    font-size: 13px;
}
.footer-inner>div:last-child {
    text-align: right;
}
@media(max-width:850px) {
    .cards {
        grid-template-columns: repeat(2,1fr);
    }
    .company-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .hero {
        padding-top: 70px;
    }
}
@media(max-width:560px) {
    .wrap {
        width: calc(100% - 36px);
    }
    .top {
        min-height: 85px;
        gap: 16px;
    }
    .brand {
        font-size: 16px;
    }
    .brand span {
        font-size: 10px;
        letter-spacing: 2px;
    }
    nav {
        gap: 12px;
    }
    nav a {
        font-size: 11px;
    }
    .hero h1 {
        font-size: clamp(43px,11vw,65px);
    }
    .hero-bottom {
        margin-top: 70px;
        gap: 16px;
    }
    .section {
        padding: 70px 0;
    }
    .cards,.details {
        grid-template-columns: 1fr;
    }
    .service {
        min-height: 240px;
    }
    .company {
        padding: 22px;
    }
    .manifesto,.contact {
        padding-top: 75px;
        padding-bottom: 80px;
    }
    .footer-inner {
        flex-direction: column;
    }
    .footer-inner>div:last-child {
        text-align: left;
    }
}
@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto;
    }
    .btn {
        transition: none;
    }
}
.intro {
    padding: 90px 0 70px;
}
.intro h1 {
    font: 800 clamp(44px,6vw,78px)/1.13 Manrope,Arial,sans-serif;
    letter-spacing: -.06em;
    margin: 18px 0;
}
.intro h1 em {
    font-style: normal;
    color: var(--accent);
}
@media(max-width:560px) {
    .intro {
        padding: 65px 0 40px;
    }
}
/* Modulo contatti */
.contact-form {
    margin: 32px 0 25px;
    max-width: 780px;
    display: flex;
    flex-direction: column;
    gap: 19px;
}
.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
}
.contact-form label span {
    color: var(--accent);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.contact-form input:not([type=checkbox]),.contact-form textarea {
    font: inherit;
    width: 100%;
    border: 1px solid #c6cac3;
    border-radius: 4px;
    background: #fff;
    padding: 14px 15px;
    color: var(--ink);
}
.contact-form textarea {
    resize: vertical;
}
.contact-form input:focus,.contact-form textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.contact-form .privacy {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    font-weight: 400;
    line-height: 1.5;
}
.privacy input {
    margin: 4px 7px 0 0;
}
.contact-form .btn {
    align-self: flex-start;
}
.form-alert {
    max-width: 780px;
    padding: 15px;
    border-radius: 4px;
    margin-top: 25px;
}
.form-alert.success {
    background: #e2efe6;
    color: #214932;
}
.form-alert.error {
    background: #fae9e5;
    color: #842c20;
}
.trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
@media(max-width:560px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
/* Pagina dati fiscali essenziale */
.section-heading h1 {
    font-family: Manrope,Arial,sans-serif;
    font-size: clamp(42px,6vw,72px);
    letter-spacing: -.065em;
    line-height: 1.1;
    margin: 0;
}
.section-heading {
    margin-bottom: 30px;
}
.copy-field {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.copy-small {
    font: 700 12px 'DM Sans',Arial,sans-serif;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    color: var(--accent);
}
.copy-small:hover {
    background: var(--soft);
}
.iban-code {
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
}
.copy-feedback {
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
}
.contact h2 {
    font-size: clamp(35px,5vw,56px);
}
/* Note generali */
.notes-section {
    background: var(--paper);
    padding-top: 65px;
}
.notes-section .section-heading {
    margin-bottom: 28px;
}
.notes-section h2 {
    font-size: clamp(32px,4vw,52px);
    margin: 0;
}
.notes-card {
    padding-top: 12px;
    padding-bottom: 12px;
}
.note-item {
    padding: 25px 0;
    border-bottom: 1px solid var(--line);
}
.note-item:last-child {
    border-bottom: 0;
}
.note-item h3 {
    font: 800 18px Manrope,Arial,sans-serif;
    letter-spacing: -.5px;
    margin: 0 0 10px;
}
.note-item p {
    color: #555e57;
    font-size: 15px;
    margin: 0;
    max-width: 850px;
}
.invoice-qr {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.invoice-qr img {
    width: 156px;
    height: 156px;
    object-fit: contain;
    background: white;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    image-rendering: auto;
    flex-shrink: 0;
}
.invoice-qr h4 {
    font: 800 17px Manrope,Arial,sans-serif;
    margin: 0 0 7px;
}
.invoice-qr p {
    font-size: 14px;
    color: #626a64;
    max-width: 400px;
    margin: 0;
}
@media(max-width:560px) {
    .invoice-qr {
        flex-direction: column;
        text-align: center;
    }
    .invoice-qr img {
        width: 156px;
        height: 156px;
    }
}
/* Note generali: integrate sotto il QR, stessa scala tipografica del testo informativo */
.notes-inline {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.notes-inline h4 {
    font: 700 15px 'DM Sans',Arial,sans-serif;
    letter-spacing: 0;
    margin: 0 0 10px;
    color: var(--ink);
}
.notes-inline .note-item {
    padding: 12px 0;
    border-bottom: 0;
}
.notes-inline .note-item h5 {
    font: 600 14px 'DM Sans',Arial,sans-serif;
    letter-spacing: 0;
    margin: 0 0 4px;
    color: var(--ink);
}
.notes-inline .note-item p {
    font: 400 14px/1.6 'DM Sans',Arial,sans-serif;
    color: #626a64;
    max-width: 850px;
    margin: 0;
}
.notes-inline .note-item strong {
    font-weight: 600;
}
