/* Restyling 2026 – modello delle pagine interne (Infanzia, Primaria, …): classi db-* del Layout Builder. */

#top.db-restyle .db-page-hero-section .container,
#top.db-restyle .db-info-section .container,
#top.db-restyle .db-goals-section .container,
#top.db-restyle .db-day-section .container,
#top.db-restyle .db-cta-section .container,
#top.db-restyle .db-docs-section .container { max-width: 1120px; }

/* Icone aggiuntive (emoji nel CSS: il database non salva caratteri a 4 byte) */
#top.db-restyle .db-ico-clock::before    { content: "\1F557"; }
#top.db-restyle .db-ico-balloon::before  { content: "\1F388"; }
#top.db-restyle .db-ico-seedling::before { content: "\1F331"; }
#top.db-restyle .db-ico-raised::before   { content: "\1F64C"; }
#top.db-restyle .db-ico-search::before   { content: "\1F50E"; }
#top.db-restyle .db-ico-yheart::before   { content: "\1F49B"; }
#top.db-restyle .db-ico-earth::before    { content: "\1F30D"; }
#top.db-restyle .db-ico-laptop::before   { content: "\1F4BB"; }
#top.db-restyle .db-ico-books::before    { content: "\1F4DA"; }
#top.db-restyle .db-ico-doc::before      { content: "\1F4C4"; }
#top.db-restyle .db-ico-tear::before     { content: "\1F4C6"; }
#top.db-restyle .db-ico-sun::before      { content: "\2600\FE0F"; }
#top.db-restyle .db-ico-tree::before     { content: "\1F333"; }

/* ---------- Documenti scaricabili (PDF) ---------- */
#top.db-restyle .db-docs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
#top.db-restyle .db-docs li { margin: 0; padding: 0; }
#top.db-restyle .avia_textblock .db-docs a {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 100%;
	box-sizing: border-box;
	background: rgba(255, 255, 255, .97);
	border-radius: var(--db-radius-card);
	padding: 18px 20px;
	box-shadow: var(--db-shadow-card);
	text-decoration: none;
	color: var(--db-text);
	transition: transform .15s ease, box-shadow .15s ease;
}
#top.db-restyle .avia_textblock .db-docs a:hover { transform: translateY(-3px); }
#top.db-restyle .db-docs .db-doc-ico {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	display: grid;
	place-items: center;
	font-size: 24px;
	background: var(--db-tint-green);
}
#top.db-restyle .db-docs .db-doc-ico.db-icon--sun { background: var(--db-tint-sun); }
#top.db-restyle .db-docs .db-doc-ico.db-icon--coral { background: var(--db-tint-coral); }
#top.db-restyle .db-docs .db-doc-txt { flex: 1; min-width: 0; }
#top.db-restyle .db-docs .db-doc-txt b {
	display: block;
	font-family: var(--db-font-head);
	font-weight: 600;
	font-size: 18px;
	line-height: 1.25;
	color: var(--db-forest);
}
#top.db-restyle .db-docs .db-doc-txt small { display: block; margin-top: 4px; font-size: 13px; color: var(--db-text-soft); }
#top.db-restyle .db-docs .db-doc-go {
	flex: 0 0 auto;
	font-weight: 800;
	font-size: 14px;
	color: var(--db-green);
	background: var(--db-tint-green);
	border-radius: var(--db-radius-pill);
	padding: 8px 14px;
}
#top.db-restyle .avia_textblock .db-docs a:hover .db-doc-go { background: var(--db-green); color: #fff; }
/* documento in evidenza (es. il PTOF): occupa tutta la riga */
#top.db-restyle .db-docs li.db-doc--main { grid-column: 1 / -1; }
#top.db-restyle .db-docs li.db-doc--main a { padding: 24px 26px; }
#top.db-restyle .db-docs li.db-doc--main .db-doc-txt b { font-size: 22px; }
#top.db-restyle .db-docs li.db-doc--main .db-doc-go { background: var(--db-coral); color: var(--db-coral-ink); }
@media only screen and (max-width: 767px) {
	#top.db-restyle .db-docs { grid-template-columns: 1fr; }
	#top.db-restyle .db-docs .db-doc-go { display: none; }
	#top.db-restyle .db-docs li.db-doc--main a { padding: 20px; }
	#top.db-restyle .db-docs li.db-doc--main .db-doc-txt b { font-size: 19px; }
}

