/* Template pnrr26 - Servizi Media */

@font-face { font-family: 'Titillium Web'; src: url('../fonts/titillium-web-v10-latin-ext_latin-regular.woff2') format('woff2'); font-weight: 300 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Titillium Web'; src: url('../fonts/titillium-web-v10-latin-ext_latin-700.woff2') format('woff2'); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
	--pnrr-primario: #0066cc;
	--pnrr-scuro: #00264c;
	--pnrr-avvisi: #e00d0d;
	--pnrr-testo: #333;
	--pnrr-sfondo: #f9f9f9;
	--pnrr-ombra: 0 2px 20px rgba(0, 0, 0, .08);
	--pnrr-alt-header: 90px;
}

html { scroll-padding-top: 140px; }
body { font-family: 'Titillium Web', Geneva, Tahoma, sans-serif; font-size: 16px; color: var(--pnrr-testo); background: var(--pnrr-sfondo); }
h1, h2, h3, h4, h5, h6, p, a, li, label, input, button { font-family: 'Titillium Web', Geneva, Tahoma, sans-serif; }
a { color: var(--pnrr-primario); }
a:hover { color: var(--pnrr-scuro); }
img { max-width: 100%; height: auto; }

.skiplink { position: absolute; left: -9999px; top: 0; z-index: 2000; background: #fff; color: var(--pnrr-primario); padding: .75rem 1rem; font-weight: 700; }
.skiplink:focus { left: 1rem; top: 1rem; }

/* ---------- Barra superiore ---------- */
.topbar { background: var(--pnrr-scuro); color: rgba(255,255,255,.85); font-size: 14px; }
.topbar-riga { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 1rem; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.25rem; }
.topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar a:hover, .topbar a:focus { color: #fff; text-decoration: underline; }
.topbar-contatti .fa-solid { margin-right: .35rem; }
.topbar-destra { display: flex; align-items: center; gap: 1.25rem; }
.topbar-social { gap: 1rem !important; }
.topbar-social a { font-size: 16px; }
.topbar-cerca { background: none; border: 0; color: #fff; font-size: 17px; padding: .25rem .4rem; cursor: pointer; }
.topbar-moduli p { margin: 0; }

/* ---------- Intestazione ---------- */
.intestazione { background: var(--pnrr-primario); color: #fff; }
.header-fisso .intestazione { position: sticky; top: 0; z-index: 1000; transition: box-shadow .2s; }
.header-fisso.scorrendo .intestazione { box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.intestazione-riga { display: flex; align-items: center; min-height: var(--pnrr-alt-header); gap: 1.5rem; }
.marchio { display: flex; align-items: center; gap: .9rem; color: #fff; text-decoration: none; flex: 0 0 auto; }
.marchio:hover, .marchio:focus { color: #fff; }
.marchio img { width: 54px; height: auto; }
.marchio-testo { display: flex; flex-direction: column; line-height: 1.15; text-transform: uppercase; font-size: 18px; }
.marchio-riga1 { font-weight: 400; white-space: nowrap; }
.marchio-riga2 { font-weight: 700; }

.menu-principale { flex: 1 1 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.menu-pannello-testa { display: none; }
.menu-voci { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.menu-voce { position: relative; }
.menu-link { display: flex; align-items: center; gap: .35rem; height: var(--pnrr-alt-header); padding: 0 14px; color: #fff; font-size: 18px; font-weight: 600; background: none; border: 0; text-decoration: none; cursor: pointer; white-space: nowrap; }
.menu-link .fa-chevron-down { font-size: 12px; transition: transform .2s; }
.menu-link:hover, .menu-link:focus, .menu-voce.attiva > .menu-link { color: #fff; background: rgba(0,0,0,.12); text-decoration: none; }
.menu-link[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
.menu-voce.attiva > .menu-link { box-shadow: inset 0 -4px 0 #fff; }

.sottomenu { position: absolute; top: 100%; left: 0; width: 320px; background: #fff; box-shadow: var(--pnrr-ombra); border-radius: 0 0 4px 4px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 1001; }
.menu-voce.aperta > .sottomenu { opacity: 1; visibility: visible; transform: none; }
.sottomenu ul { list-style: none; margin: 0; padding: .5rem 0; }
.sottomenu a, .sottomenu-titolo { display: block; padding: 10px 22px; color: var(--pnrr-scuro); font-size: 16px; text-decoration: none; }
.sottomenu a:hover, .sottomenu a:focus, .sottomenu li.attiva > a { color: var(--pnrr-primario); background: #f1f5fa; }
.sottomenu-titolo { font-weight: 700; text-transform: uppercase; font-size: 13px; color: #667; }
.sottomenu li:first-child a[data-element="overview"] { font-weight: 700; }

.menu-destra { display: flex; align-items: center; }
.menu-destra .menu-voci, .menu-destra ul { display: flex; list-style: none; margin: 0; padding: 0; }
.menu-destra a { color: #fff; font-weight: 600; font-size: 17px; padding: 0 12px; text-decoration: none; }
.menu-destra a:hover, .menu-destra a:focus { text-decoration: underline; color: #fff; }
.menu-destra .menu-link { font-size: 17px; }

.menu-apri, .menu-chiudi { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; padding: .25rem .5rem; }

/* ---------- Avvisi ---------- */
.avvisi { display: flex; align-items: stretch; background: var(--pnrr-scuro); color: #fff; min-height: 36px; }
.avvisi-etichetta { position: relative; background: var(--pnrr-avvisi); flex: 0 0 auto; display: flex; align-items: center; padding: 0 1.25rem 0 max(1rem, calc((100vw - 1320px) / 2 + 12px)); font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: .03em; }
.avvisi-etichetta::after { content: ""; position: absolute; right: -18px; top: 0; bottom: 0; width: 18px; background: var(--pnrr-avvisi); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.avvisi-testo { flex: 1 1 auto; overflow: hidden; display: flex; align-items: center; padding: 0 1rem 0 2rem; font-size: 15px; }
.avvisi-testo > * { width: 100%; }
.avvisi-testo ul { list-style: none; margin: 0; padding: 0; }
.avvisi-testo p { margin: 0; }
.avvisi-testo a { color: #fff; }
.avvisi .avviso { display: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avvisi .avviso.attivo { display: block; animation: avviso-entra .4s ease; }
@keyframes avviso-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.avvisi-frecce { display: flex; align-items: center; padding-right: max(1rem, calc((100vw - 1320px) / 2 + 12px)); }
.avvisi-frecce button { background: none; border: 0; color: #fff; padding: .25rem .5rem; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .avvisi .avviso.attivo { animation: none; } }

/* ---------- Ricerca ---------- */
.ricerca-pannello { position: fixed; inset: 0; z-index: 1100; }
.ricerca-velo { position: absolute; inset: 0; background: rgba(0, 38, 76, .85); }
.ricerca-box { position: relative; margin-top: 18vh; }
.ricerca-box form { display: flex; gap: .75rem; align-items: center; }
.ricerca-box input { flex: 1; height: 56px; font-size: 20px; border-radius: 4px; border: 0; padding: 0 1rem; }
.ricerca-box .btn { height: 56px; padding: 0 1.75rem; }
.ricerca-chiudi { background: none; border: 0; color: #fff; font-size: 28px; padding: .5rem; cursor: pointer; }

/* ---------- Briciole e titolo ---------- */
.briciole { background: #fff; }
.briciole .breadcrumb { margin: 0; padding: 12px 0; font-size: 14px; background: none; }
.briciole .breadcrumb-item + .breadcrumb-item::before { content: none; }
.briciole .breadcrumb-item { padding: 0; }
.briciole .separator { margin: 0 .5rem; color: #999; }
.briciole a { color: var(--pnrr-primario); text-decoration: none; }
.briciole a:hover { text-decoration: underline; }
.fascia-titolo { background: var(--pnrr-primario); color: #fff; padding: 50px 0; }
.fascia-titolo h1 { color: #fff; font-size: 54px; font-weight: 400; line-height: 1.1; margin: 0; }
.fascia-sottotitolo { font-size: 22px; margin: .75rem 0 0; color: #fff; }
.com_content.view-article .com-content-article .page-header h1,
.com_content.view-article .com-content-article .page-header h2 { display: none; }

/* ---------- Corpo ---------- */
.corpo { padding-bottom: 50px; }
.corpo-contenuto { padding-top: 50px; }
.is-home .corpo-contenuto { padding-top: 0; }
.is-home .corpo-contenuto .componente:empty { display: none; }
.banner { background: var(--pnrr-primario); }
.sopra-contenuto { padding-top: 40px; }
.sotto-contenuto { padding-top: 40px; }
.home-sezione { padding: 50px 0; }
.home-sezione:nth-child(even) { background: #fff; }
.home-sezione .modulo-titolo, .home-titolo { text-align: center; text-transform: uppercase; font-weight: 700; font-size: 28px; color: var(--pnrr-scuro); margin-bottom: 2rem; }
.modulo + .modulo { margin-top: 2rem; }
.modulo-titolo { font-size: 20px; font-weight: 700; color: var(--pnrr-scuro); }
.barra-laterale .modulo { background: #fff; padding: 1.5rem; box-shadow: var(--pnrr-ombra); border-radius: 4px; }

/* Articoli e blog */
.com-content-article { background: #fff; padding: 2rem; box-shadow: var(--pnrr-ombra); border-radius: 4px; }
.blog-items { display: grid; gap: 24px; }
.blog-items.columns-2 { grid-template-columns: repeat(2, 1fr); }
.blog-items.columns-3 { grid-template-columns: repeat(3, 1fr); }
.blog-item { background: #fff; box-shadow: var(--pnrr-ombra); border-radius: 4px; padding: 1.5rem; }
.blog-item .page-header h2, .blog-item h2 { font-size: 18px; font-weight: 700; text-transform: uppercase; }
.blog-item h2 a { color: var(--pnrr-primario); text-decoration: none; }
.article-info { font-size: 14px; color: #666; }
@media (max-width: 991.98px) { .blog-items.columns-2, .blog-items.columns-3 { grid-template-columns: 1fr; } }
.articolo { background: #fff; padding: 2rem; box-shadow: var(--pnrr-ombra); border-radius: 4px; }
.articolo-immagine { margin: 0 0 1.5rem; }
.articolo-immagine img { max-width: 100%; max-height: 420px; width: auto; height: auto; }
.articolo-testo img { max-width: 100%; height: auto; }
.articolo-testo h2 { font-size: 24px; font-weight: 700; color: var(--pnrr-scuro); margin: 2rem 0 .75rem; }
.articolo-testo h3 { font-size: 20px; font-weight: 700; margin: 1.5rem 0 .5rem; }
.articolo-testo h4 { font-size: 17px; font-weight: 700; margin: 1.25rem 0 .5rem; }
.articolo-testo table { width: 100%; margin-bottom: 1rem; }
.articolo-testo td, .articolo-testo th { border-bottom: 1px solid #e6e9f2; padding: .5rem; vertical-align: top; }
.articolo-argomenti { margin-top: 2rem; }
.argomenti { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-argomento { display: inline-block; border: 1px solid var(--pnrr-primario); border-radius: 16px; padding: .15rem .8rem; font-size: 14px; text-decoration: none; }
.articolo-meta { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid #e6e9f2; font-size: 14px; color: #5c6f82; }
.blog-descrizione { margin-bottom: 2rem; }
.blog-sottocategorie { margin-bottom: 2rem; }
.scheda { background: #fff; box-shadow: var(--pnrr-ombra); border-radius: 4px; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.scheda-categoria { padding: 1.5rem; border-top: 4px solid var(--pnrr-primario); }
.scheda-immagine { display: block; aspect-ratio: 16 / 9; background: #e6e9f2; }
.scheda-immagine img { width: 100%; height: 100%; object-fit: cover; }
.scheda-corpo { padding: 1.5rem; }
.scheda-data { font-size: 13px; text-transform: uppercase; color: #5c6f82; margin-bottom: .5rem; }
.scheda-categoria-nome { font-weight: 700; color: var(--pnrr-scuro); }
.scheda-titolo { font-size: 20px; font-weight: 700; line-height: 1.3; margin-bottom: .75rem; }
.scheda-titolo a { color: var(--pnrr-primario); text-decoration: none; }
.scheda-titolo a:hover, .scheda-titolo a:focus { text-decoration: underline; }
.scheda p:last-child { margin-bottom: 0; }
.blog-paginazione { margin-top: 2rem; display: flex; justify-content: center; }

/* ---------- Piè di pagina ---------- */
.piede-colonne { background: var(--pnrr-primario); color: #fff; padding: 80px 0 40px; font-size: 14px; }
.piede-colonne a { color: #fff; text-decoration: none; }
.piede-colonne a:hover, .piede-colonne a:focus { text-decoration: underline; }
.piede-colonne .modulo-titolo { color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.3); }
.piede-colonne ul { list-style: none; margin: 0; padding: 0; }
.piede-colonne li { margin: 0 0 .4rem; text-transform: uppercase; }
.piede-colonne p { color: #fff; }
/* Modifica in pagina (solo amministratori connessi): etichette nascoste fino al passaggio del mouse */
.jmodedit + [role="tooltip"], .jmodedit ~ [role="tooltip"] { display: none; }
.jmodedit:hover + [role="tooltip"], .jmodedit:focus + [role="tooltip"] { display: block; position: absolute; z-index: 1100; background: #1a1a1a; color: #fff; font-size: 12px; line-height: 1.4; padding: .4rem .6rem; border-radius: 4px; max-width: 220px; }

.piede-colonna { margin-bottom: 2rem; }
.piede-colonna .modulo + .modulo { margin-top: 2rem; }
.piede-marchio { display: flex; align-items: center; gap: .75rem; text-transform: uppercase; line-height: 1.2; font-size: 15px; }
.piede-scuola p { font-size: 14px; line-height: 1.6; }
.piede-fondo { background: var(--pnrr-scuro); color: #fff; padding: 17px 0; font-size: 14px; }
.piede-fondo a { color: #fff; }
.piede-fondo-riga { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.piede-fondo p { margin: 0; }
.piede-dx img { max-height: 30px; width: auto; margin-left: 1rem; }

.torna-su { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--pnrr-primario); color: #fff; box-shadow: var(--pnrr-ombra); z-index: 900; cursor: pointer; }

/* ---------- Mobile ---------- */
@media (max-width: 1199.98px) {
	.menu-link { padding: 0 10px; font-size: 17px; }
	.marchio-testo { font-size: 16px; }
}
@media (max-width: 991.98px) {
	:root { --pnrr-alt-header: 72px; }
	.menu-apri { display: block; margin-left: auto; }
	.menu-principale { position: fixed; top: 0; left: 0; bottom: 0; width: min(340px, 88vw); background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; overflow-y: auto; transform: translateX(-100%); transition: transform .25s; z-index: 1200; visibility: hidden; }
	.menu-principale.aperto { transform: none; visibility: visible; }
	.menu-pannello-testa { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; background: var(--pnrr-primario); color: #fff; text-transform: uppercase; }
	.menu-chiudi { display: block; font-size: 22px; }
	.menu-voci { flex-direction: column; }
	.menu-link { height: auto; padding: 14px 1.25rem; color: var(--pnrr-scuro); width: 100%; justify-content: space-between; border-bottom: 1px solid #e6e9f2; }
	.menu-link:hover, .menu-link:focus, .menu-voce.attiva > .menu-link { color: var(--pnrr-primario); background: #f1f5fa; box-shadow: none; }
	.sottomenu { position: static; width: auto; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; background: #f7f9fc; }
	.menu-voce.aperta > .sottomenu { display: block; }
	.sottomenu a { padding-left: 2rem; }
	.menu-destra { display: block; border-top: 4px solid var(--pnrr-primario); }
	.menu-destra .menu-voci, .menu-destra ul { flex-direction: column; }
	.menu-destra a { display: block; color: var(--pnrr-scuro); padding: 14px 1.25rem; border-bottom: 1px solid #e6e9f2; }
	.menu-velo { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1150; }
	.fascia-titolo { padding: 32px 0; }
	.fascia-titolo h1 { font-size: 36px; }
	.fascia-sottotitolo { font-size: 18px; }
	.avvisi-etichetta { padding-left: 1rem; }
	.avvisi-frecce { padding-right: .5rem; }
}
@media (max-width: 767.98px) {
	.topbar-contatti li:nth-child(2) { display: none; }
	.marchio img { width: 42px; }
	.marchio-testo { font-size: 14px; }
	.avvisi-etichetta span { display: none; }
	.avvisi-etichetta { padding: 0 .5rem; }
	.avvisi-etichetta::before { content: "\f0a1"; font-family: "Font Awesome 6 Free"; font-weight: 900; }
	.com-content-article { padding: 1.25rem; }
	.ricerca-box form { flex-wrap: wrap; }
}

/* ---------- Home: sezioni come il vecchio sito ---------- */
.is-home .corpo { padding-bottom: 0; }
.home-sezione.home-1 { padding: 0; background: var(--pnrr-primario); }
.home-1 > .container { max-width: none; padding: 0; }
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; }
.hero-testo { display: flex; flex-direction: column; justify-content: center; padding: 60px 8vw 60px max(24px, calc((100vw - 1320px) / 2 + 12px)); color: #fff;
  background: var(--pnrr-primario) radial-gradient(circle at 20% 30%, rgba(255,255,255,.10) 0 70px, transparent 71px), radial-gradient(circle at 85% 80%, rgba(255,255,255,.08) 0 120px, transparent 121px); }
.hero-sopra { font-size: 26px; font-weight: 600; text-transform: uppercase; margin: 0 0 .25rem; }
.hero-titolo { font-size: 44px; font-weight: 700; text-transform: uppercase; color: #fff; margin: 0 0 2rem; line-height: 1.1; }
.hero-btn { padding: .8rem 1.6rem; font-weight: 600; color: var(--pnrr-primario); }
.hero-immagine img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 991.98px) { .hero { grid-template-columns: 1fr; } .hero-immagine { max-height: 320px; overflow: hidden; } .hero-titolo { font-size: 34px; } }

.link-rapidi { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.link-rapido { display: block; height: 100%; background: var(--pnrr-primario); color: #fff; text-align: center; font-weight: 700; padding: 1rem .75rem; border-radius: 4px; text-decoration: none; }
.link-rapido:hover, .link-rapido:focus { background: var(--pnrr-scuro); color: #fff; }
.loghi-striscia { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 40px; }
.loghi-striscia img { max-height: 56px; max-width: 170px; width: auto; height: auto; display: block; }
.home-sezione.home-3 { background: #eef5fc; }
.home-sezione.home-6 { background: #fff; }
.loghi-istituzionali img { max-height: 70px; }

.home-sezione.home-4 { background: var(--pnrr-primario) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23ffffff' fill-opacity='.07' d='M0 60 Q180 0 360 60 T720 60 T1080 60 T1440 60 V120 H0Z'/%3E%3C/svg%3E") repeat-x center 220px / 1440px 120px; color: #fff; }
.home-4 .modulo-titolo { color: #fff; text-align: left; }
.home-4 .modulo > p, .home-4 .text-center { text-align: left !important; color: #fff; font-size: 20px; max-width: 520px; }
.scheda-servizio { display: flex; flex-direction: row; border-top: 0; padding: 0; }
.scheda-servizio-img { width: 160px; flex: 0 0 160px; object-fit: contain; background: #f2f6fb; padding: 16px; }
.scheda-servizio-testo { padding: 1.5rem; }
.home-4 .btn-primary { background: #fff; color: var(--pnrr-primario); border-color: #fff; }

.home-sezione.home-5 { background: var(--pnrr-scuro); color: #fff; }
.home-5 .modulo-titolo { display: none; }
.scuola-anno { color: #fff; font-size: 26px; font-weight: 700; text-transform: uppercase; }
.scuola-didattica { color: #fff; font-size: 48px; font-weight: 400; margin: 0; }
.scuola-sotto a { color: #fff; font-size: 20px; }
.livello { border-bottom: 1px solid rgba(255,255,255,.2); padding: .5rem 0; }
.livello summary { cursor: pointer; font-size: 20px; font-weight: 700; text-transform: uppercase; list-style: none; padding: .5rem 0; }
.livello summary::-webkit-details-marker { display: none; }
.livello summary::before { content: "+"; display: inline-block; width: 1.25em; }
.livello[open] summary::before { content: "\2212"; }
.livello p { margin: .5rem 0 1rem; }
.home-5 .btn-outline-light { margin-top: 1rem; }
.home-4 .scheda { color: var(--pnrr-testo); }
.loghi-striscia { gap: 24px 28px; }
.loghi-striscia img { max-width: 150px; }

/* Slider: sfondo scolastico come il vecchio sfondo geometrico */
.hero-testo { background: var(--pnrr-primario) url("../../../../../images/sfondo-scuola.webp") left center / cover no-repeat; }

/* Notizie: immagine intera (anche verticale) con altezza fissa 16:9 */
.scheda-immagine { position: relative; overflow: hidden; }
.scheda-immagine img { position: absolute; inset: 0; height: 100%; object-fit: contain; }

/* Link rapidi: testo centrato nel bottone */
.link-rapido { display: flex; align-items: center; justify-content: center; text-align: center; height: 100%; }


/* Slider: tipo di scuola su un rigo, piccolo; nome sotto, grande */
.hero-testo { container-type: inline-size; padding-right: 24px; }
.hero-sopra { font-size: min(22px, 3.6cqi); white-space: nowrap; }
@media (max-width: 991.98px) { .hero-sopra { font-size: 18px; white-space: normal; } }

/* Intestazione: tipo di scuola piccolo, nome grande sotto */
.marchio-testo .marchio-riga1 { font-size: 14px; }
.marchio-testo .marchio-riga2 { font-size: 23px; line-height: 1.1; }
@media (max-width: 991.98px) { .marchio-testo .marchio-riga1 { font-size: 11px; } .marchio-testo .marchio-riga2 { font-size: 17px; } }

/* Offerta formativa: pagina uguale alla sezione Didattica della home */
body:has(.offerta-pagina) { overflow-x: hidden; }
body:has(.offerta-pagina) .fascia-titolo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; padding: 0; }
.articolo:has(.offerta-pagina) { background: none; box-shadow: none; padding: 0; border-radius: 0; }
.articolo:has(.offerta-pagina) .articolo-meta { display: none; }
.offerta-pagina { width: 100vw; margin-left: calc(50% - 50vw); margin-top: -50px; }
.corpo-contenuto:has(.offerta-pagina) { padding-bottom: 0; margin-bottom: 0; }
.articolo-testo .offerta-pagina h2.scuola-anno { color: #fff; font-size: 26px; margin: 0 0 .5rem; }
.articolo-testo .offerta-pagina h3.scuola-didattica { color: #fff; font-size: 48px; font-weight: 400; margin: 0; }
.corpo:has(.offerta-pagina) { padding-bottom: 0; }

/* Scheda (Le carte della scuola) come nel vecchio sito */
.scheda-testa { display: flex; align-items: center; gap: 2.5rem; background: #e3f0fb; padding: 2.5rem 4rem; margin-bottom: 3rem; }
.scheda-logo { width: 180px; max-width: 30%; height: auto; flex-shrink: 0; }
.scheda-titolo { color: var(--pnrr-primario, #0066cc); text-transform: uppercase; font-weight: 700; font-size: 40px; margin: 0 0 .5rem; }
.scheda-sottotitolo { color: var(--pnrr-primario, #0066cc); font-size: 20px; margin: 0; }
.scheda-corpo { display: grid; grid-template-columns: 250px 1fr; gap: 4rem; align-items: start; }
.scheda-indice { border: 1px solid #e6e9f2; padding: 1.25rem 1.5rem; position: sticky; top: 110px; }
.scheda-indice ul { list-style: none; margin: 0; padding: 0; }
.scheda-indice li + li { margin-top: .75rem; }
.scheda-indice a { text-decoration: none; }
.scheda-testo h2 { text-transform: uppercase; font-size: 24px; margin: 0 0 1.25rem; scroll-margin-top: 120px; }
.scheda-testo h2:not(:first-child) { margin-top: 4rem; }
.scheda-testo h3 { text-transform: uppercase; font-size: 18px; }
.scheda-ufficio { display: inline-flex; align-items: center; gap: 1rem; min-width: min(100%, 460px); padding: 1.25rem 1.5rem; box-shadow: var(--pnrr-ombra, 0 2px 12px rgba(0,0,0,.1)); border-radius: 4px; text-decoration: none; font-weight: 700; text-transform: uppercase; margin: .5rem 1rem .5rem 0; }
.scheda-ufficio img { width: 48px; height: 48px; }
.scheda-date { margin: 4rem 0 0; font-size: 14px; display: flex; gap: 1.5rem; flex-wrap: wrap; }
@media (max-width: 991px) {
	.scheda-testa { flex-direction: column; text-align: center; padding: 2rem 1.5rem; gap: 1.5rem; }
	.scheda-titolo { font-size: 28px; }
	.scheda-corpo { grid-template-columns: 1fr; gap: 2rem; }
	.scheda-indice { position: static; }
}

.scheda-licenza { font-size: 14px; margin: .5rem 0 0; }
