/* ==========================================================================
   Natrashka — la lettera settimanale su famiglia, spesa e sostegni
   Impaginazione "lettera": colonna stretta, carta, inchiostro blu,
   rosso francobollo. Nessun raggio, solo filetti sottili.
   ========================================================================== */

@font-face { font-family: 'Signifier'; font-weight: 300; font-style: normal; font-display: swap; src: url('fonts/Signifier-Light.woff2') format('woff2'); }
@font-face { font-family: 'Signifier'; font-weight: 300; font-style: italic; font-display: swap; src: url('fonts/Signifier-LightItalic.woff2') format('woff2'); }
@font-face { font-family: 'Signifier'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/Signifier-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Signifier'; font-weight: 400; font-style: italic; font-display: swap; src: url('fonts/Signifier-RegularItalic.woff2') format('woff2'); }
@font-face { font-family: 'Signifier'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/Signifier-Medium.woff2') format('woff2'); }
@font-face { font-family: 'SoehneMono'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/SohneMono-Buch.woff2') format('woff2'); }

:root {
    --paper:   #F5F0DD;
    --desk:    #E3DCC4;
    --ink:     #1E2C6E;
    --body:    #2B3570;
    --second:  #4A507A;
    --muted:   #6B6F8C;
    --rule:    #CFC6A8;
    --fold:    #A99F80;
    --stamp:   #B8352A;

    --serif: 'Signifier', Georgia, 'Times New Roman', serif;
    --mono:  'SoehneMono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

    --col: 700px;
    --pad: 100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--desk); color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--stamp); }
:focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; }
.rt-skip { position: absolute; left: -9999px; }
.rt-skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 50; font-family: var(--mono); font-size: 13px; }

/* --- Foglio ------------------------------------------------------------- */
.rt-sheet { max-width: 1280px; margin: 0 auto; background: var(--paper); position: relative; min-height: 100vh; }
.rt-fold { position: absolute; left: 0; width: 16px; border-top: 1px solid var(--fold); }
.rt-fold--1 { top: 520px; } .rt-fold--2 { top: 1040px; }

/* --- Striscia pubblicitaria ------------------------------------------- */
.rt-disclosure { background: var(--ink); color: var(--paper); font-family: var(--mono); font-size: 11.5px; line-height: 1.5; letter-spacing: .02em; padding: 7px var(--pad); }
.rt-disclosure b { font-weight: 400; color: #fff; }

/* --- Carta intestata ---------------------------------------------------- */
.rt-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px 40px; padding: 40px var(--pad) 28px; align-items: flex-end; border-bottom: 1px solid var(--rule); }
.rt-brand { font-size: 38px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.1; display: inline-flex; align-items: center; gap: 14px; }
.rt-brand svg { width: 34px; height: 34px; flex: none; }
.rt-tag { white-space: nowrap; margin-top: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.rt-nav { display: flex; gap: 10px 26px; padding-bottom: 2px; font-family: var(--mono); font-size: 12.5px; flex-wrap: wrap; }
.rt-nav a[aria-current="page"] { border-bottom: 1px solid var(--ink); }
.rt-nav .rt-nav-sub { color: var(--stamp); }

/* --- Colonna della lettera --------------------------------------------- */
.rt-col { width: 100%; max-width: calc(var(--col) + 40px); margin: 0 auto; padding: 52px 20px 0; }
.rt-meta { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rt-meta span { display: inline-flex; align-items: center; gap: 8px; }
.rt-meta img { width: 14px; height: 14px; }
.rt-subject { margin-top: 40px; font-size: 15px; font-weight: 500; letter-spacing: 0.02em; }
.rt-h1 { margin: 6px 0 0; font-size: clamp(32px, 5.4vw, 46px); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; text-wrap: pretty; }
.rt-h1--art { font-size: clamp(34px, 6vw, 50px); line-height: 1.08; }
.rt-standfirst { margin: 22px 0 0; font-size: clamp(19px, 2.6vw, 22px); font-weight: 300; font-style: italic; line-height: 1.5; color: var(--body); }
.rt-salute { margin: 34px 0 0; font-size: 20px; line-height: 1.7; color: var(--body); }

.rt-prose { font-size: 20px; line-height: 1.72; color: var(--body); }
.rt-prose p { margin: 18px 0 0; }
.rt-prose > p:first-child { margin-top: 14px; }
.rt-prose h2 { margin: 48px 0 0; font-size: 28px; font-weight: 500; line-height: 1.22; color: var(--ink); text-wrap: pretty; }
.rt-prose h3 { margin: 32px 0 0; font-size: 22px; font-weight: 500; line-height: 1.3; color: var(--ink); }
.rt-prose ul, .rt-prose ol { margin: 18px 0 0; padding-left: 1.2em; }
.rt-prose li { margin: 8px 0 0; }
.rt-prose strong { font-weight: 500; color: var(--ink); }
.rt-prose a { border-bottom: 1px solid var(--ink); }
.rt-prose a:hover { border-color: var(--stamp); }
.rt-prose sup, .rt-fn { font-family: var(--mono); font-size: 11px; color: var(--stamp); }

/* Figure */
.rt-fig { margin: 30px 0 0; }
.rt-fig img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; background: var(--desk); }
.rt-fig--inline img { aspect-ratio: 7 / 4; }
.rt-fig figcaption { margin-top: 8px; font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--muted); }