/* ---------- Testata della pagina (testo + foto a blob) ---------- */
#top.db-restyle .db-page-hero-section { padding: 18px 0 64px; overflow: visible; }
#top.db-restyle .db-page-hero-section .entry-content-wrapper { display: flex; align-items: center; }
#top.db-restyle .db-crumbs {
	font-size: 13px;
	font-weight: 700;
	color: var(--db-text-soft);
	margin: 0 0 14px;
}
#top.db-restyle .avia_textblock .db-crumbs a { color: var(--db-text-soft); text-decoration: none; }
#top.db-restyle .avia_textblock .db-crumbs a:hover { color: var(--db-green); }

/* ---------- Card informative ---------- */
#top.db-restyle .flex_column.db-info-card {
	background: #fff;
	border-radius: var(--db-radius-card);
	padding: 26px;
	box-shadow: var(--db-shadow-card);
}
#top.db-restyle .db-info-card h3 { font-size: 22px; margin: 4px 0 8px; }
#top.db-restyle .db-info-card p { font-size: 15px; line-height: 1.55; margin: 0 0 10px; }
#top.db-restyle .db-info-card p:last-child { margin-bottom: 0; }
#top.db-restyle .avia_textblock .db-big {
	font-family: var(--db-font-head);
	font-weight: 600;
	font-size: 28px;
	line-height: 1.1;
	color: var(--db-forest);
	margin: 0 0 4px;
}
#top.db-restyle .avia_textblock .db-small { font-size: 13px; color: var(--db-text-soft); }
#top.db-restyle .db-dates { display: grid; gap: 10px; margin: 6px 0 16px; }
#top.db-restyle .db-dates > div {
	background: var(--db-cream);
	border-radius: var(--db-radius-sm);
	padding: 10px 14px;
	font-size: 15px;
}
#top.db-restyle .db-dates b {
	display: block;
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--db-green);
}

/* Link a forma di pulsante: secondario e CTA (il primario è .db-link-btn in home.css) */
#top.db-restyle .avia_textblock a.db-link-btn--sec,
#top.db-restyle .avia_textblock a.db-link-btn--cta {
	display: inline-block;
	font-weight: 800;
	font-size: 15px;
	text-decoration: none;
	border-radius: var(--db-radius-pill);
	padding: 12px 22px;
	margin: 4px 10px 4px 0;
}
#top.db-restyle .avia_textblock a.db-link-btn--sec { background: #fff; color: var(--db-green); box-shadow: inset 0 0 0 2.5px var(--db-green); }
#top.db-restyle .avia_textblock a.db-link-btn--sec:hover { background: var(--db-tint-green); }
#top.db-restyle .avia_textblock a.db-link-btn--cta { background: var(--db-coral); color: var(--db-coral-ink); box-shadow: 0 4px 0 var(--db-coral-dark); }
#top.db-restyle .avia_textblock a.db-link-btn--cta:hover { background: #EE7D47; }

/* ---------- Obiettivi del progetto educativo ---------- */
#top.db-restyle .db-goals {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
#top.db-restyle .db-goals li {
	margin: 0;
	background: #fff;
	border-radius: 22px;
	padding: 22px;
	box-shadow: var(--db-shadow-card);
}
#top.db-restyle .db-goals h4 { font-size: 18px; margin: 2px 0 4px; }
#top.db-restyle .db-goals p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--db-text-soft); }

