/* Aggiunte del sito Next.js al CSS del frontend approvato (public/css/style.css, copiato com'è).
   Qui solo ciò che il frontend statico non aveva: pagine di testo (articoli News, privacy, cookie, grazie, 404)
   ed errore di invio del modulo contatti. Stessi token (--notte, --blu, --ciano, --tit) e caratteri. */

/* testata senza foto delle pagine di testo */
.phero--testo .wrap { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.phero--testo .phero__text { padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 72px); max-width: 980px; }
.phero--testo h1 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); line-height: .95; }

/* testo lungo (articoli importati dal WordPress, testi legali) */
.testo { max-width: 780px; font-size: 1.0625rem; line-height: 1.7; }
.testo > * + * { margin-top: 1em; }
.testo h2, .testo h3, .testo h4 { font-family: "Barlow Condensed", system-ui, sans-serif; color: var(--tit); line-height: 1.1; margin-top: 1.8em; }
.testo h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.testo h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); }
.testo h4 { font-size: 1.2rem; }
.testo ul, .testo ol { padding-left: 1.3em; }
.testo li + li { margin-top: .35em; }
.testo a { color: var(--blu); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.testo strong { color: var(--tit); }
.testo img { max-width: 100%; height: auto; }
.testo table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.testo th, .testo td { border: 1px solid #d6dde4; padding: 8px 10px; text-align: left; vertical-align: top; }
.testo th { background: #eef2f6; }

/* modulo contatti: invio non riuscito (stesso riquadro di .form-ok, in rosso) */
.form-ok.form-ko { background: rgba(214, 69, 65, .14); border-top-color: #d64541; }
.form .btn[disabled] { opacity: .7; cursor: progress; }

/* Banner consenso cookie (components/sito/BannerCookie.tsx): rifà quello di Complianz del WordPress */
.consenso { position: fixed; z-index: 1000; right: 16px; bottom: 16px; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; background: var(--bianco); color: var(--txt); border-top: 4px solid var(--blu); box-shadow: 0 12px 40px rgba(23,35,49,.28); padding: 20px 22px 16px; font: 400 15px/1.5 var(--f-txt); }
.consenso__testa { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.consenso__titolo { margin: 0; font: 700 22px/1.1 var(--f-cond); color: var(--tit); text-transform: uppercase; letter-spacing: .02em; }
.consenso__chiudi { border: 0; background: none; font-size: 26px; line-height: 1; color: var(--tit); cursor: pointer; padding: 0 4px; }
.consenso__testo { margin: 0 0 12px; font-size: 14px; }
.consenso__categorie { margin: 0 0 12px; border-top: 1px solid var(--chiaro); }
.consenso__cat { border-bottom: 1px solid var(--chiaro); }
.consenso__cat summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; cursor: pointer; list-style: none; }
.consenso__cat summary::-webkit-details-marker { display: none; }
.consenso__cat-titolo { font-weight: 600; color: var(--tit); }
.consenso__cat-titolo::before { content: "▸ "; color: var(--blu); }
.consenso__cat[open] .consenso__cat-titolo::before { content: "▾ "; }
.consenso__cat input { width: 20px; height: 20px; accent-color: var(--blu); }
.consenso__sempre { font-size: 13px; color: var(--blu); font-weight: 600; }
.consenso__cat p { margin: 0 0 10px; font-size: 13px; }
.consenso__pulsanti { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.consenso__pulsanti .btn { flex: 1 1 120px; justify-content: center; }
.consenso__link { flex: 1 1 100%; border: 1px solid var(--gl); background: none; padding: 10px; font: 600 14px var(--f-txt); color: var(--tit); cursor: pointer; }
.consenso__link:hover { border-color: var(--blu); color: var(--blu); }
.consenso__doc { margin: 12px 0 0; font-size: 13px; text-align: center; }
.consenso__doc a { color: var(--blu); }
@media (max-width: 600px) { .consenso { right: 0; bottom: 0; width: 100%; max-height: 80vh; } }