/* Riquadri */
.rt-box { margin: 36px 0; border: 1px solid var(--stamp); padding: 20px 24px; }
.rt-box-lbl { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stamp); }
.rt-box-lbl img { width: 14px; height: 14px; }
.rt-box p { margin: 10px 0 0; font-size: 18px; line-height: 1.6; color: var(--body); }
.rt-box--ink { border-color: var(--ink); }
.rt-box--ink .rt-box-lbl { color: var(--ink); }

.rt-notice { margin: 28px 0 0; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 11.5px; line-height: 1.65; color: var(--second); }
.rt-notice b { font-weight: 400; color: var(--stamp); letter-spacing: .08em; text-transform: uppercase; }
.rt-adlabel { display: inline-block; margin-top: 36px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--stamp); border: 1px solid var(--stamp); padding: 4px 8px; }

/* Tabelle */
.rt-table-wrap { margin: 28px 0 0; overflow-x: auto; }
.rt-table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.45; color: var(--body); }
.rt-table th { text-align: left; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 12px 10px 0; border-bottom: 1px solid var(--ink); }
.rt-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.rt-table td.num, .rt-table th.num { text-align: right; white-space: nowrap; }
.rt-table tr.tot td { border-bottom: 1px solid var(--ink); font-weight: 500; color: var(--ink); }
.rt-table caption { caption-side: bottom; text-align: left; padding-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Firma e P.S. */
.rt-regards { margin-top: 40px; font-size: 18px; color: var(--body); }
.rt-sign { margin-top: 6px; font-size: 34px; font-weight: 300; font-style: italic; line-height: 1.2; }
.rt-sign-role { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.rt-ps { margin-top: 30px; font-size: 19px; line-height: 1.65; font-style: italic; color: var(--body); }
.rt-ps b { font-style: normal; font-weight: 500; }
.rt-ps a { border-bottom: 1px solid var(--ink); }

/* Note e fonti */
.rt-notes { margin-top: 44px; padding-top: 14px; border-top: 1px solid var(--ink); font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--second); }
.rt-notes-h { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.rt-notes ol { list-style: none; margin: 0; padding: 0; counter-reset: fn; }
.rt-notes li { counter-increment: fn; display: grid; grid-template-columns: 22px 1fr; margin-top: 4px; }
.rt-notes li::before { content: counter(fn); color: var(--stamp); }
.rt-notes a { border-bottom: 1px solid var(--rule); word-break: break-word; }
.rt-notes a:hover { border-color: var(--stamp); }
.rt-disc { margin-top: 28px; font-family: var(--mono); font-size: 11.5px; line-height: 1.7; color: var(--muted); }
.rt-disc p { margin: 0 0 10px; }

/* Link-freccia */
.rt-more { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-family: var(--mono); font-size: 13px; border-bottom: 1px solid var(--ink); padding-bottom: 3px; }
.rt-more img { width: 14px; height: 14px; }

/* --- Allegati (elenco articoli) ---------------------------------------- */
.rt-list-head { margin-top: 64px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.rt-list-head h2 { margin: 0; font-family: var(--mono); font-size: 12.5px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; }
.rt-list-head a { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rt-item { display: grid; grid-template-columns: 112px 1fr 90px; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.rt-item-n { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rt-item-n img { width: 15px; height: 15px; flex: none; }
.rt-item h3 { margin: 0; font-size: 23px; font-weight: 400; line-height: 1.22; text-wrap: pretty; }
.rt-item p { margin: 6px 0 0; font-size: 16.5px; line-height: 1.5; color: var(--second); }
.rt-item-d { font-family: var(--mono); font-size: 11.5px; color: var(--muted); text-align: right; }
.rt-item--ad h3 a::after { content: 'Pubblicità'; margin-left: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--stamp); vertical-align: middle; }

/* --- Cartolina di risposta (newsletter) -------------------------------- */
.rt-card { margin-top: 64px; border: 1px dashed var(--ink); padding: 30px 32px 32px; position: relative; }
.rt-stamp { position: absolute; top: 22px; right: 22px; width: 78px; height: 94px; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--mono); font-size: 10px; line-height: 1.4; color: var(--second); }
.rt-card-lbl { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stamp); }
.rt-card-h { margin-top: 12px; max-width: 480px; font-size: 28px; font-weight: 400; line-height: 1.22; }
.rt-card-txt { margin: 12px 0 0; max-width: 480px; font-size: 17px; line-height: 1.55; color: var(--second); }
.rt-form { margin-top: 28px; }
.rt-field { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--muted); max-width: 460px; }
.rt-field input { font-family: var(--serif); font-size: 19px; padding: 6px 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); outline: none; width: 100%; }
.rt-field input:focus { border-bottom-color: var(--stamp); }
.rt-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; font-family: var(--mono); font-size: 11px; line-height: 1.55; color: var(--second); max-width: 520px; }
.rt-consent input { margin: 2px 0 0; accent-color: var(--ink); flex: none; width: 15px; height: 15px; }
.rt-consent a { border-bottom: 1px solid var(--rule); }
.rt-form-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 22px; }
.rt-form-note { font-family: var(--mono); font-size: 11px; line-height: 1.55; color: var(--muted); max-width: 360px; }
.rt-btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; padding: 14px 24px; border: 0; border-radius: 0; background: var(--ink); color: var(--paper); cursor: pointer; flex: none; }
.rt-btn:hover { background: var(--stamp); color: var(--paper); }
.rt-btn img { width: 15px; height: 15px; }
.rt-form-msg { margin-top: 12px; min-height: 1em; font-family: var(--mono); font-size: 12px; color: var(--stamp); }

