/*
Theme Name: MediaVolt
Theme URI: https://www.mediavolt.eu
Author: MediaVolt SRL
Description: Tema del sito MediaVolt: cabine elettriche di media tensione. Stile industriale: bianco, antracite e verde. All'attivazione crea la home e le sei pagine dei servizi. Dati aziendali, logo e colore in Aspetto › Personalizza › MediaVolt.
Version: 2.4.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mediavolt
*/

:root {
	--mv-verde: #13843F;          /* pulsanti e dettagli (testo bianco leggibile) */
	--mv-verde-scuro: #0E6B33;
	--mv-verde-chiaro: #3FD07A;   /* verde su fondo scuro */
	--mv-verde-bg: #E9F6EE;
	--mv-giallo: #E8B923;
	--mv-nero: #0E1215;           /* fondo del logo: intestazione e piè di pagina */
	--mv-antracite: #23292E;
	--mv-ink: #1F2428;
	--mv-muted: #5A6670;
	--mv-grigio: #F3F4F5;
	--mv-linea: #DDE1E4;
	--mv-font: 'Nunito Sans', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: #fff; color: var(--mv-ink); font-family: var(--mv-font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mv-verde); }
a:hover { color: var(--mv-verde-scuro); }
h1, h2, h3 { font-family: var(--mv-font); font-weight: 800; margin: 0; line-height: 1.12; letter-spacing: -.3px; }
h2 { font-size: clamp(30px, 3.6vw, 42px); }
h3 { font-size: 21px; font-weight: 700; line-height: 1.25; letter-spacing: 0; }
p { margin: 0; }
.mv-ico { flex: none; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.mv-skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100; }
.mv-skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--mv-verde); outline-offset: 2px; }

