/*
Theme Name: Centro Croce
Theme URI: https://centrocroce.seeeyou.it/
Author: Centro Socio Culturale Croce
Description: Sito del Centro Socio Culturale Croce in stile Instagram: profilo, cerchi in evidenza, griglia dei post, calendario, modulo "Scrivici" con anti-spam e app di pubblicazione per le associazioni (sito + Facebook + Instagram).
Version: 2.0.1
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: centrocroce
*/

@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/figtree-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 800; font-style: normal; font-display: swap; src: url("assets/fonts/figtree-latin-800-normal.woff2") format("woff2"); }

:root {
	--testo: #16181D;
	--grigio: #5F636B;
	--linea: #EDEEF1;
	--bordo: #D5D8DE;
	--fondo-grigio: #EFF0F3;
	--fondo-chiaro: #F5F6F8;
	--blu: #2D3F7A;
	--blu-scuro: #1E2B57;
	--rosso: #C8422A;
	--verde: #2F7D32;
	--bordeaux: #6E2034;
	--arancio: #F08A2E;
	--wa: #1A7A47;
	--anello: conic-gradient(#2D3F7A, #6E2034, #C8422A, #F08A2E, #2F7D32, #2D3F7A);
	--larghezza: 935px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: #fff;
	color: var(--testo);
	font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 17px;
	line-height: 1.45;
	padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px));
}
body.app-body { padding-bottom: env(safe-area-inset-bottom, 0px); background: #fff; }
body.bloccato { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blu); }
a:hover { color: var(--blu-scuro); }
:focus-visible { outline: 3px solid var(--blu); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, p, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.salta { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--testo); color: #fff; padding: 12px 16px; border-radius: 10px; }
.salta:focus { left: 8px; }

.contenitore { width: 100%; max-width: var(--larghezza); margin: 0 auto; padding: 0 16px; }
.contenitore--pieno { padding: 0; }
.icona { flex-shrink: 0; }
.icona.giro { transform: rotate(180deg); }
.icona.rosso { color: var(--rosso); }
.icona.blu { color: var(--blu); }
.icona.verde { color: var(--verde); }
.rosso { color: var(--rosso); }
.grigio { color: var(--grigio); }
.vuoto { padding: 40px 16px; text-align: center; color: var(--grigio); }

/* ---------- Pulsanti ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px;
	font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer;
}
.btn--pieno { background: var(--blu); color: #fff; }
.btn--pieno:hover { background: var(--blu-scuro); color: #fff; }
.btn--grigio { background: var(--fondo-grigio); color: var(--testo); }
.btn--grigio:hover { background: #E2E4E9; color: var(--testo); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #135c35; color: #fff; }
.btn--icona { width: 44px; padding: 0; flex-shrink: 0; }
.btn--largo { width: 100%; }
.btn--grande { min-height: 54px; font-size: 18px; font-weight: 800; border-radius: 12px; }
.btn--piccolo { min-height: 40px; font-size: 15px; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-icona { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--testo); border-radius: 10px; cursor: pointer; padding: 0; }
.btn-icona:hover { background: var(--fondo-chiaro); color: var(--testo); }

/* ---------- Barra in alto ---------- */
.barra { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--linea); padding-top: env(safe-area-inset-top, 0px); }
.barra__in { max-width: 1200px; margin: 0 auto; height: 60px; padding: 0 6px 0 12px; display: flex; align-items: center; gap: 6px; }
.marchio { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--testo); text-decoration: none; white-space: nowrap; }
.marchio:hover { color: var(--testo); }
.barra > .barra__in > .marchio { display: none; }
.barra__nav { display: none; }
.barra__icone { display: flex; gap: 0; flex-shrink: 0; }

/* ---------- Cassetto (menu) ---------- */
.cassetto { position: fixed; inset: 0; z-index: 50; background: rgba(22,24,29,.45); display: flex; justify-content: flex-end; }
.cassetto__pannello { width: min(340px, 88vw); height: 100%; background: #fff; padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 24px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.cassetto__testa { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.cassetto__cerca, .barra__cerca { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 12px; background: var(--fondo-grigio); color: var(--grigio); }
.barra__cerca { flex: 1; min-width: 0; height: 44px; }
.cassetto__cerca input, .barra__cerca input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; color: var(--testo); }
.cassetto__voci { list-style: none; margin: 0; padding: 0; }
.cassetto__voci a { display: flex; align-items: center; gap: 14px; min-height: 54px; color: var(--testo); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--linea); }
.cassetto__area { margin-top: auto; color: var(--grigio); font-weight: 600; }