/* "Leggi tutto": toggle di Enfold */
#top.db-restyle .db-readmore { margin-top: 22px; }
#top.db-restyle .db-readmore .single_toggle {
	background: #fff;
	border: 0;
	border-radius: 18px;
	box-shadow: var(--db-shadow-card);
	overflow: hidden;
}
#top.db-restyle .db-readmore .toggler {
	border: 0;
	background: #fff;
	color: var(--db-green);
	font-weight: 800;
	padding: 16px 22px 16px 48px;
}
#top.db-restyle .db-readmore .toggler.activeTitle { background: #fff; }
#top.db-restyle .db-readmore .toggle_wrap { border: 0; }
#top.db-restyle .db-readmore .toggle_content { padding: 0 22px 18px; font-size: 15px; color: var(--db-text-soft); border: 0; }

/* ---------- La giornata tipo: fascia verde con onde ---------- */
#top.db-restyle .db-day-section,
#top.db-restyle .db-day-section .container { background-color: var(--db-green); }
#top.db-restyle .db-day-section { position: relative; overflow: visible; margin: 56px 0; z-index: 1; }
#top.db-restyle .db-day-section::before,
#top.db-restyle .db-day-section::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 48px;
	--db-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48 C 200 0 400 0 600 24 S 1000 48 1200 10 V48 Z'/%3E%3C/svg%3E");
	background: var(--db-green);
	-webkit-mask: var(--db-wave) center / 100% 100% no-repeat;
	mask: var(--db-wave) center / 100% 100% no-repeat;
	pointer-events: none;
}
#top.db-restyle .db-day-section::before { top: -47px; }
#top.db-restyle .db-day-section::after { bottom: -47px; transform: rotate(180deg); }
#top.db-restyle .db-day-section .db-kicker { color: var(--db-sun); }
#top.db-restyle .db-timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
#top.db-restyle .db-timeline li {
	margin: 0;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 18px;
	padding: 16px 18px;
	display: flex;
	gap: 14px;
	align-items: center;
	color: #fff;
	font-weight: 700;
}
#top.db-restyle .db-timeline .db-t {
	background: var(--db-sun);
	color: var(--db-forest);
	font-weight: 800;
	font-size: 13px;
	border-radius: var(--db-radius-pill);
	padding: 5px 11px;
	white-space: nowrap;
}
#top.db-restyle .db-day-section .db-day-note { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .88); }

/* ---------- Fascia finale "Vieni a conoscerci" ---------- */
#top.db-restyle .db-cta-section { padding: 10px 0 30px; }
#top.db-restyle .flex_column.db-cta-box {
	background: var(--db-tint-coral);
	border-radius: var(--db-radius-lg);
	padding: 44px;
}
#top.db-restyle .db-cta-box .avia_textblock {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 30px;
	align-items: center;
}
#top.db-restyle .db-cta-box h2 { margin: 0 0 8px; }
#top.db-restyle .db-cta-box p { margin: 0; }
#top.db-restyle .db-cta-box .db-cta-actions { text-align: right; }

/* ---------- Responsive ---------- */
@media only screen and (max-width: 989px) {
	#top.db-restyle .db-goals,
	#top.db-restyle .db-timeline { grid-template-columns: 1fr 1fr; }
}
@media only screen and (max-width: 767px) {
	#top.db-restyle .db-page-hero-section .entry-content-wrapper { flex-direction: column-reverse; }
	#top.db-restyle .db-page-hero-section .db-hero-media { max-width: 340px; margin: 0 auto 24px; }
	#top.db-restyle .flex_column.db-info-card { margin-bottom: 16px; }
	#top.db-restyle .db-goals,
	#top.db-restyle .db-timeline { grid-template-columns: 1fr; }
	#top.db-restyle .flex_column.db-cta-box { padding: 26px; border-radius: 24px; }
	#top.db-restyle .db-cta-box .avia_textblock { grid-template-columns: 1fr; }
	#top.db-restyle .db-cta-box .db-cta-actions { text-align: left; }
}

