/* =====================================================================
   Ecosistema interiore - stile editoriale
   Font locali (OFL): Manrope (titoli, interfaccia), Literata (testi lunghi), Fraunces (accenti)
   ===================================================================== */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
    src: url(fonts/manrope-latin-wght-normal.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: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
    src: url(fonts/manrope-latin-ext-wght-normal.woff2) format("woff2");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url(fonts/fraunces-latin-wght-normal.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: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url(fonts/fraunces-latin-ext-wght-normal.woff2) format("woff2");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap;
    src: url(fonts/fraunces-latin-wght-italic.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: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap;
    src: url(fonts/fraunces-latin-ext-wght-italic.woff2) format("woff2");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap;
    src: url(fonts/literata-latin-wght-normal.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: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap;
    src: url(fonts/literata-latin-ext-wght-normal.woff2) format("woff2");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap;
    src: url(fonts/literata-latin-wght-italic.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: "Literata"; font-style: italic; font-weight: 200 900; font-display: swap;
    src: url(fonts/literata-latin-ext-wght-italic.woff2) format("woff2");
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
    --bg:     #fafaf7;
    --ink:    #111111;
    --soft:   #66665f;
    --line:   #e3e2dc;
    --tint:   #f1f0ea;
    --acc:    #e8572a;
    --acc-d:  #b9401b;
    --evid:   #ffd2c2;

    --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --serif: "Fraunces", Georgia, serif;
    --testo: "Literata", Georgia, serif;
    --larghezza: 1280px;
    --lettura: 700px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--sans); font-size: 17px; line-height: 1.6;
    min-height: 100vh; display: flex; flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
main { flex: 1; width: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--evid); }

.contenitore { width: 100%; max-width: var(--larghezza); margin: 0 auto; padding: 0 48px; }

.etichetta {
    font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--soft);
}
.data { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }
.freccia { font-weight: 700; font-size: 15px; white-space: nowrap; }
.freccia:hover { color: var(--acc); }

.fascia-anteprima {
    background: var(--acc); color: #fff; text-align: center; padding: 8px 16px;
    font-size: 14px; font-weight: 700; letter-spacing: .04em;
}
.fascia-anteprima a { text-decoration: underline; }

/* --- Testata -------------------------------------------------------- */
.testata-riga {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 32px;
    padding: 26px 0; border-bottom: 1px solid var(--line);
}
.marchio { display: flex; align-items: center; gap: 12px; }
.marchio-simbolo { width: 40px; height: 40px; transition: transform .6s ease; }
.marchio:hover .marchio-simbolo { transform: rotate(-35deg); }
.marchio-scritta { display: flex; align-items: baseline; gap: 5px; line-height: 1; white-space: nowrap; }
.marchio-scritta b { font-weight: 800; font-size: 20px; letter-spacing: -.045em; }
.marchio-scritta i { font-family: var(--serif); font-weight: 300; font-size: 22px; letter-spacing: -.02em; }
.menu { display: flex; flex-wrap: wrap; gap: 8px 30px; font-size: 15px; font-weight: 500; }
.menu a { color: var(--soft); }
.menu a:hover, .menu a.attivo { color: var(--ink); }
.menu a.attivo { font-weight: 700; }

/* --- Home: apertura ------------------------------------------------- */
.apertura { padding: 88px 0 72px; display: grid; grid-template-columns: 220px 1fr; gap: 28px 60px; }
.apertura h1 {
    grid-column: 1 / -1; margin: 0;
    font-size: clamp(56px, 10vw, 132px); line-height: .92; letter-spacing: -.055em; font-weight: 800;
}
.apertura h1 i, .titolo-grande i {
    font-family: var(--serif); font-weight: 300; letter-spacing: -.03em; color: var(--acc);
}
.apertura .etichetta { padding-top: 8px; line-height: 1.7; }
.apertura .lead { font-size: 24px; line-height: 1.45; max-width: 660px; margin: 0 0 32px; font-weight: 500; }
.apertura .lead b { font-weight: 700; background: linear-gradient(transparent 62%, var(--evid) 62%); }
.pulsanti { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
    display: inline-block; padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 15px;
    border: 2px solid var(--ink); transition: background .2s, color .2s, border-color .2s;
}
.btn-pieno { background: var(--ink); color: #fff; }
.btn-pieno:hover { background: var(--acc); border-color: var(--acc); }
.btn:not(.btn-pieno):hover { border-color: var(--acc); color: var(--acc); }

/* --- Home: tre ambiti ---------------------------------------------- */
.ambiti { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); margin-bottom: 96px; }
.ambito { padding: 30px 30px 36px 0; margin-right: 30px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.ambito:last-child { border: 0; margin: 0; padding-right: 0; }
.ambito .num { font-size: 13px; font-weight: 700; color: var(--acc); }
.ambito h3 { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin: 14px 0 10px; }
.ambito p { color: var(--soft); margin: 0 0 20px; flex: 1; }
.ambito:hover h3 { color: var(--acc); }

/* --- Intestazione di sezione --------------------------------------- */
.sezione {
    display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
    border-top: 2px solid var(--ink); padding-top: 18px; margin-bottom: 36px;
}
.sezione h2 { font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0; }

/* --- Riflessioni in evidenza (home) -------------------------------- */
.vetrina { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; padding-bottom: 96px; }
.principale .foto { aspect-ratio: 4 / 3; margin-bottom: 24px; }
.principale h3 { font-size: clamp(32px, 4vw, 46px); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; margin: 10px 0 14px; }
.principale p { color: var(--soft); font-size: 18px; margin: 0; }
.principale:hover h3, .riga:hover h3, .scheda:hover h3 { color: var(--acc); }

.righe .riga {
    display: grid; grid-template-columns: 112px 1fr; gap: 20px;
    padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line);
}
.righe .riga:last-child { margin-bottom: 0; }
.riga .foto { aspect-ratio: 1; }
.riga h3 { font-size: 23px; line-height: 1.15; letter-spacing: -.025em; font-weight: 700; margin: 6px 0; }
.riga p { color: var(--soft); margin: 0; font-size: 15px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* immagine o segnaposto colorato con l'iniziale */
.foto { border-radius: 4px; overflow: hidden; background: var(--tint); position: relative; }
.foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a:hover .foto img { transform: scale(1.03); }
.foto .iniziale {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(48px, 9vw, 160px);
    color: rgba(17, 17, 17, .18);
}
.riga .foto .iniziale { font-size: 54px; }
.t0 { background: #f6d5c7; } .t1 { background: #d9e3cf; } .t2 { background: #e9dfcd; }
.t3 { background: #dcd7ea; } .t4 { background: #cfe0e3; } .t5 { background: #f0e2b8; }

/* --- Elenco riflessioni -------------------------------------------- */
.titolo-pagina { padding: 72px 0 40px; }
.titolo-grande { font-size: clamp(48px, 8vw, 104px); line-height: .95; letter-spacing: -.05em; font-weight: 800; margin: 0 0 18px; }
/* il link sopra il titolo grande: senza z-index le lettere del titolo coprono il clic */
.titolo-pagina a.etichetta { position: relative; z-index: 1; display: inline-block; margin-bottom: 14px; }
.titolo-pagina a.etichetta:hover { color: var(--acc); }
.titolo-pagina .sottotitolo { font-size: 20px; color: var(--soft); max-width: 620px; margin: 0; font-weight: 500; }

.filtri { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 44px; }
.filtri a {
    padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--soft);
}
.filtri a:hover { border-color: var(--ink); color: var(--ink); }
.filtri a.attivo { background: var(--ink); border-color: var(--ink); color: #fff; }

.griglia { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 40px; }
.scheda .foto { aspect-ratio: 4 / 3; margin-bottom: 18px; }
.scheda h3 { font-size: 25px; line-height: 1.15; letter-spacing: -.025em; font-weight: 700; margin: 8px 0 8px; }
.scheda p { color: var(--soft); margin: 0; font-size: 15.5px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vuoto { color: var(--soft); font-family: var(--serif); font-style: italic; font-size: 20px; }

.paginazione {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    margin: 72px 0 96px; padding-top: 20px; border-top: 2px solid var(--ink);
}
.paginazione span { color: var(--soft); font-size: 14px; font-weight: 600; }

/* --- Articolo / pagina --------------------------------------------- */
.articolo { padding: 72px 0 96px; }
.articolo-testa { max-width: 980px; margin-bottom: 44px; }
.articolo-testa h1 {
    font-size: clamp(40px, 6.5vw, 84px); line-height: .98; letter-spacing: -.045em; font-weight: 800; margin: 14px 0 20px;
}
.articolo-testa .categorie a { font-weight: 700; font-size: 15px; border-bottom: 2px solid var(--evid); }
.articolo-testa .categorie a:hover { border-color: var(--acc); }
.copertina { margin: 0 0 56px; border-radius: 4px; overflow: hidden; }
.copertina img { width: 100%; max-height: 640px; object-fit: cover; }

.corpo { max-width: var(--lettura); font-family: var(--testo); font-size: 19px; line-height: 1.75; font-weight: 400; }
.corpo > * { margin: 0 0 1.1em; }
.corpo h2, .corpo h3, .corpo h4 { font-family: var(--sans); letter-spacing: -.025em; line-height: 1.15; }
.corpo h2 { font-size: 34px; font-weight: 800; margin-top: 1.8em; }
.corpo h3 { font-size: 26px; font-weight: 700; margin-top: 1.6em; }
.corpo h4 { font-size: 21px; font-weight: 700; margin-top: 1.4em; }
.corpo a { color: var(--acc-d); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.corpo strong, .corpo b { font-weight: 600; }
.corpo figure { margin: 2.2em 0; }
.corpo img { border-radius: 4px; margin: 2.2em 0; }
.corpo figure img { margin: 0; }
.corpo figcaption { font-family: var(--sans); font-size: 14px; color: var(--soft); margin-top: 10px; }
.corpo blockquote {
    margin: 2em 0; padding: 0 0 0 28px; border-left: 3px solid var(--acc);
    font-style: italic; font-size: 25px; line-height: 1.45;
}
.corpo ul, .corpo ol { padding-left: 1.3em; }
.corpo li { margin-bottom: .35em; }
.corpo hr { border: 0; border-top: 2px solid var(--ink); width: 64px; margin: 3em 0; }
.corpo iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 4px; }
.corpo table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 16px; }
.corpo td, .corpo th { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }

.etichette { display: flex; flex-wrap: wrap; gap: 8px; max-width: var(--lettura); margin-top: 48px; }
.etichette a { padding: 5px 14px; background: var(--tint); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--soft); }
.etichette a:hover { background: var(--ink); color: #fff; }

.vicini {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 80px; padding-top: 24px; border-top: 2px solid var(--ink);
}
.vicini a { display: block; }
.vicini .etichetta { display: block; margin-bottom: 6px; }
.vicini strong { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; display: block; }
.vicini a:hover strong { color: var(--acc); }
.vicini .dopo { text-align: right; }

/* --- Quaderni ------------------------------------------------------- */
.quaderni { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.quaderno-copertina {
    display: flex; flex-direction: column; min-height: 380px; padding: 36px 34px 30px;
    border-radius: 4px 14px 14px 4px; position: relative; transition: transform .25s;
    box-shadow: inset 10px 0 0 rgba(17, 17, 17, .07);
}
.quaderno-copertina:hover { transform: translateY(-4px) rotate(-.4deg); }
.quaderno-copertina .num { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(17,17,17,.55); }
.quaderno-copertina h2 {
    font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 52px; line-height: 1;
    letter-spacing: -.03em; margin: 22px 0 14px;
}
.quaderno-copertina p { margin: 0; color: rgba(17,17,17,.7); font-size: 16px; flex: 1; }
.piede-copertina {
    display: flex; justify-content: space-between; align-items: baseline; margin-top: 24px; padding-top: 14px;
    border-top: 1px solid rgba(17, 17, 17, .15); font-size: 14px; font-weight: 600; color: rgba(17,17,17,.65);
}
.quaderno-copertina:hover .freccia { color: var(--acc); }

.quaderno { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.quaderno .quaderno-intro { font-size: 19px; }
.quaderno .quaderno-intro:empty { display: none; }
.indice { border-top: 2px solid var(--ink); padding-top: 18px; }
.indice h2 { margin: 0 0 8px; }
.indice ol { list-style: none; padding: 0; margin: 0 0 32px; }
.indice li a {
    display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: baseline;
    padding: 16px 0; border-bottom: 1px solid var(--line);
}
.indice .n { font-size: 13px; font-weight: 700; color: var(--acc); }
.indice strong { display: block; font-size: 20px; letter-spacing: -.02em; line-height: 1.25; }
.indice small { display: block; color: var(--soft); font-size: 14.5px; margin-top: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.indice li a:hover strong, .indice li a:hover .freccia { color: var(--acc); }

.argomento { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; }
.indice-laterale { position: sticky; top: 24px; align-self: start; padding-top: 80px; max-height: 100vh; overflow-y: auto; }
.indice-laterale > a { display: block; margin-bottom: 14px; }
.indice-laterale > a:hover { color: var(--acc); }
.indice-laterale ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.indice-laterale li a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent;
    font-size: 14.5px; line-height: 1.35; color: var(--soft); }
.indice-laterale li a:hover { color: var(--ink); }
.indice-laterale li.attivo a { color: var(--ink); font-weight: 700; border-left-color: var(--acc); }
.indice-laterale .n { font-size: 12px; font-weight: 700; color: var(--acc); margin-right: 4px; }
.argomento .articolo-testa h1 { font-size: clamp(36px, 5vw, 64px); }

/* --- Composizioni: galleria ---------------------------------------- */
.filtri .conta { margin-left: 4px; color: inherit; opacity: .6; }
.galleria { columns: 3 320px; column-gap: 32px; }
.opera { display: block; break-inside: avoid; margin-bottom: 32px; border-radius: 4px; overflow: hidden; }
.opera .didascalia { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.opera h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.opera:hover h3 { color: var(--acc); }

.opera.poesia { padding: 36px 32px 28px; }
.opera.poesia .versi {
    font-family: var(--serif); font-style: italic; font-weight: 350; font-size: 21px; line-height: 1.55;
    margin: 0 0 28px; color: #2a2a26;
}
.opera.poesia .didascalia { border-top: 1px solid rgba(17, 17, 17, .15); padding-top: 14px; }
.opera.poesia .conta { color: rgba(17, 17, 17, .55); }

.opera.quadro img { width: 100%; height: auto; border-radius: 4px; margin-bottom: 14px; transition: transform .5s; }
.opera.quadro .foto { aspect-ratio: 4 / 5; margin-bottom: 14px; }
.opera.quadro:hover img { transform: scale(1.02); }

/* --- Composizione singola ------------------------------------------ */
.componimento { padding: 72px 0 96px; }
.componimento header { margin-bottom: 48px; }
.componimento header .etichetta:hover { color: var(--acc); }
.componimento h1 {
    font-family: var(--serif); font-style: italic; font-weight: 300;
    font-size: clamp(44px, 7vw, 92px); line-height: 1; letter-spacing: -.03em; margin: 18px 0 14px;
}
.e-poesia { max-width: 760px; margin: 0 auto; }
.e-poesia .corpo { font-size: 23px; line-height: 1.75; font-weight: 350; }
.e-poesia .corpo p { margin-bottom: 1.5em; }
.e-poesia .corpo img { max-width: 100%; }
.e-quadro header { text-align: center; }
.e-quadro .tela { margin: 0 0 56px; }
.e-quadro .tela img { max-height: 86vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 2px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .35); }
.e-quadro .corpo { margin: 0 auto; }

/* --- Mappa del sito ------------------------------------------------- */
.mappa { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 56px; padding-bottom: 96px; }
.mappa section { border-top: 2px solid var(--ink); padding-top: 18px; }
.mappa h2 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; margin: 0 0 8px; }
.mappa h3 { margin: 28px 0 10px; }
.mappa ul { list-style: none; padding: 0; margin: 0; }
.mappa li { padding: 9px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: baseline; }
.mappa li a { font-weight: 600; flex: 1; }
.mappa li a:hover { color: var(--acc); }
.conta { font-size: 13px; color: var(--soft); font-weight: 600; white-space: nowrap; }
.segno-revisione { color: var(--acc); font-size: 12px; }

/* --- 404 / in arrivo ------------------------------------------------ */
.messaggio { padding: 100px 0 120px; max-width: 760px; }
.messaggio .titolo-grande { margin-bottom: 28px; }
.messaggio p { font-size: 20px; color: var(--soft); margin: 0 0 32px; }

/* --- Piede ---------------------------------------------------------- */
.piede { background: var(--ink); color: #fff; margin-top: auto; }
.piede-riga { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; padding: 64px 0 48px; }
.piede .marchio-grande { display: flex; align-items: center; gap: 22px; }
.piede .marchio-grande img { width: clamp(56px, 8vw, 96px); height: auto; }
.piede .marchio-grande span { display: flex; flex-direction: column; line-height: .95; }
.piede .marchio-grande b { font-size: clamp(34px, 5.5vw, 64px); font-weight: 800; letter-spacing: -.05em; }
.piede .marchio-grande i { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 6vw, 70px); letter-spacing: -.03em; }
.piede .motto { color: #a9a9a1; margin: 14px 0 0; max-width: 460px; }
.piede nav { display: flex; flex-direction: column; gap: 8px; text-align: right; font-weight: 600; }
.piede nav a { color: #d8d8d0; }
.piede nav a:hover { color: var(--acc); }
.piede .fondo { border-top: 1px solid #2a2a28; padding: 20px 0 28px; font-size: 13px; color: #8a8a82; }
/* invito a installare l'app Delos (compare solo se il browser lo permette e l'app non è già installata) */
.installa-app { display: flex; align-items: center; gap: 16px; border-top: 1px solid #2a2a28; padding: 20px 0; }
.installa-app[hidden] { display: none; }
.installa-app img { flex: none; border-radius: 10px; background: #fff; }
.installa-app p { margin: 0; flex: 1; font-size: 14px; color: #a9a9a1; }
.installa-app b { color: #fff; }
.installa-app button { flex: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); background: #fff;
    border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.installa-app button:hover { background: var(--acc); color: #fff; }
.installa-app button[hidden] { display: none; }

/* --- Domande potenti --------------------------------------------- */
q { quotes: "«" "»"; }
.domanda-giorno { display: block; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
    padding: 36px 0 40px; margin: 0 0 88px; }
.domanda-giorno .etichetta { display: block; color: var(--acc); }
.domanda-giorno q { display: block; font-family: var(--serif); font-style: italic; font-weight: 300;
    font-size: clamp(30px, 4.4vw, 54px); line-height: 1.12; letter-spacing: -.02em; margin: 14px 0 22px; max-width: 980px; }
.domanda-giorno:hover q { color: var(--acc-d); }
.domande-categorie { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 56px 64px; }
.domande-gruppo { border-top: 2px solid var(--ink); padding-top: 18px; }
.domande-gruppo .num { font-size: 13px; font-weight: 700; color: var(--acc); }
.domande-gruppo h2 { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin: 8px 0 6px; }
.domande-gruppo h2 a:hover { color: var(--acc); }
.domande-gruppo header p { color: var(--soft); margin: 0 0 10px; }
.domande-elenco { list-style: none; padding: 0; margin: 0; }
.domande-elenco li a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
.domande-elenco q { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.35; }
.domande-elenco small { display: block; color: var(--soft); font-size: 14px; margin-top: 4px; }
.domande-elenco li a:hover q, .domande-elenco li a:hover .freccia { color: var(--acc); }
.domande-elenco.grande { max-width: 980px; border-top: 2px solid var(--ink); }
.domande-elenco.grande li a { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: baseline; padding: 22px 0; }
.domande-elenco.grande .n { font-size: 13px; font-weight: 700; color: var(--acc); }
.domande-elenco.grande q { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; }
.domanda { padding: 72px 0 96px; }
.domanda-testa { max-width: 1040px; margin-bottom: 48px; }
.domanda-testa h1 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(38px, 6vw, 80px);
    line-height: 1.04; letter-spacing: -.03em; margin: 18px 0 18px; }
.domanda-testa .etichetta:hover { color: var(--acc); }
.domanda-testa .fonte { font-weight: 700; font-size: 15px; margin: 0; }
.domanda-testa .fonte::before { content: "— "; color: var(--acc); }
.esercizi { max-width: var(--lettura); margin-top: 64px; border-top: 2px solid var(--ink); padding-top: 18px; }
.esercizio { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.esercizio .n { font-size: 13px; font-weight: 700; color: var(--acc); padding-top: 8px; }
.esercizio h3 { font-size: 26px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; margin: 0 0 4px; }
.esercizio .info { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); margin: 0 0 14px; }
.esercizio .corpo { font-size: 18px; }
.esercizio .corpo > :last-child { margin-bottom: 0; }
.riflessioni-collegate { margin-top: 72px; }

/* --- Frasi che accompagnano ------------------------------------- */
.frase { margin: 0; }
.frase blockquote { margin: 0; font-family: var(--testo); font-size: 21px; line-height: 1.5; }
.frase figcaption { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--soft); }
.frase.mia blockquote { font-family: var(--serif); font-style: italic; font-weight: 300; }
.frase.mia figcaption { color: var(--ink); }
.frase.grande blockquote { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4; }
.frase-giorno { max-width: 980px; padding: 0 0 0 24px; border-left: 3px solid var(--acc); margin: 0 0 88px; }
.domanda-giorno + .frase-giorno { margin-top: -48px; }
.frase-giorno > .etichetta { display: block; color: var(--acc); margin-bottom: 12px; }
.frase-giorno .freccia { display: inline-block; margin-top: 16px; }
.frase-giorno .freccia:hover { color: var(--acc); }
.frasi-collegate { max-width: var(--lettura); margin-top: 64px; border-top: 2px solid var(--ink); padding-top: 18px; }
.frasi-collegate .frase { padding: 22px 0; border-bottom: 1px solid var(--line); }
.frasi-filtri { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 700; margin: 0 0 40px; border-bottom: 1px solid var(--line); }
.frasi-filtri a { padding: 0 0 10px; color: var(--soft); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.frasi-filtri a:hover { color: var(--ink); }
.frasi-filtri a.attivo { color: var(--ink); border-bottom-color: var(--acc); }
.frasi-filtri small { font-weight: 600; color: var(--soft); margin-left: 4px; }
.frasi-elenco { columns: 2 380px; column-gap: 64px; margin-bottom: 96px; }
.frasi-elenco .frase { break-inside: avoid; padding: 26px 0; border-top: 1px solid var(--line); }
.frasi-elenco .frase:target blockquote { color: var(--acc-d); }
.frasi-elenco .frase .risponde { display: block; margin-top: 8px; font-size: 14px; color: var(--soft); }
.frasi-elenco .frase .risponde:hover { color: var(--acc); }

/* --- Schermi piccoli ------------------------------------------------ */
@media (max-width: 960px) {
    .vetrina { grid-template-columns: 1fr; gap: 48px; }
    .quaderno { grid-template-columns: 1fr; gap: 40px; }
    .argomento { grid-template-columns: 1fr; gap: 0; }
    .indice-laterale { position: static; padding-top: 32px; max-height: none; order: 2; margin-bottom: 64px; }
    .argomento .articolo { order: 1; padding-bottom: 24px; }
    .griglia { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    body { font-size: 16px; }
    .contenitore { padding: 0 22px; }
    .testata-riga { padding: 18px 0; }
    .menu { gap: 6px 20px; font-size: 14px; }
    .marchio-simbolo { width: 34px; height: 34px; }
    .marchio-scritta b { font-size: 18px; }
    .marchio-scritta i { font-size: 20px; }
    .apertura { grid-template-columns: 1fr; padding: 48px 0 48px; gap: 20px; }
    .apertura h1 { letter-spacing: -.045em; }
    .apertura .lead { font-size: 20px; }
    .ambiti { grid-template-columns: 1fr; margin-bottom: 64px; }
    .ambito { margin: 0; padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .righe .riga { grid-template-columns: 84px 1fr; gap: 16px; }
    .riga h3 { font-size: 20px; }
    .griglia { grid-template-columns: 1fr; gap: 44px; }
    .titolo-pagina, .articolo { padding-top: 44px; }
    .corpo { font-size: 19px; }
    .vicini { grid-template-columns: 1fr; gap: 24px; }
    .vicini .dopo { text-align: left; }
    .piede-riga { grid-template-columns: 1fr; }
    .piede nav { text-align: left; }
    .domande-categorie { grid-template-columns: 1fr; gap: 44px; }
    .domanda-giorno { margin-bottom: 56px; padding: 28px 0 32px; }
    .frase-giorno { margin-bottom: 56px; padding-left: 18px; }
    .domanda-giorno + .frase-giorno { margin-top: -24px; }
    .domande-elenco.grande li a { grid-template-columns: 32px 1fr; }
    .domande-elenco.grande .freccia { display: none; }
    .domanda { padding-top: 44px; }
    .esercizio { grid-template-columns: 1fr; gap: 6px; }
}