.mv-wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mv-stack { display: flex; flex-direction: column; gap: 44px; }
.mv-stack-sm { display: flex; flex-direction: column; gap: 14px; }
.mv-maxw { max-width: 760px; }
.mv-maxw-sm { max-width: 440px; }
.mv-muted { color: var(--mv-muted); font-size: 17px; line-height: 1.65; }
.mv-small { font-size: 14px; }
.mv-grey, .mv-white { background: var(--mv-grigio); }
.mv-dark { background: var(--mv-antracite); color: #E6EAED; }
.mv-dark h1, .mv-dark h2 { color: #fff; }

.mv-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--mv-verde); }
.mv-eyebrow--verde, .mv-eyebrow--chiaro { color: var(--mv-verde-chiaro); }
.mv-lead { font-size: 19px; line-height: 1.6; color: #D2D8DD; max-width: 620px; }

/* Pulsanti: rettangolari, pieni */
.mv-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 13px 26px; border-radius: 3px; font-weight: 700; font-size: 16px; text-decoration: none; text-align: center; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.mv-btn--primary { background: var(--mv-verde); color: #fff; }
.mv-btn--primary:hover { background: var(--mv-verde-scuro); color: #fff; }
.mv-btn--light, .mv-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.mv-btn--light:hover, .mv-btn--ghost:hover { background: #fff; color: var(--mv-ink); border-color: #fff; }
.mv-btn--lg { min-height: 56px; font-size: 17px; }

/* Barra superiore */
.mv-topbar { background: #000; color: #AEB7BE; font-size: 13px; }
.mv-topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.mv-topbar__claim { font-weight: 700; color: var(--mv-verde-chiaro); }
.mv-topbar__contacts { display: flex; gap: 22px; }
.mv-topbar a { color: #D2D8DD; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.mv-topbar a:hover { color: #fff; }

/* Intestazione: fondo scuro, così il logo risalta */
.mv-header { position: sticky; top: 0; z-index: 50; background: var(--mv-nero); border-bottom: 3px solid var(--mv-verde); }
.admin-bar .mv-header { top: 32px; }
.mv-header.is-scrolled { box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.mv-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.mv-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; text-decoration: none; }
.mv-brand__logo { height: 44px; width: auto; }
.mv-brand__tag { font-weight: 700; font-size: 15px; letter-spacing: .4px; color: var(--mv-giallo); line-height: 1; }
.mv-nav { display: flex; align-items: center; gap: 24px; }
.mv-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 16px; font-weight: 700; }
.mv-nav__list a { display: block; color: #E6EAED; text-decoration: none; padding: 10px 14px; border-bottom: 3px solid transparent; }
.mv-nav__list a:hover, .mv-nav__list .current-menu-item > a { color: #fff; border-bottom-color: var(--mv-verde-chiaro); }
.mv-nav__cta { min-height: 46px; padding: 11px 20px; font-size: 15px; }
.mv-nav__toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: 3px; width: 48px; height: 48px; align-items: center; justify-content: center; color: #fff; cursor: pointer; }

/* Apertura home: foto a tutta larghezza */
.mv-hero { position: relative; overflow: hidden; background: var(--mv-antracite); color: #fff; min-height: 560px; display: flex; align-items: center; }
.mv-hero__img { position: absolute; top: 0; bottom: 0; right: 0; left: 46%; width: 54%; height: 100%; object-fit: cover; object-position: center center; }
.mv-hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, var(--mv-antracite) 0%, var(--mv-antracite) 46%, rgba(35,41,46,0) 52%); }
.mv-hero__inner { min-height: 560px; display: flex; align-items: center; }
.mv-hero--nofoto .mv-hero__inner { min-height: 480px; }
.mv-hero--nofoto .mv-hero__text { max-width: 760px; }
.mv-hero__text { max-width: 520px; }
.mv-hero__inner { position: relative; z-index: 1; width: 100%; padding-top: 96px; padding-bottom: 96px; }
.mv-hero__text { display: flex; flex-direction: column; gap: 22px; }
.mv-hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.06; color: #fff; }

/* Barra norme */
.mv-normebar { background: #fff; border-bottom: 1px solid var(--mv-linea); }
.mv-norme { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mv-norme li { display: flex; flex-direction: column; gap: 2px; padding: 24px 24px 24px 0; font-size: 15px; color: var(--mv-muted); }
.mv-norme li + li { padding-left: 24px; border-left: 1px solid var(--mv-linea); }
.mv-norme__code { font-weight: 800; font-size: 16px; color: var(--mv-ink); }

/* Sezioni */
.mv-section { padding: 96px 0; }
.mv-section__head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }

/* Schede servizi */
.mv-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mv-card { position: relative; background: #fff; border: 1px solid var(--mv-linea); border-top: 4px solid var(--mv-linea); padding: 30px 28px 26px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--mv-ink); transition: border-color .15s, box-shadow .15s; }
.mv-card:hover { border-top-color: var(--mv-verde); box-shadow: 0 10px 30px rgba(31,36,40,.10); color: var(--mv-ink); }
.mv-card__icon { color: var(--mv-verde); margin-bottom: 4px; }
.mv-card h3 { font-size: 23px; }
.mv-card p { font-size: 16px; color: var(--mv-muted); flex: 1 1 auto; }
.mv-card__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--mv-verde); margin-top: 8px; }
.mv-card:hover .mv-card__go .mv-ico { transform: translateX(3px); }
.mv-card__go .mv-ico { transition: transform .15s; }
.mv-tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .3px; color: var(--mv-verde-scuro); background: var(--mv-verde-bg); padding: 4px 10px; border-radius: 2px; }

/* Fascia partner */
.mv-partnerband { background: var(--mv-antracite); color: #D2D8DD; border-left: 0; }
.mv-partnerband__inner { display: flex; align-items: center; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.mv-partnerband__icon { flex: none; width: 88px; height: 88px; border-radius: 50%; background: var(--mv-verde); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.mv-partnerband__logo { flex: none; background: #fff; width: 120px; height: 120px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.mv-partnerband__logo img { max-height: 76px; max-width: 84px; width: auto; }
.mv-partnerband h2 { color: #fff; font-size: clamp(26px, 3vw, 34px); }
.mv-partnerband p { font-size: 17px; }

/* O&M */
.mv-split { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.mv-split--top { align-items: flex-start; }
.mv-split__text { flex: 1 1 440px; min-width: 0; }
.mv-chain { flex: 1 1 420px; min-width: 0; list-style: none; margin: 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 14px; }
.mv-chain li { position: relative; display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid var(--mv-linea); padding: 20px 24px; }
.mv-chain li:not(:last-child)::after { content: ""; position: absolute; left: 43px; bottom: -15px; width: 2px; height: 14px; background: var(--mv-verde); }
.mv-chain__n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--mv-verde); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.mv-chain strong { display: block; font-size: 19px; }
.mv-chain span:not(.mv-chain__n) { font-size: 15px; color: var(--mv-muted); }

/* Chi siamo */
.mv-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.mv-point { display: flex; flex-direction: column; gap: 10px; padding-top: 22px; border-top: 2px solid var(--mv-ink); }
.mv-point__icon { color: var(--mv-verde); }
.mv-point h3 { font-size: 19px; }
.mv-point p { font-size: 15px; color: var(--mv-muted); }
.mv-content p + p { margin-top: 1em; }

/* Fascia contatti */
.mv-cta { background: var(--mv-verde); color: #fff; }
.mv-cta__inner { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; justify-content: space-between; padding-top: 64px; padding-bottom: 64px; }
.mv-cta__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.mv-cta h2 { color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.mv-cta p { font-size: 18px; color: #EAF6EE; }
.mv-cta__actions { flex: 0 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.mv-cta .mv-btn--primary { background: var(--mv-nero); }
.mv-cta .mv-btn--primary:hover { background: #000; }
.mv-cta .mv-btn--light:hover { color: var(--mv-verde-scuro); }

/* Piè di pagina */
.mv-footer { background: var(--mv-nero); color: #AEB7BE; font-size: 15px; line-height: 1.55; }
.mv-footer a { color: #AEB7BE; text-decoration: none; }
.mv-footer a:hover { color: #fff; }
.mv-footer__inner { padding-top: 64px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 40px; }
.mv-footer__cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.mv-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.mv-footer__logo { display: flex; flex-direction: column; gap: 6px; }
.mv-footer__logo img { height: 38px; width: auto; }
.mv-footer__tag { font-size: 14px; font-weight: 700; letter-spacing: .4px; color: var(--mv-giallo); line-height: 1; }
.mv-footer__claim { font-size: 14px; }
.mv-footer__col { display: flex; flex-direction: column; gap: 7px; }
.mv-footer__title { color: #fff; font-weight: 800; margin-bottom: 4px; }
.mv-footer__ref { display: flex; flex-direction: column; gap: 2px; }
.mv-footer__ref > span { color: #E6EAED; }
.mv-footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 13px; }

/* Pulsante chiamata (telefono) */
.mv-callfab { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--mv-verde); color: #fff; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.mv-callfab:hover { color: #fff; background: var(--mv-verde-scuro); }

/* Pagine servizio */
.mv-shero { background: var(--mv-antracite); }
.mv-shero__inner { padding-top: 32px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.mv-shero--simple .mv-wrap { padding-top: 72px; padding-bottom: 72px; }
.mv-shero h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.08; }
.mv-crumbs { font-size: 14px; color: #AEB7BE; display: flex; flex-wrap: wrap; gap: 8px; }
.mv-crumbs a { color: #AEB7BE; text-decoration: none; }
.mv-crumbs a:hover { color: #fff; }
.mv-crumbs [aria-current] { color: #fff; }
.mv-shero__row { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.mv-shero__text { flex: 1 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.mv-shero__side { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 0; }
.mv-shero__foto { background: #fff; height: 340px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mv-shero__foto img { width: 100%; height: 100%; object-fit: contain; }
.mv-shero__foto img[src*="operatore"] { object-fit: cover; object-position: center; }
.mv-shero__foto img[src*="prove-strumentali"] { object-fit: cover; object-position: center 72%; }
.mv-hero__img[src*="prove-strumentali"] { object-position: center 62%; }
.mv-box { flex: 0 0 auto; min-width: 0; background: #fff; color: var(--mv-ink); border-top: 4px solid var(--mv-verde); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.mv-box__icon { color: var(--mv-verde); }
.mv-box__label { font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--mv-muted); }
.mv-box__item { display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--mv-muted); }
.mv-box__item strong { font-size: 28px; font-weight: 800; line-height: 1.1; color: var(--mv-ink); }
.mv-sfoto { margin-top: 40px; }
.mv-sfoto__img { width: 100%; max-height: 440px; object-fit: cover; }

.mv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.mv-steps li { background: #fff; border: 1px solid var(--mv-linea); border-top: 4px solid var(--mv-verde); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.mv-steps p { font-size: 15px; line-height: 1.6; color: var(--mv-muted); }
.mv-steps__n { font-size: 36px; font-weight: 800; line-height: 1; color: var(--mv-verde); }

.mv-section.mv-white { border-top: 1px solid var(--mv-linea); border-bottom: 1px solid var(--mv-linea); }
.mv-table-wrap { flex: 1 1 560px; min-width: 0; overflow-x: auto; background: #fff; border: 1px solid var(--mv-linea); }
.mv-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.mv-table th { text-align: left; padding: 14px 20px; font-size: 13px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: #fff; background: var(--mv-antracite); }
.mv-table td { padding: 16px 20px; border-top: 1px solid var(--mv-linea); }
.mv-table tr:nth-child(even) td { background: #FAFBFB; }

.mv-list { flex: 1 1 560px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mv-list li { padding: 16px 20px 16px 52px; position: relative; background: #fff; border: 1px solid var(--mv-linea); font-size: 17px; }
.mv-list li::before { content: ""; position: absolute; left: 20px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--mv-verde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat; }

.mv-partner { flex: 1 1 360px; min-width: 0; min-height: 180px; border: 2px dashed #C3C9CE; background: #fff; display: flex; align-items: center; justify-content: center; padding: 24px; font-size: 15px; color: var(--mv-muted); text-align: center; }
.mv-partner img { max-height: 120px; width: auto; }
.mv-partner:has(img) { border: 1px solid var(--mv-linea); }

.mv-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mv-two > div { background: var(--mv-grigio); padding: 32px; }
.mv-h2-sm { font-size: 26px; line-height: 1.2; }
.mv-docs { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.9; color: var(--mv-muted); }
.mv-related { display: flex; flex-direction: column; }
.mv-related a { font-size: 16px; font-weight: 700; color: var(--mv-verde); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--mv-linea); }
.mv-related a:last-child { border-bottom: 0; }

/* Tablet */
@media (max-width: 1080px) {
	.mv-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mv-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mv-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Menu a scomparsa */
@media (max-width: 960px) {
	.mv-nav__toggle { display: inline-flex; }
	.mv-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--mv-nero); border-bottom: 3px solid var(--mv-verde); flex-direction: column; align-items: stretch; gap: 0; padding: 4px 24px 20px; }
	.mv-nav.is-open { display: flex; }
	.mv-nav__list { flex-direction: column; gap: 0; }
	.mv-nav__list a { padding: 14px 2px; border-bottom: 1px solid rgba(255,255,255,.1); }
	.mv-nav__list a:hover, .mv-nav__list .current-menu-item > a { border-bottom-color: rgba(255,255,255,.1); color: var(--mv-verde-chiaro); }
	.mv-nav__cta { margin-top: 16px; }
	.mv-hero { min-height: 0; flex-direction: column; align-items: stretch; }
	.mv-hero__img { position: static; width: 100%; height: 260px; object-position: center 40%; }
	.mv-hero__overlay { display: none; }
	.mv-hero__inner { min-height: 0; padding-top: 44px; padding-bottom: 56px; }
	.mv-hero__text { max-width: none; }
	.mv-norme { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mv-norme li, .mv-norme li + li { padding: 18px 16px 18px 0; border-left: 0; }
	.mv-norme li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--mv-linea); }
	.mv-norme li:nth-child(n+3) { border-top: 1px solid var(--mv-linea); }
	.mv-section { padding: 64px 0; }
	.mv-partnerband__inner { flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 44px; padding-bottom: 44px; }
	.mv-partnerband__icon { width: 64px; height: 64px; }
	.mv-callfab { display: inline-flex; }
}
@media (max-width: 782px) { .admin-bar .mv-header { top: 46px; } }
@media (max-width: 680px) {
	.mv-topbar__claim { display: none; }
	.mv-topbar__inner { justify-content: center; }
	.mv-cards, .mv-steps, .mv-points, .mv-two { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .admin-bar .mv-header { top: 0; } }
@media (max-width: 480px) {
	.mv-wrap { padding-left: 16px; padding-right: 16px; }
	.mv-brand__logo { height: 34px; }
	.mv-brand__tag { font-size: 13px; }
	.mv-topbar__contacts { gap: 14px; font-size: 12px; }
	.mv-card { padding: 24px 20px; }
	.mv-two > div { padding: 24px; }
	.mv-box { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