/* ---------- Anello e avatar ---------- */
.anello { width: var(--dim); height: var(--dim); flex-shrink: 0; border-radius: 50%; padding: 3px; background: var(--anello); display: inline-block; }
.anello__dentro { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; padding: 3px; }
.anello__dentro img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 1px solid var(--linea); }
.avatar { width: var(--dim); height: var(--dim); flex-shrink: 0; border-radius: 50%; display: inline-flex; }
.avatar__dentro { width: 100%; height: 100%; border-radius: 50%; background: var(--sf); color: var(--tx); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: calc(var(--dim) * .36); }
.avatar--anello { padding: 3px; background: var(--anello); }
.avatar--anello .avatar__dentro { border: 3px solid #fff; }
.avatar--logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 1px solid var(--linea); }

/* ---------- Profilo ---------- */
.profilo { padding-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.profilo__riga { display: flex; align-items: center; gap: 22px; }
.profilo__destra { flex: 1; min-width: 0; }
.profilo__nome-desktop { display: none; }
.statistiche { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; text-align: center; }
.statistiche li, .statistiche a { display: flex; flex-direction: column; font-size: 14px; color: var(--grigio); text-decoration: none; line-height: 1.25; }
.statistiche strong { font-size: 20px; font-weight: 800; color: var(--testo); }
.statistiche strong.rosso { color: var(--rosso); }
.bio { display: flex; flex-direction: column; gap: 2px; }
.bio__nome { font-size: 17px; font-weight: 800; }
.bio__categoria { color: var(--grigio); font-size: 15px; }
.bio__luogo { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--blu); margin-top: 2px; }
.bio__luogo a { text-decoration: none; }
.bottoni-profilo { display: flex; gap: 8px; }
.bottoni-profilo .btn:not(.btn--icona) { flex: 1; }

/* ---------- Cerchi in evidenza ---------- */
.evidenze { display: flex; gap: 14px; overflow-x: auto; padding: 18px 16px 14px; margin: 0 -16px; scrollbar-width: none; }
.evidenze::-webkit-scrollbar { display: none; }
.evidenza { width: 72px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--testo); }
.evidenza__anello { width: 68px; height: 68px; border-radius: 50%; padding: 2px; background: var(--bordo); }
.evidenza--nuovo .evidenza__anello { background: var(--anello); }
.evidenza__cerchio { width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; background: var(--sf); color: var(--tx); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.evidenza__nome { font-size: 13px; width: 76px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Schede ---------- */
.schede { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--linea); }
.schede--singola { grid-template-columns: 1fr; }
.schede a, .schede span { height: 52px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--grigio); text-decoration: none; border-bottom: 1px solid var(--linea); }
.schede [aria-current="page"] { color: var(--testo); font-weight: 800; border-bottom: 2px solid var(--testo); }