/* ---------- Sezioni con i murales della scuola come sfondo (db-mural-section) ---------- */
#top.db-restyle .avia-section.db-mural-section {
	position: relative;
	overflow: visible;
	margin: 48px 0;
	background-size: cover;
	z-index: 1;
}
#top.db-restyle .db-mural-section .container { background: transparent; }
#top.db-restyle .db-mural-section .content { padding-top: 170px; padding-bottom: 170px; }
/* variante B: più murale visibile tra il titolo e le card */
#top.db-restyle .db-mural-section .av_textblock_section:has(.db-section-head) { margin-bottom: 110px; }
/* onde crema sopra e sotto, per raccordare la foto al fondo della pagina */
#top.db-restyle .avia-section.db-mural-section::before,
#top.db-restyle .avia-section.db-mural-section::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 48px;
	z-index: 3;
	--db-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 48' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H1200 V22 C 1000 48 800 48 600 24 S 200 0 0 34 Z'/%3E%3C/svg%3E");
	background: var(--db-cream);
	-webkit-mask: var(--db-wave) center / 100% 100% no-repeat;
	mask: var(--db-wave) center / 100% 100% no-repeat;
	pointer-events: none;
}
#top.db-restyle .avia-section.db-mural-section::before { top: -1px; }
#top.db-restyle .avia-section.db-mural-section::after { bottom: -1px; transform: rotate(180deg); }
/* titolo della sezione su un riquadro crema, leggibile sopra il murale */
#top.db-restyle .db-mural-section .avia_textblock.db-section-head {
	display: inline-block;
	max-width: 760px;
	background: rgba(255, 248, 238, .92);
	border-radius: var(--db-radius-card);
	padding: 22px 28px;
	box-shadow: var(--db-shadow-card);
}
#top.db-restyle .db-mural-section .db-goals li { background: rgba(255, 255, 255, .96); }
#top.db-restyle .db-mural-section .db-readmore .single_toggle { background: rgba(255, 255, 255, .96); }

/* Fascia CTA sopra un murale: il riquadro corallo resta in primo piano */
#top.db-restyle .db-cta-section.db-mural-section .content { padding-top: 190px; padding-bottom: 190px; }
#top.db-restyle .db-cta-section.db-mural-section .flex_column.db-cta-box {
	background: rgba(255, 225, 211, .95);
	box-shadow: 0 10px 30px rgba(31, 77, 43, .12);
}

@media only screen and (max-width: 767px) {
	#top.db-restyle .db-mural-section .content { padding-top: 110px; padding-bottom: 110px; }
	#top.db-restyle .db-mural-section .av_textblock_section:has(.db-section-head) { margin-bottom: 70px; }
	#top.db-restyle .db-cta-section.db-mural-section .content { padding-top: 130px; padding-bottom: 130px; }
	#top.db-restyle .db-mural-section .avia_textblock.db-section-head { padding: 18px 20px; }
}

/* ---------- Domande frequenti (home) ---------- */
#top.db-restyle .db-faq-section .container { max-width: 880px; }
#top.db-restyle .db-faq .single_toggle { margin-bottom: 12px; }
#top.db-restyle .db-faq .toggler { font-family: var(--db-font-head); font-weight: 600; font-size: 18px; color: var(--db-forest); }
#top.db-restyle .db-faq .toggler:hover,
#top.db-restyle .db-faq .toggler.activeTitle { color: var(--db-green); }
#top.db-restyle .db-faq .toggle_content { font-size: 16px; color: var(--db-text); }
#top.db-restyle .db-readmore .toggle_wrap,
#top.db-restyle .db-readmore .toggle_wrap .toggle_content { background: #fff; border-radius: 0 0 18px 18px; }
#top.db-restyle .db-readmore .single_toggle { background: #fff; }
