/*
Theme Name: Pierdea
Author: No Digital Brain
Description: Tema PHP statico per pierdea.it: sostituisce Hello Elementor + Elementor Pro (Theme Builder) con lo stesso aspetto. Nessuno script esterno, un solo foglio di stile.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: pierdea
*/

/* ==========================================================================
   1. Hello Elementor 3.4.5 — reset.css e theme.css, invariati.
      Servono alle pagine che nel vecchio sito erano «Hello puro» (blog, articoli, categorie, ricerca).
   ========================================================================== */
html{line-height:1.15;-webkit-text-size-adjust:100%}*,:after,:before{box-sizing:border-box}body{background-color:#fff;color:#333;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:1rem;font-weight:400;line-height:1.5;margin:0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}h1,h2,h3,h4,h5,h6{color:inherit;font-family:inherit;font-weight:500;line-height:1.2;margin-block-end:1rem;margin-block-start:.5rem}h1{font-size:2.5rem}h2{font-size:2rem}h3{font-size:1.75rem}h4{font-size:1.5rem}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-block-end:.9rem;margin-block-start:0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em;white-space:pre-wrap}a{background-color:transparent;color:#c36;text-decoration:none}a:active,a:hover{color:#336}a:not([href]):not([tabindex]),a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}abbr[title]{border-block-end:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none;height:auto;max-width:100%}details{display:block}summary{display:list-item}figcaption{color:#333;font-size:16px;font-style:italic;font-weight:400;line-height:1.4}[hidden],template{display:none}@media print{*,:after,:before{background:transparent!important;box-shadow:none!important;color:#000!important;text-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="#"]:after,a[href^="javascript:"]:after{content:""}pre{white-space:pre-wrap!important}blockquote,pre{-moz-column-break-inside:avoid;border:1px solid #ccc;break-inside:avoid}thead{display:table-header-group}img,tr{-moz-column-break-inside:avoid;break-inside:avoid}h2,h3,p{orphans:3;widows:3}h2,h3{-moz-column-break-after:avoid;break-after:avoid}}label{display:inline-block;line-height:1;vertical-align:middle}button,input,optgroup,select,textarea{font-family:inherit;font-size:1rem;line-height:1.5;margin:0}input[type=date],input[type=email],input[type=number],input[type=password],input[type=search],input[type=tel],input[type=text],input[type=url],select,textarea{border:1px solid #666;border-radius:3px;padding:.5rem 1rem;transition:all .3s;width:100%}input[type=date]:focus,input[type=email]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=url]:focus,select:focus,textarea:focus{border-color:#333}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;width:auto}[type=button],[type=submit],button{background-color:transparent;border:1px solid #c36;border-radius:3px;color:#c36;display:inline-block;font-size:1rem;font-weight:400;padding:.5rem 1rem;text-align:center;transition:all .3s;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}[type=button]:focus:not(:focus-visible),[type=submit]:focus:not(:focus-visible),button:focus:not(:focus-visible){outline:none}[type=button]:focus,[type=button]:hover,[type=submit]:focus,[type=submit]:hover,button:focus,button:hover{background-color:#c36;color:#fff;text-decoration:none}[type=button]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto;resize:vertical}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}select{display:block}table{background-color:transparent;border-collapse:collapse;border-spacing:0;font-size:.9em;margin-block-end:15px;width:100%}table td,table th{border:1px solid hsla(0,0%,50%,.502);line-height:1.5;padding:15px;vertical-align:top}table th{font-weight:700}table tfoot th,table thead th{font-size:1em}table caption+thead tr:first-child td,table caption+thead tr:first-child th,table colgroup+thead tr:first-child td,table colgroup+thead tr:first-child th,table thead:first-child tr:first-child td,table thead:first-child tr:first-child th{border-block-start:1px solid hsla(0,0%,50%,.502)}table tbody>tr:nth-child(odd)>td,table tbody>tr:nth-child(odd)>th{background-color:hsla(0,0%,50%,.071)}table tbody tr:hover>td,table tbody tr:hover>th{background-color:hsla(0,0%,50%,.102)}table tbody+tbody{border-block-start:2px solid hsla(0,0%,50%,.502)}@media(max-width:767px){table table{font-size:.8em}table table td,table table th{line-height:1.3;padding:7px}table table th{font-weight:400}}dd,dl,dt,li,ol,ul{background:transparent;border:0;font-size:100%;margin-block-end:0;margin-block-start:0;outline:0;vertical-align:baseline}

.comments-area a,.page-content a{text-decoration:underline}.alignright{float:right;margin-left:1rem}.alignleft{float:left;margin-right:1rem}.aligncenter{clear:both;display:block;margin-inline:auto}.alignwide{margin-inline:-80px}.alignfull{margin-inline:calc(50% - 50vw);max-width:100vw}.alignfull,.alignfull img{width:100vw}.wp-caption{margin-block-end:1.25rem;max-width:100%}.wp-caption.alignleft{margin:5px 20px 20px 0}.wp-caption.alignright{margin:5px 0 20px 20px}.wp-caption img{display:block;margin-inline:auto}.wp-caption-text{margin:0}.gallery-caption{display:block;font-size:.8125rem;line-height:1.5;margin:0;padding:.75rem}.pagination{display:flex;justify-content:space-between;margin:20px auto}.sticky{display:block;position:relative}.bypostauthor{font-size:inherit}.hide{display:none!important}.post-password-form{margin:50px auto;max-width:500px}.post-password-form p{align-items:flex-end;display:flex;width:100%}.post-password-form [type=submit]{margin-inline-start:3px}.screen-reader-text{clip:rect(1px,1px,1px,1px);height:1px;overflow:hidden;position:absolute!important;width:1px;word-wrap:normal!important}.screen-reader-text:focus{background-color:#eee;clip:auto!important;clip-path:none;color:#333;display:block;font-size:1rem;height:auto;left:5px;line-height:normal;padding:12px 24px;text-decoration:none;top:5px;width:auto;z-index:100000}.post .entry-title a{text-decoration:none}.post .wp-post-image{max-height:500px;-o-object-fit:cover;object-fit:cover;width:100%}@media(max-width:991px){.post .wp-post-image{max-height:400px}}@media(max-width:575px){.post .wp-post-image{max-height:300px}}#comments .comment-list{font-size:.9em;list-style:none;margin:0;padding:0}#comments .comment,#comments .pingback{position:relative}#comments .comment .comment-body,#comments .pingback .comment-body{border-block-end:1px solid #ccc;display:flex;flex-direction:column;padding-block-end:30px;padding-block-start:30px;padding-inline-end:0;padding-inline-start:60px}#comments .comment .avatar,#comments .pingback .avatar{border-radius:50%;left:0;margin-inline-end:10px;position:absolute}body.rtl #comments .comment .avatar,body.rtl #comments .pingback .avatar,html[dir=rtl] #comments .comment .avatar,html[dir=rtl] #comments .pingback .avatar{left:auto;right:0}#comments .comment-meta{display:flex;justify-content:space-between;margin-block-end:.9rem}#comments .comment-metadata,#comments .reply{font-size:11px;line-height:1}#comments .children{list-style:none;margin:0;padding-inline-start:30px;position:relative}#comments .children li:last-child{padding-block-end:0}#comments ol.comment-list .children:before{content:"↪";display:inline-block;font-size:1em;font-weight:400;left:0;line-height:100%;position:absolute;top:45px;width:auto}body.rtl #comments ol.comment-list .children:before,html[dir=rtl] #comments ol.comment-list .children:before{content:"↩";left:auto;right:0}@media(min-width:768px){#comments .comment-author,#comments .comment-metadata{line-height:1}}@media(max-width:767px){#comments .comment .comment-body{padding:30px 0}#comments .children{padding-inline-start:20px}#comments .comment .avatar{float:left;position:inherit}body.rtl #comments .comment .avatar,html[dir=rtl] #comments .comment .avatar{float:right}}.page-header .entry-title,.site-footer .footer-inner,.site-footer:not(.dynamic-footer),.site-header .header-inner,.site-header:not(.dynamic-header),body:not([class*=elementor-page-]) .site-main{margin-inline-end:auto;margin-inline-start:auto;width:100%}@media(max-width:575px){.page-header .entry-title,.site-footer .footer-inner,.site-footer:not(.dynamic-footer),.site-header .header-inner,.site-header:not(.dynamic-header),body:not([class*=elementor-page-]) .site-main{padding-inline-end:10px;padding-inline-start:10px}}@media(min-width:576px){.page-header .entry-title,.site-footer .footer-inner,.site-footer:not(.dynamic-footer),.site-header .header-inner,.site-header:not(.dynamic-header),body:not([class*=elementor-page-]) .site-main{max-width:500px}.site-footer.footer-full-width .footer-inner,.site-header.header-full-width .header-inner{max-width:100%}}@media(min-width:768px){.page-header .entry-title,.site-footer .footer-inner,.site-footer:not(.dynamic-footer),.site-header .header-inner,.site-header:not(.dynamic-header),body:not([class*=elementor-page-]) .site-main{max-width:600px}.site-footer.footer-full-width,.site-header.header-full-width{max-width:100%}}@media(min-width:992px){.page-header .entry-title,.site-footer .footer-inner,.site-footer:not(.dynamic-footer),.site-header .header-inner,.site-header:not(.dynamic-header),body:not([class*=elementor-page-]) .site-main{max-width:800px}.site-footer.footer-full-width,.site-header.header-full-width{max-width:100%}}@media(min-width:1200px){.page-header .entry-title,.site-footer .footer-inner,.site-footer:not(.dynamic-footer),.site-header .header-inner,.site-header:not(.dynamic-header),body:not([class*=elementor-page-]) .site-main{max-width:1140px}.site-footer.footer-full-width,.site-header.header-full-width{max-width:100%}}.site-header+.elementor{min-height:calc(100vh - 320px)}


/* ==========================================================================
   2. Font Poppins self-hosted (sottoinsieme latino, solo i pesi usati)
   ========================================================================== */
@font-face{font-family:'Poppins';font-style:normal;font-weight:400;font-display:swap;src:url(assets/fonts/poppins-400.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:'Poppins';font-style:italic;font-weight:400;font-display:swap;src:url(assets/fonts/poppins-400-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:'Poppins';font-style:normal;font-weight:500;font-display:swap;src:url(assets/fonts/poppins-500.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:'Poppins';font-style:normal;font-weight:600;font-display:swap;src:url(assets/fonts/poppins-600.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:'Poppins';font-style:normal;font-weight:700;font-display:swap;src:url(assets/fonts/poppins-700.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:'Poppins';font-style:italic;font-weight:700;font-display:swap;src:url(assets/fonts/poppins-700-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;}


/* ==========================================================================
   3. Kit di Elementor (pagina «Kit predefinito»): colori e font globali
      primario #0066CC · secondario #30373D · testo #515151 · accento #1276DC · sfondo #EBEBEB
   ========================================================================== */
body {
	background-color: #ebebeb;
	font-family: "Poppins", Sans-serif;
}
/* Il kit colora tutti i link e vince anche su a:hover di Hello (stessa specificità, caricato dopo). */
a,
a:active,
a:hover {
	color: #1276dc;
}
img {
	height: auto;
	max-width: 100%;
}

/* ==========================================================================
   4. Struttura (modello delle sezioni di Elementor, misurato)
      sezione → contenitore (max 1140, flex) → colonna (padding 10, flex a capo) → «widget»
      Ogni widget è un elemento flex: i margini del contenuto restano dentro e non si fondono.
   ========================================================================== */
.pd-section {
	position: relative;
}
.pd-wrap {
	display: flex;
	margin-inline: auto;
	max-width: 1140px;
	position: relative;
}
.pd-col {
	align-content: flex-start;
	display: flex;
	flex-wrap: wrap;
	min-height: 1px;
	padding: 10px;
	position: relative;
	width: 100%;
}
.pd-col > * {
	position: relative;
	width: 100%;
}
.pd-col > :not(:last-child) {
	margin-block-end: 20px;
}
.pd-col--half {
	width: 50%;
}
.pd-col--middle {
	align-content: center;
	align-items: center;
}
.pd-wrap--min {
	min-height: 400px;
}
.pd-box {
	background-color: #fff;
	padding: 40px;
}
.pd-text {
	color: #515151;
	font-family: "Poppins", Sans-serif;
	font-weight: 400;
}

@media (max-width: 767px) {
	.pd-wrap {
		flex-wrap: wrap;
	}
	.pd-col--half {
		width: 100%;
	}
}

/* ==========================================================================
   5. Testata
   ========================================================================== */
.pd-top .pd-col {
	background-color: #0066cc;
}
.pd-logo__in {
	margin: 10px;
	text-align: start;
}
.pd-logo a {
	display: inline-block;
}
.pd-logo img {
	display: inline-block;
	max-width: 70%;
	vertical-align: middle;
	width: 70%;
}
.pd-social {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0 10px;
	justify-content: flex-end;
}
.pd-social__link,
.pd-social__link:hover,
.pd-social__link:active {
	align-items: center;
	background-color: #fff;
	border-radius: 50%;
	color: #515151;
	display: inline-flex;
	font-size: 18px;
	height: 36px;
	justify-content: center;
	line-height: 1;
	transition: all .3s;
	width: 36px;
}
.pd-social__link:hover {
	opacity: .9;
}
.pd-social > span {
	display: flex;
}
.pd-social__link svg {
	display: block;
	height: 1em;
	width: 1em;
}

/* Menu */
.pd-navbar {
	margin-top: 1px;
}
.pd-navbar .pd-col {
	background-color: #1276dc;
}
.pd-nav {
	display: flex;
	flex-direction: column;
}
.pd-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.pd-nav__main ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	line-height: normal;
	margin-inline: auto;
	max-width: 100%;
	width: max-content;
}
.pd-nav__main li {
	display: flex;
	position: relative;
}
.pd-nav__main a {
	align-items: center;
	color: #fff;
	display: flex;
	font-weight: 600;
	line-height: 20px;
	padding: 13px 20px;
	transition: .4s;
}
.pd-nav__main a:hover,
.pd-nav__main a:focus,
.pd-nav__main .current-menu-item > a {
	color: #e1e1e1;
}
.pd-nav__toggle,
.pd-nav__toggle:hover,
.pd-nav__toggle:focus {
	align-items: center;
	background-color: rgba(0, 0, 0, .05);
	border: 0;
	border-radius: 3px;
	color: #fff;
	cursor: pointer;
	display: flex;
	font-size: 22px;
	justify-content: center;
	line-height: 1;
	margin: 0 auto;
	padding: .25em;
}
.pd-nav__toggle svg {
	display: block;
	height: 1em;
	width: 1em;
}
.pd-nav__toggle[aria-expanded="false"] .pd-nav__icon--close,
.pd-nav__toggle[aria-expanded="true"] .pd-nav__icon--open {
	display: none;
}
.pd-nav__dropdown {
	background-color: #1276dc;
	font-size: 13px;
	margin-top: 10px;
	overflow: hidden;
	transform-origin: top;
	transition: max-height .3s, transform .3s;
}
.pd-nav__toggle[aria-expanded="false"] + .pd-nav__dropdown {
	max-height: 0;
	transform: scaleY(0);
}
.pd-nav__toggle[aria-expanded="true"] + .pd-nav__dropdown {
	max-height: 100vh;
	transform: scaleY(1);
}
.pd-nav__dropdown a {
	align-items: center;
	color: #fff;
	display: flex;
	font-weight: 500;
	justify-content: center;
	line-height: 20px;
	padding: 10px 20px;
}
.pd-nav__dropdown a:hover,
.pd-nav__dropdown a:focus,
.pd-nav__dropdown .current-menu-item > a {
	background-color: #3f444b;
	color: #fff;
}
@media (min-width: 1025px) {
	.pd-nav__toggle,
	.pd-nav__dropdown {
		display: none;
	}
}
@media (max-width: 1024px) {
	.pd-nav__main {
		display: none;
	}
}
@media (max-width: 767px) {
	.pd-logo__in {
		text-align: center;
	}
	.pd-social {
		justify-content: center;
	}
	.pd-nav {
		margin-top: 10px;
	}
}

/* ==========================================================================
   6. Pagine
   ========================================================================== */
.pd-title {
	color: #30373d;
	font-family: "Poppins", Sans-serif;
	font-size: 40px;
	font-weight: 600;
	line-height: 1;
	margin: 0;
	padding: 0;
}
.pd-subtitle {
	color: #a1a1a1;
	font-family: "Poppins", Sans-serif;
	font-size: 32px;
	font-weight: 600;
	line-height: 1;
	margin: 0;
	padding: 0;
	text-align: center;
}

/* Avviso «Pagina in aggiornamento» (era il widget Alert di Elementor, tipo info) */
.pd-col--alert {
	background-color: #fff;
	padding: 0;
}
.pd-alert-w {
	padding: 20px;
}
.pd-alert {
	background-color: #d9edf7;
	border-inline-start: 5px solid #bcdff1;
	color: #31708f;
	padding: 15px;
	position: relative;
	text-align: start;
}
.pd-alert__title {
	display: block;
	font-family: "Poppins", Sans-serif;
	font-weight: 600;
}

/* Home: una citazione a caso */
.pd-col--home {
	background-color: #fff;
	padding: 40px;
}
.pd-quote-w {
	display: flex;
}
.pd-quote {
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, .24);
	flex: 1;
	margin: 12px;
	padding: 40px;
	text-align: center;
}

/* 404 */
.pd-col--404 {
	align-content: center;
	align-items: center;
	background-color: #fff;
	justify-content: center;
	text-align: center;
}

/* Footer */
.pd-footer .pd-col {
	background-color: #30373d;
	padding: 40px;
}
.pd-footer__text {
	color: #fff;
	text-align: center;
}

@media (max-width: 767px) {
	.pd-col--home {
		padding: 10px;
	}
	.pd-col--home > .pd-quote-w {
		margin-block: 30px;
	}
	.pd-alert {
		padding: 10px;
	}
}

/* ==========================================================================
   7. Contenuti dell'editor
   ========================================================================== */
/* «Quando imparo»: due schede immagine + titolo (erano due widget Image Box) */
.pd-schede {
	display: flex;
	margin-block: 30px;
}
.pd-scheda {
	padding: 10px;
	text-align: center;
	width: 50%;
}
.pd-scheda__img {
	display: inline-block;
	margin: 0 0 15px;
	width: 30%;
}
.pd-scheda__img img {
	display: block;
	width: 100px;
}
.pd-scheda__titolo {
	color: #0066cc;
	font-family: "Poppins", Sans-serif;
	font-weight: 600;
}
.pd-scheda__titolo a,
.pd-scheda__titolo a:hover {
	color: inherit;
}
@media (max-width: 767px) {
	.pd-schede {
		flex-wrap: wrap;
	}
	.pd-scheda {
		width: 100%;
	}
}

/* Gallerie di PDF (erano lo shortcode [dg] di Document Gallery): ora campi ACF della pagina, stampati da
   pd_gallerie() in inc/acf.php con lo stesso markup. colonne-3 / colonne-4 = documenti per riga. */
.pd-galleria__titolo {
	text-align: center;
}
.document-gallery .document-icon-row {
	padding: 0;
	text-align: left;
	width: 100%;
}
.document-gallery .document-icon {
	box-sizing: border-box;
	display: inline-block;
	margin: 5px 0 0;
	overflow: hidden;
	text-align: center;
	vertical-align: top;
}
.document-gallery.colonne-3 .document-icon {
	width: 32%;
}
.document-gallery.colonne-4 .document-icon {
	width: 24%;
}
.document-gallery .document-icon img {
	border: 0;
	margin: 0 auto;
	max-width: 100%;
	width: 89px;
}
.document-gallery .document-icon a {
	font-size: 10px;
	line-height: 12px;
}
.document-gallery .document-icon .title {
	display: block;
	text-align: center;
}