/* ---------- Griglia ---------- */
.griglia { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.riquadro { position: relative; aspect-ratio: 1 / 1; overflow: hidden; display: block; background: var(--fondo-chiaro); text-decoration: none; }
.riquadro__img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.riquadro:hover .riquadro__img { opacity: .88; }
.riquadro__testo { position: absolute; inset: 0; padding: 9px; display: flex; flex-direction: column; justify-content: flex-end; background: var(--sf); color: var(--tx); }
.riquadro__titolo { font-size: 15px; font-weight: 800; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.riquadro__sotto { font-size: 12px; font-weight: 600; opacity: .85; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.riquadro__data { position: absolute; left: 7px; top: 7px; padding: 2px 7px; border-radius: 6px; background: #fff; color: var(--testo); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.riquadro__fissato { position: absolute; right: 7px; top: 7px; width: 24px; height: 24px; border-radius: 12px; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; }
.carica-altri { text-align: center; padding: 24px 16px; }
.nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 24px 16px; }
.nav-links .page-numbers { min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 10px; background: var(--fondo-grigio); color: var(--testo); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; }
.nav-links .current { background: var(--testo); color: #fff; }

/* ---------- Associazioni (elenco) ---------- */
.lista-assoc { list-style: none; margin: 0; padding: 4px 16px 16px; }
.lista-assoc a { display: flex; align-items: center; gap: 14px; min-height: 72px; border-bottom: 1px solid var(--linea); color: var(--testo); text-decoration: none; }
.lista-assoc__testo { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.lista-assoc__testo span { font-size: 14px; color: var(--grigio); }
.lista-assoc .icona { color: var(--grigio); }

/* ---------- Post aperto ---------- */
.post { padding: 0; }
.post__testa { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.post__autore { display: flex; align-items: center; gap: 12px; color: var(--testo); text-decoration: none; min-width: 0; }
.post__autore-testo { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.post__autore-testo span { font-size: 14px; color: var(--grigio); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etichetta { display: inline-block; padding: 4px 10px; border-radius: 8px; background: #FBE3D2; color: #8A2F1A; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.etichetta--corsi { background: #DDE3F2; color: var(--blu); }
.etichetta--compleanno { background: #F2DDE2; color: var(--bordeaux); }
.etichetta--spazi { background: #FDEBD3; color: #7A4A0E; }
.etichetta--collab { background: #E3EFE3; color: #1F5A22; }
.etichetta--altro { background: var(--fondo-grigio); color: var(--testo); }
.post__img img { width: 100%; max-height: 80vh; object-fit: contain; background: var(--fondo-chiaro); }
.post__lato { padding: 14px 16px 8px; display: flex; flex-direction: column; gap: 14px; }
.post__azioni { display: flex; gap: 8px; }
.post__azioni .btn--largo { flex: 1; width: auto; min-height: 48px; }
.post__azioni .btn--icona { width: 48px; min-height: 48px; }
.post__titolo { font-size: 22px; font-weight: 800; line-height: 1.2; }
.post__didascalia > * + * { margin-top: .8em; }
.post__didascalia a { word-break: break-word; }
.post__meta { font-size: 14px; color: var(--grigio); }
.scheda-info { margin: 0; border-radius: 14px; background: var(--fondo-chiaro); }
.scheda-info > div { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #E6E8EC; }
.scheda-info > div:last-child { border-bottom: 0; }
.scheda-info dt { margin-top: 1px; }
.scheda-info dd { margin: 0; display: flex; flex-direction: column; }
.scheda-info dd span { color: var(--grigio); font-size: 15px; }
.scheda-info--grande { margin-top: 8px; }
.scheda-info--grande dd a { font-weight: 700; }
.altri { padding-top: 18px; }
.altri__testa { display: flex; justify-content: space-between; align-items: baseline; padding: 0 16px 10px; }
.altri__testa h2 { font-size: 17px; font-weight: 800; }
.altri__testa a { font-weight: 700; font-size: 15px; text-decoration: none; }

/* ---------- Pagine ---------- */
.pagina { padding-bottom: 32px; }
.pagina--stretta { max-width: 640px; }
.testata-pagina { display: flex; align-items: center; gap: 4px; min-height: 60px; margin: 0 -8px 8px; }
.testata-pagina h1 { font-size: 22px; font-weight: 800; }
.contenitore--pieno > .testata-pagina { margin: 0 8px 8px; }
.testo { max-width: 40em; line-height: 1.6; }
.testo > * + * { margin-top: 1em; }
.pagina__img img { border-radius: 14px; margin-bottom: 16px; }
.social-righe { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }

/* Calendario */
.calendario__mese { font-size: 15px; font-weight: 800; color: var(--grigio); text-transform: capitalize; margin: 22px 0 8px; }
.calendario { list-style: none; margin: 0; padding: 0; }
.evento-riga { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 8px 0; border-bottom: 1px solid var(--linea); color: var(--testo); text-decoration: none; }
.evento-riga__data { width: 54px; height: 58px; flex-shrink: 0; border-radius: 12px; background: var(--fondo-chiaro); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.evento-riga__data span { font-size: 13px; font-weight: 700; color: var(--rosso); text-transform: uppercase; }
.evento-riga__data strong { font-size: 22px; font-weight: 800; }
.evento-riga__testo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.evento-riga__testo span { font-size: 14px; color: var(--grigio); }
.evento-riga__img { width: 58px; height: 58px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }

/* ---------- Moduli ---------- */
.modulo { display: flex; flex-direction: column; gap: 18px; }
.modulo__titolo { font-size: 26px; font-weight: 800; line-height: 1.15; }
.modulo__sotto { color: var(--grigio); margin: 4px 0 18px; }
.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo label, .chips legend, .dove legend { font-weight: 700; }
.campo input, .campo textarea, .campo select {
	width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--bordo); border-radius: 12px;
	background: #FAFAFB; font-size: 17px; color: var(--testo);
}
.campo textarea { padding: 12px 14px; line-height: 1.4; resize: vertical; }
.campo input:focus, .campo textarea:focus { border-color: var(--blu); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(45,63,122,.15); }
.campi-due { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nota { font-size: 14px; color: var(--grigio); margin-top: -12px; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { padding: 0; margin-bottom: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1.5px solid var(--bordo); background: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.chip input:checked + span { background: var(--blu); border-color: var(--blu); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--blu); outline-offset: 2px; }
.consenso { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #3A3D44; }
.consenso input { width: 22px; height: 22px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--blu); }
.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.avviso { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 15px; }
.avviso--errore { background: #FDE8E4; color: #8A2F1A; font-weight: 600; margin-bottom: 14px; }
.avviso--info { background: #FDF1E4; color: #5A3A10; }
.riquadro-wa { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 14px; border-radius: 14px; background: var(--fondo-chiaro); font-size: 15px; }
.riquadro-wa a { font-weight: 700; }
.esito { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 36px 8px 20px; }
.esito h1, .esito h2 { font-size: 26px; font-weight: 800; }
.esito p { color: #3A3D44; max-width: 30em; }
.esito__icona { width: 76px; height: 76px; border-radius: 50%; background: #E3EFE3; color: var(--verde); display: flex; align-items: center; justify-content: center; }
.esito__icona--attesa { background: #FDF1E4; color: #9A5A14; }

/* ---------- Piede e barra in basso ---------- */
.piede { max-width: var(--larghezza); margin: 32px auto 0; padding: 20px 16px; font-size: 14px; color: var(--grigio); text-align: center; display: flex; flex-direction: column; gap: 4px; }
.piede a { color: var(--grigio); }
.nav-basso { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--linea); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: calc(66px + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); }
.nav-basso a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 600; color: var(--grigio); text-decoration: none; }
.nav-basso a[aria-current="page"] { color: var(--testo); font-weight: 800; }
.nav-basso a[aria-current="page"] .icona { stroke-width: 2.6; }

/* ---------- App di pubblicazione ---------- */
.app { max-width: 560px; margin: 0 auto; }
.app-barra { position: sticky; top: 0; z-index: 10; background: #fff; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: env(safe-area-inset-top, 0px) 8px 0; border-bottom: 1px solid var(--linea); }
.app-barra__titolo { font-size: 19px; font-weight: 800; }
.app-schede { display: flex; overflow-x: auto; border-bottom: 1px solid var(--linea); scrollbar-width: none; }
.app-schede a { flex: 1 0 auto; min-height: 50px; padding: 0 14px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--grigio); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.app-schede a[aria-current="page"] { color: var(--testo); font-weight: 800; border-bottom-color: var(--blu); }
.contatore { min-width: 22px; padding: 0 6px; border-radius: 11px; background: var(--rosso); color: #fff; font-size: 13px; font-weight: 800; text-align: center; }
.app-corpo { padding: 16px 16px 40px; }
.app-accesso { padding: 56px 24px 32px; display: flex; flex-direction: column; gap: 22px; }
.app-accesso__testa { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.app-accesso__testa h1, .app-accesso > h1 { font-size: 28px; font-weight: 800; }
.app-accesso__testa p { color: var(--grigio); }
.app-accesso__link { text-align: center; font-weight: 700; }
.app-accesso__nota { text-align: center; font-size: 14px; color: var(--grigio); }
.app-chi { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--fondo-chiaro); }
.app-chi span { display: flex; flex-direction: column; line-height: 1.2; }
.app-chi small { font-size: 14px; color: var(--grigio); }
.foto-scelta { position: relative; aspect-ratio: 1 / 1; width: 100%; border: 2px dashed #C9CDD4; border-radius: 16px; background: #FAFAFB; overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.foto-scelta input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.foto-scelta:focus-within { outline: 3px solid var(--blu); outline-offset: 2px; }
.foto-scelta img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.foto-scelta__vuoto { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #3A3D44; text-align: center; }
.foto-scelta__vuoto .icona { color: var(--blu); }
.foto-scelta__vuoto strong { font-size: 18px; }
.foto-scelta__vuoto span { font-size: 15px; color: var(--grigio); }
.dove { border: 1.5px solid #E6E8EC; border-radius: 14px; margin: 0; padding: 4px 14px 6px; }
.dove legend { padding: 0 6px; }
.dove label { display: flex; align-items: center; justify-content: space-between; min-height: 50px; border-bottom: 1px solid var(--linea); }
.dove label:last-child { border-bottom: 0; }
.dove label span { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.dove small { color: var(--grigio); font-weight: 400; }
.dove input { width: 24px; height: 24px; accent-color: var(--blu); }
.esito-canali { list-style: none; margin: 0 0 20px; padding: 4px 16px; border: 1.5px solid #E6E8EC; border-radius: 14px; }
.esito-canali li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--linea); font-weight: 600; }
.esito-canali li:last-child { border-bottom: 0; }
.esito-canali .ok { color: var(--verde); font-weight: 800; text-decoration: none; }
.esito-canali .ko { color: var(--rosso); font-size: 14px; text-align: right; }
.box-wa { border-radius: 16px; background: var(--fondo-chiaro); padding: 18px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.box-wa h2 { font-size: 18px; font-weight: 800; }
.box-wa__testo { border-radius: 12px; background: #fff; border: 1px solid #E6E8EC; padding: 12px 14px; font-size: 15px; color: #3A3D44; word-break: break-word; }
.box-wa__copiato { font-weight: 700; color: var(--verde); text-align: center; }
.nota-centrata { text-align: center; color: var(--grigio); margin-bottom: 16px; }
.richiesta { background: #fff; border: 1.5px solid #E6E8EC; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.richiesta--gestita { opacity: .6; }
.richiesta__testa { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.richiesta__testa time { font-size: 13px; color: var(--grigio); }
.richiesta h2 { font-size: 18px; font-weight: 800; }
.richiesta__dati { font-weight: 700; color: var(--blu); }
.richiesta__img { border-radius: 12px; }
.richiesta__azioni { display: flex; flex-wrap: wrap; gap: 8px; }
.richiesta__azioni form { display: contents; }
.app-autore { display: flex; align-items: center; gap: 8px; }
.app-lista { list-style: none; margin: 0; padding: 0; }
.app-lista li { display: flex; align-items: center; gap: 12px; min-height: 76px; border-bottom: 1px solid var(--linea); }
.app-lista__img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.app-lista__img--vuota { background: var(--fondo-chiaro); color: var(--grigio); display: flex; align-items: center; justify-content: center; }
.app-lista__testo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-lista__testo a { color: var(--testo); text-decoration: none; }
.app-lista__testo span { font-size: 14px; color: var(--grigio); }

/* ---------- Computer ---------- */
@media (min-width: 900px) {
	body { padding-bottom: 0; }
	.nav-basso { display: none; }
	.barra__in { height: 72px; padding: 0 40px; }
	.barra__in { gap: 16px; justify-content: space-between; }
	.barra > .barra__in > .marchio { display: block; font-size: 28px; }
	.barra__cerca { flex: 0 0 300px; }
	.barra__nav { display: flex; align-items: center; gap: 26px; font-weight: 700; font-size: 16px; }
	.barra__nav a:not(.btn) { color: var(--testo); text-decoration: none; }
	.barra__nav a[aria-current="page"]:not(.btn) { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
	.barra__icone { display: none; }

	.profilo { padding: 44px 40px 0; gap: 16px; }
	.profilo__riga { gap: 80px; align-items: flex-start; }
	.profilo .anello, .profilo .avatar { --dim: 160px !important; }
	.profilo__destra { display: flex; flex-direction: column; gap: 18px; padding-top: 12px; }
	.profilo__nome-desktop { display: block; font-size: 24px; font-weight: 700; }
	.statistiche { display: flex; gap: 36px; text-align: left; }
	.statistiche li, .statistiche a { flex-direction: row; gap: 6px; font-size: 17px; align-items: baseline; }
	.statistiche strong { font-size: 17px; }
	.bio, .bottoni-profilo { margin-left: 240px; }
	.bottoni-profilo { max-width: 460px; }
	.evidenze { gap: 36px; padding: 36px 40px 40px; margin: 0; }
	.evidenza { width: 88px; }
	.evidenza__anello { width: 86px; height: 86px; }
	.evidenza__cerchio { font-size: 22px; }
	.evidenza__nome { font-size: 14px; font-weight: 600; width: 92px; }
	.schede { display: flex; justify-content: center; gap: 56px; border-bottom: 0; }
	.schede a, .schede span { border-bottom: 0; border-top: 2px solid transparent; margin-top: -1px; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
	.schede [aria-current="page"] { border-bottom: 0; border-top-color: var(--testo); }
	.griglia { gap: 4px; }
	.riquadro__testo { padding: 18px; }
	.riquadro__titolo { font-size: 24px; }
	.riquadro__sotto { font-size: 15px; }
	.riquadro__data { left: 14px; top: 14px; font-size: 14px; padding: 4px 10px; border-radius: 8px; }

	.post { max-width: 1100px; padding: 24px 40px 0; display: grid; grid-template-columns: minmax(0, 1fr); }
	.post__testa { padding: 12px 0; }
	.post__corpo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); border: 1px solid var(--linea); border-radius: 14px; overflow: hidden; }
	.post__img { background: var(--fondo-chiaro); display: flex; align-items: center; }
	.post__img img { max-height: 80vh; }
	.post__lato { padding: 22px; }
	.post__titolo { font-size: 26px; }
	.altri { padding: 32px 40px 0; }
	.altri__testa { padding: 0 0 12px; }
	.pagina { padding-top: 16px; }
}

/* Pulsante WhatsApp nei post */
.btn--whatsapp { background: #15803D; color: #fff; }
.btn--whatsapp:hover, .btn--whatsapp:focus-visible { background: #116632; color: #fff; }

/* Finestra "Scrivi una email" nei post */
.mail-scelta { border: 0; border-radius: 16px; padding: 24px; width: min(92vw, 380px); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.mail-scelta::backdrop { background: rgba(22,24,29,.5); }
.mail-scelta h2 { margin: 0 0 4px; font-size: 20px; padding-right: 40px; }
.mail-scelta__indirizzo { margin: 0 0 18px; font-weight: 700; word-break: break-all; color: var(--blu); }
.mail-scelta__azioni { display: grid; gap: 10px; }
.mail-scelta__azioni .btn { width: 100%; }
.mail-scelta__chiudi { position: absolute; top: 12px; right: 12px; margin: 0; }
.mail-scelta__chiudi button { background: none; border: 0; padding: 6px; cursor: pointer; color: inherit; border-radius: 8px; }
.mail-scelta__chiudi button:hover { background: rgba(0,0,0,.06); }

/* Logo delle associazioni nei cerchi */
.avatar__dentro img, .evidenza__cerchio img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar__dentro:has(img), .evidenza__cerchio:has(img) { background: #fff; overflow: hidden; }

/* Profilo associazione: social e scheda Profilo dell'app */
.bio__social { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; }
.bio__social a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--blu); text-decoration: none; }
.bio__social a:hover span { text-decoration: underline; }
.profilo-app__logo { display: flex; align-items: center; gap: 16px; }
.profilo-app__logo .campo { flex: 1; min-width: 0; }
.profilo-app__titolo { margin: 8px 0 0; line-height: 1.35; }
.profilo-app__titolo small { color: var(--grigio); }