/* --- Pagine legali ------------------------------------------------------ */
.rt-legal { font-size: 18px; line-height: 1.65; color: var(--body); }
.rt-legal h2 { margin: 40px 0 0; font-size: 24px; font-weight: 500; color: var(--ink); }
.rt-legal p, .rt-legal ul { margin: 14px 0 0; }
.rt-legal li { margin-top: 6px; }
.rt-legal a { border-bottom: 1px solid var(--ink); }
.rt-legal strong { font-weight: 500; color: var(--ink); }
.rt-ident { margin: 22px 0 0; border: 1px solid var(--ink); padding: 22px 24px; }
.rt-ident-name { font-size: 24px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.rt-vat { margin: 16px 0 0; border: 1px solid var(--stamp); border-left-width: 4px; padding: 14px 18px; background: #FBF7E8; }
.rt-vat-lbl { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--stamp); }
.rt-vat-num { display: block; margin-top: 4px; font-family: var(--mono); font-size: 26px; letter-spacing: .04em; color: var(--ink); }
.rt-vat-sub { margin-top: 10px; font-family: var(--mono); font-size: 13px; color: var(--second); }
.rt-dl { margin: 18px 0 0; display: grid; grid-template-columns: 200px 1fr; gap: 8px 18px; font-size: 17px; }
.rt-dl dt { font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding-top: 4px; }
.rt-dl dd { margin: 0; }

/* --- Piè di pagina ------------------------------------------------------ */
.rt-foot { margin-top: 72px; border-top: 6px solid var(--ink); display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding: 26px var(--pad) 34px; font-family: var(--mono); font-size: 11.5px; line-height: 1.7; color: var(--second); }
.rt-foot-brand { color: var(--ink); font-size: 12.5px; }
.rt-foot nav { display: flex; flex-direction: column; }
.rt-foot-end { text-align: right; }
.rt-foot-legal { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 16px; font-size: 11px; color: var(--muted); }

/* Avviso tecnico */
.rt-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--paper); border: 1px solid var(--ink); padding: 16px 18px; font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: var(--second); display: none; z-index: 40; box-shadow: 0 6px 24px rgba(30, 44, 110, .12); }
.rt-cookie.show { display: block; }
.rt-cookie a { border-bottom: 1px solid var(--rule); }
.rt-cookie button { margin-top: 10px; font-family: var(--mono); font-size: 12px; padding: 8px 16px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; }
.rt-cookie button:hover { background: var(--stamp); }

/* --- Mobile ------------------------------------------------------------- */
@media (max-width: 1100px) {
    :root { --pad: 48px; }
}
@media (max-width: 900px) {
    :root { --pad: 24px; }
    .rt-head { flex-direction: column; align-items: flex-start; padding-top: 28px; }
    .rt-tag { white-space: normal; }
    .rt-nav { gap: 14px 20px; }
    .rt-foot { grid-template-columns: 1fr; gap: 18px; }
    .rt-foot-end { text-align: left; }
    .rt-fold { display: none; }
}
@media (max-width: 600px) {
    .rt-brand { font-size: 30px; }
    .rt-col { padding-top: 34px; }
    .rt-subject { margin-top: 28px; }
    .rt-prose { font-size: 18.5px; }
    .rt-prose h2 { font-size: 24px; margin-top: 40px; }
    .rt-salute { font-size: 18.5px; }
    .rt-meta { flex-direction: column; gap: 4px; }
    .rt-item { grid-template-columns: 1fr; gap: 6px; }
    .rt-item-d { text-align: left; order: -1; display: none; }
    .rt-item h3 { font-size: 21px; }
    .rt-card { padding: 24px 20px; }
    .rt-stamp { width: 62px; height: 74px; font-size: 7.5px; padding: 2px; top: 16px; right: 16px; }
    .rt-card-h { font-size: 23px; padding-right: 66px; }
    .rt-form-foot { flex-direction: column; align-items: stretch; }
    .rt-btn { justify-content: center; }
    .rt-dl { grid-template-columns: 1fr; gap: 2px; }
    .rt-dl dd { margin-bottom: 10px; }
    .rt-vat-num { font-size: 22px; }
    .rt-table { font-size: 15.5px; }
    .rt-sign { font-size: 29px; }
}
