/* ==========================================================================
   Pagine interne (mobile first): testata, introduzioni, marchi, carosello,
   Corte Farina, contatti, termini, news, articolo, catalogo, 404.
   ========================================================================== */

:root { --pr-brand-blue: #0e395f; --pr-brand-yellow: #fadb29; }

/* --- Testata chiara con linea verticale (E24/E26) ------------------------ */
.pr-masthead { position: relative; padding: 150px 0 80px; background: var(--pr-light); text-align: center; }
.pr-masthead__title { margin: 0; color: #666; font-size: 34px; font-weight: 300; line-height: 1.5; }
.pr-masthead__meta { margin: 0 0 8px; color: var(--pr-muted); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.pr-masthead__line { position: absolute; left: 50%; bottom: -50px; z-index: 3; width: 1px; height: 100px; background: var(--pr-accent); }
@media (min-width: 992px) { .pr-masthead { padding: 200px 0; } .pr-masthead__title { font-size: 40px; } .pr-masthead__line { bottom: -100px; height: 200px; } }
@media (min-width: 1401px) { .pr-masthead__title { font-size: 48px; } }

/* --- Sezioni comuni ------------------------------------------------------ */
.pr-section { padding: 80px 15px; }
@media (min-width: 992px) { .pr-section { padding: 120px 50px; } }
@media (min-width: 1401px) { .pr-section { padding: 120px 80px; } }
.pr-intro { text-align: center; }
.pr-intro__title { margin-bottom: 24px; }
.pr-intro__text { font-size: 14px; }
@media (min-width: 768px) { .pr-intro__text { padding: 0 50px; } }
.pr-section--dark .pr-intro__text, .pr-section--dark p { color: var(--pr-white); }
.pr-eyebrow { margin-bottom: 8px; }
.pr-eyebrow--brand { color: var(--pr-brand-blue); }
.pr-intro .pr-eyebrow { text-align: center; }

/* CTA scura con modulo (stessa di home) */
.pr-cta { text-align: center; }
.pr-cta__title { margin-bottom: 20px; }
.pr-cta__text { max-width: 900px; margin: 0 auto 24px; }
.pr-phone { margin: 0 0 20px; font-size: 28px; font-weight: 600; line-height: 1.2; }
.pr-phone a { color: var(--pr-white); }
@media (min-width: 1025px) { .pr-cta__form { padding: 0 150px; } }

/* Fascia immagine di fondo (600 px, 300 su mobile) */
.pr-bg-band { position: relative; min-height: 300px; background: var(--pr-darker); overflow: hidden; }
.pr-bg-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .pr-bg-band { min-height: 600px; } }

/* --- Rappresentanze: griglia marchi (E25) -------------------------------- */
.pr-brands { padding: 80px 15px; background: var(--pr-darker); }
/* Flex centrato: l'ultima riga incompleta resta al centro come nell'originale */
.pr-brands__grid { display: flex; flex-wrap: wrap; justify-content: center; row-gap: 60px; margin: 0; padding: 0; list-style: none; }
.pr-brands__item { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
@media (min-width: 768px) { .pr-brands__grid { row-gap: 110px; } .pr-brands__item { flex-basis: 25%; max-width: 25%; } }
.pr-brands__logo { display: flex; align-items: center; justify-content: center; height: 100px; }
.pr-brands__logo img { max-height: 100%; width: auto; max-width: 100%; transition: opacity var(--pr-dur) var(--pr-ease); }
.pr-brands__logo:hover img { opacity: .3; }
/* Clienti: testo introduttivo piu' stretto (circa 800 px nell'originale) */
.pr-clienti .pr-intro__text { max-width: 860px; margin: 0 auto; }
@media (min-width: 992px) { .pr-brands { padding: 120px 50px; } }
@media (min-width: 1401px) { .pr-brands { padding: 120px 80px; } }

/* --- Distribuzione: prodotti e carosello (E27/E28) ----------------------- */
.pr-products { padding-top: 0; text-align: center; }
.pr-products__label { margin-bottom: 20px; }
.pr-products__logo img { width: 160px; margin: 0 auto 40px; }
.pr-carousel { position: relative; padding: 0 40px; }
.pr-carousel__viewport { overflow: hidden; }
.pr-carousel__track { display: flex; margin: 0; padding: 0; list-style: none; transition: transform .5s ease; will-change: transform; }
.pr-carousel__slide { flex: 0 0 100%; padding: 0 5px; }
.pr-carousel__img { width: 100%; height: auto; }
.pr-carousel__arrow { position: absolute; top: 50%; z-index: 2; padding: 5px; border: 0; background: none; color: var(--pr-white); cursor: pointer; transform: translateY(-50%); }
.pr-carousel__arrow--prev { left: 0; }
.pr-carousel__arrow--next { right: 0; }
@media (min-width: 768px) { .pr-carousel__slide { flex-basis: 50%; } }
@media (min-width: 1025px) { .pr-carousel__slide { flex-basis: 33.333%; } }

/* --- Blocchi immagine + testo (riuso della home) ------------------------- */
.pr-split { display: flex; flex-direction: column; }
.pr-split__media { position: relative; min-height: 300px; }
.pr-split__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pr-split__body { padding: 30px 15px; text-align: center; }
.pr-split__title { margin: 0 0 16px; line-height: 1.1; }
@media (min-width: 768px) {
	.pr-split { flex-direction: row; }
	.pr-split > * { flex: 0 0 50%; max-width: 50%; }
	.pr-split__media { min-height: 600px; }
	.pr-split__body { align-self: center; padding: 50px; text-align: left; }
	.pr-split__text { text-align: justify; }
}

/* --- Corte Farina -------------------------------------------------------- */
.pr-cf-hero { padding: 150px 15px 60px; background: var(--pr-brand-blue); text-align: center; }
.pr-cf-hero__logo img { width: 220px; margin: 0 auto; }
@media (min-width: 992px) { .pr-cf-hero { padding: 190px 15px 120px; } .pr-cf-hero__logo img { width: 300px; } }

/* --- Contatti: recapiti con icona ---------------------------------------- */
.pr-reach { padding-top: 100px; }
.pr-reach__list { display: grid; grid-template-columns: 1fr; gap: 40px; margin: 0; padding: 0; list-style: none; text-align: center; }
.pr-reach__icon { display: block; width: 45px; height: 50px; margin: 0 auto 30px; color: var(--pr-accent); }
.pr-reach__item a { color: var(--pr-accent); font-size: 16px; font-weight: 600; line-height: 1; }
@media (min-width: 768px) { .pr-reach__list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .pr-reach { padding-top: 150px; } }

/* --- Termini ------------------------------------------------------------- */
.pr-docs__list { display: flex; flex-direction: column; align-items: center; gap: 20px; }

/* --- Contenuti editor (legali, articolo) --------------------------------- */
.pr-legal { max-width: 900px; }
/* Pagine legali salvate da Elementor: le icone SVG della vecchia fisarmonica non hanno misure e non servono */
.pr-legal__content svg { display: none; }
.pr-legal__content hr { margin: 30px 0; border: 0; border-top: 1px solid var(--pr-line); }
.pr-legal__content h4 { margin-top: 24px; font-weight: 600; }
.pr-content h2 { font-size: 26px; margin-top: 40px; }
.pr-content h3 { font-size: 20px; margin-top: 30px; }
.pr-content ul, .pr-content ol { margin: 0 0 24px; padding-left: 20px; }
.pr-content img { max-width: 100%; height: auto; }

/* --- News: lista con barra laterale (E30-E34) ---------------------------- */
.pr-blog__row { display: flex; flex-direction: column; gap: 60px; }
.pr-blog__posts { flex: 1 1 auto; min-width: 0; }
.pr-post { margin-bottom: 80px; }
.pr-post__media { overflow: hidden; }
.pr-post__media img { width: 100%; height: auto; transition: transform var(--pr-dur) var(--pr-ease); }
@media (min-width: 1200px) { .pr-post__media a:hover img { transform: scale(1.1); } }
.pr-post__body { display: flex; gap: 30px; margin-top: 30px; }
.pr-post__date { display: flex; flex: 0 0 70px; flex-direction: column; align-items: center; justify-content: center; width: 70px; height: 70px; background: var(--pr-light); color: var(--pr-heading); line-height: 1; }
.pr-post__day { font-size: 24px; font-weight: 600; }
.pr-post__month { margin-top: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.pr-post__inner { flex: 1 1 auto; min-width: 0; }
.pr-post-meta { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0 0 10px; padding: 0; list-style: none; color: var(--pr-muted); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.pr-post-meta a { color: var(--pr-muted); }
.pr-post__title { margin: 0 0 16px; font-size: 26px; }
.pr-post__title a { color: var(--pr-heading); text-decoration: none !important; }
.pr-post__title a:hover { color: var(--pr-muted); }
.pr-post__excerpt { margin-bottom: 30px; }
@media (min-width: 992px) {
	.pr-blog__row { flex-direction: row; justify-content: space-between; }
	.pr-blog__posts { flex-basis: 66.666%; max-width: 66.666%; }
	.pr-blog__sidebar { flex: 0 0 25%; max-width: 25%; }
	.pr-post__date { flex-basis: 100px; width: 100px; height: 100px; }
	.pr-post__day { font-size: 36px; }
	.pr-post__title { font-size: 36px; }
}
.pr-widget { margin-bottom: 50px; }
.pr-widget__title { margin-bottom: 20px; font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.pr-widget ul { margin: 0; padding: 0; list-style: none; }
.pr-widget li { margin-bottom: 10px; }
.pr-widget a { color: var(--pr-muted); text-decoration: none; }
.pr-widget a:hover { color: var(--pr-accent); }
.pr-search { position: relative; }
.pr-search__input { width: 100%; padding: 10px 40px 10px 0; border: 0; border-bottom: 1px solid var(--pr-line); background: none; font: inherit; transition: border-color var(--pr-dur) var(--pr-ease); }
.pr-search__input:focus { outline: none; border-color: var(--pr-accent); }
.pr-search__submit { position: absolute; right: 0; top: 50%; padding: 5px; border: 0; background: none; color: var(--pr-muted); cursor: pointer; transform: translateY(-50%); transition: color var(--pr-dur) var(--pr-ease); }
.pr-search__submit:hover { color: var(--pr-accent); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border: 1px solid var(--pr-line); color: var(--pr-muted); text-decoration: none; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { border-color: var(--pr-accent); color: var(--pr-accent); }

/* --- Articolo singolo (E29e) --------------------------------------------- */
/* Testata chiara con meta e titolo, poi immagine a sinistra e testo a destra */
.pr-article__head { padding: 130px 15px 40px; background: var(--pr-light); text-align: center; }
.pr-article__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 30px; margin: 0 0 10px; padding: 0; list-style: none; color: var(--pr-muted); font-size: 14px; }
.pr-article__meta a { color: var(--pr-muted); text-decoration: none; }
.pr-article__title { margin: 0; color: var(--pr-heading); }
.pr-article__body { display: flex; flex-direction: column; gap: 40px; max-width: 980px; margin: 0 auto; padding: 60px 15px 80px; }
.pr-article__media img { width: 100%; height: auto; }
.pr-article__content { text-align: justify; }
@media (min-width: 992px) {
	.pr-article__head { padding: 140px 15px 50px; }
	.pr-article__body { flex-direction: row; align-items: center; gap: 60px; padding: 60px 15px 120px; }
	.pr-article__body > * { flex: 1 1 50%; min-width: 0; }
	/* misure dall'originale: immagine 460px, testo nel resto */
	.pr-article__body > .pr-article__media { flex: 0 0 460px; }
	.pr-article__head { padding: 150px 15px 38px; }
	.pr-article__meta { margin-bottom: 8px; }
}
/* Icone meta articolo (SVG inline) */
.pr-article__meta li { display: inline-flex; align-items: center; gap: 6px; }
.pr-article__icon { flex: 0 0 auto; width: 14px; height: 14px; fill: currentColor; }

/* Messaggio del form: nascosto finche' JS/PHP non ci inserisce il <p> di esito
   (prima occupava 44px vuoti perche' contiene spazi e :empty non scattava) */
.pr-form__msg:not(:has(*)) { display: none; }

/* Clienti mobile (<768): misure dall'originale Elementor (sezioni con margini 35/25) */
@media (max-width: 767px) {
	.page-template-tpl-clienti .pr-eyebrow { line-height: 14px; }
	.page-template-tpl-clienti .pr-intro__title,
	.page-template-tpl-clienti .pr-cta__title { line-height: 26px; }
	.page-template-tpl-clienti .pr-section.pr-intro { padding: 95px 15px 50px; }
	.page-template-tpl-clienti .pr-intro__title { margin-bottom: 44px; }
	.page-template-tpl-clienti .pr-section.pr-cta { padding: 50px 15px 61px; }
	.page-template-tpl-clienti .pr-cta__title { margin-bottom: 14px; }
	.page-template-tpl-clienti .pr-phone { margin-bottom: 36px; line-height: 28px; }
	.page-template-tpl-clienti .pr-form-wrap input[type="text"],
	.page-template-tpl-clienti .pr-form-wrap input[type="email"],
	.page-template-tpl-clienti .pr-form-wrap input[type="tel"] { padding-top: 7px; padding-bottom: 7px; }
	.page-template-tpl-clienti .pr-form__privacy { margin: 20px auto 33px; }
	.page-template-tpl-clienti .pr-form .pr-btn { padding: 20px 40px; }
	.page-template-tpl-clienti .pr-bg-band { margin: 34px 0 25px; }
}
/* Clienti desktop: compensa i 44px del messaggio vuoto tolti sopra (modulo 645px come l'originale) */
@media (min-width: 992px) { .page-template-tpl-clienti .pr-section.pr-cta { padding-bottom: 152px; } }

/* Contatti: posizioni come l'originale Elementor (fascia "raggiungici" + sezione modulo) */
.page-template-tpl-contatti .pr-cta .pr-eyebrow { line-height: 14px; }
.page-template-tpl-contatti .pr-cta__title { margin-bottom: 19px; }
.page-template-tpl-contatti .pr-form-wrap input[type="text"],
.page-template-tpl-contatti .pr-form-wrap input[type="email"],
.page-template-tpl-contatti .pr-form-wrap input[type="tel"] { padding-top: 7px; padding-bottom: 7px; }
.page-template-tpl-contatti .pr-form__privacy { margin: 17px auto 33px; }
@media (max-width: 767px) {
	.page-template-tpl-contatti .pr-section.pr-reach { padding-bottom: 61px; }
	.page-template-tpl-contatti .pr-section.pr-cta { padding: 50px 15px 60px; margin-bottom: 25px; }
	.page-template-tpl-contatti .pr-cta .pr-container { padding-left: 0; padding-right: 0; }
	.page-template-tpl-contatti .pr-cta__title { line-height: 26px; }
	.page-template-tpl-contatti .pr-cta__text { margin-bottom: 53px; }
	.page-template-tpl-contatti .pr-form .pr-btn { padding: 20px 40px; }
}
@media (min-width: 992px) {
	.page-template-tpl-contatti .pr-section.pr-reach { padding-bottom: 132px; }
	.page-template-tpl-contatti .pr-section.pr-cta { padding-top: 135px; padding-bottom: 145px; }
	.page-template-tpl-contatti .pr-cta__title { line-height: 36px; }
	.page-template-tpl-contatti .pr-cta__text { max-width: 810px; margin-bottom: 54px; }
}

/* Testi legali: parole lunghe (email, URL) vanno a capo invece di allargare la pagina a 360px */
.pr-content { overflow-wrap: anywhere; }

/* Casella privacy dei form: area cliccabile 24px, disegno uguale alla casella nativa da 13px */
.pr-form__privacy input[type="checkbox"] {
	-webkit-appearance: none; appearance: none;
	width: 24px; height: 24px; margin: -4px -1px -4px -6px; padding: 0; border: 0; border-radius: 0;
	vertical-align: middle; cursor: pointer;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13'%3E%3Crect x='.5' y='.5' width='12' height='12' rx='2' fill='%23fff' stroke='%23767676'/%3E%3C/svg%3E") center / 13px 13px no-repeat;
}
.pr-form__privacy input[type="checkbox"]:checked {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13'%3E%3Crect width='13' height='13' rx='2' fill='%230075ff'/%3E%3Cpath d='M3 6.8l2.3 2.3L10 4.4' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E");
}
.pr-form__privacy input[type="checkbox"]:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }

/* Termini: misure dall'originale (mobile pulsanti impilati, da 768 due colonne da 285px) */
.pr-section.pr-docs { padding: 96px 15px 49px; }
.pr-docs__list { gap: 38px; }
@media (min-width: 768px) {
	.pr-docs__list { flex-direction: row; justify-content: center; align-items: flex-start; gap: 0; }
	.pr-docs__item { flex: 0 0 285px; text-align: center; }
}
@media (min-width: 992px) { .pr-section.pr-docs { padding: 135px 50px 143px; } }

/* Footer: altezza come l'originale (89px desktop, 181px mobile) */
.pr-footer .pr-footer__inner { padding: 30px 0; }
.pr-footer .pr-footer__copy { margin: 0; }
@media (min-width: 992px) {
	.pr-footer .pr-footer__inner { padding: 20px 0; }
}

/* --- Catalogo ------------------------------------------------------------ */
.pr-catalog__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.pr-product-card { text-align: center; }
.pr-product-card__media { display: block; overflow: hidden; margin-bottom: 15px; background: var(--pr-light); }
.pr-product-card__media img { width: 100%; height: auto; transition: transform var(--pr-dur) var(--pr-ease); }
.pr-product-card__media:hover img { transform: scale(1.1); }
.pr-product-card__title { margin: 0 0 8px; font-size: 18px; font-weight: 400; }
.pr-product-card__title a { color: var(--pr-heading); }
.pr-price { margin: 0 0 20px; font-size: 18px; font-weight: 600; color: var(--pr-heading); }
.pr-product__row { display: flex; flex-direction: column; gap: 40px; }
.pr-product__img { width: 100%; height: auto; }
.pr-product__gallery { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.pr-product__gallery li { flex: 0 0 calc(33.333% - 7px); }
.pr-product__data { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 0; }
.pr-product__data dt { color: var(--pr-muted); font-weight: 600; }
.pr-product__data dd { margin: 0; }
.pr-product__content { max-width: 900px; margin-top: 60px; }
@media (min-width: 768px) { .pr-catalog__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .pr-product__row { flex-direction: row; } .pr-product__row > * { flex: 0 0 calc(50% - 20px); } }

/* --- 404 ----------------------------------------------------------------- */
.pr-404__inner { text-align: center; }
