/* ==========================================================================
   Elettricista Lodi – stili del sito
   Colori e font arrivano da Aspetto → Personalizza (variabili --el-*)
   e dalla palette di theme.json (--wp--preset--*).
   ========================================================================== */

:root {
	--el-primary: #12203a;
	--el-accent: #f1d518;
	--el-dark: #0b1426;
	--el-light: #f5f7fb;
	--el-text: #1c2533;
	--el-muted: #4a556b;
	--el-border: #e6e9ef;
	--el-gold-text: #8a6f00;
	--el-radius: 18px;
	--el-shadow: 0 16px 36px rgba(18, 32, 58, .12);
	--el-container: 1240px;
	--el-gutter: 24px;
	--el-header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--el-header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--el-font-body, system-ui, sans-serif); color: var(--el-text); background: #fff; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-family: var(--el-font-heading, inherit); text-wrap: balance; }
p { text-wrap: pretty; }
a { text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--el-accent); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 12px; top: 12px; z-index: 999; padding: 12px 18px; background: #fff; color: var(--el-primary); font-weight: 700; border-radius: 8px; }

.el-container { max-width: var(--el-container); margin: 0 auto; padding-left: var(--el-gutter); padding-right: var(--el-gutter); }
.el-container--narrow { max-width: calc(760px + var(--el-gutter) * 2); }

/* ---------- Pulsanti del tema ---------- */
.el-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; line-height: 1.2; white-space: nowrap; border: 2px solid transparent; transition: background .15s, color .15s, transform .15s; }
.el-btn--accent { background: var(--el-accent); color: var(--el-primary); }
.el-btn--accent:hover { background: #ffe23d; color: var(--el-primary); }
.el-btn--dark { background: var(--el-primary); color: #fff; }
.el-btn--dark:hover { background: #1d3157; color: #fff; }

/* ---------- Barra superiore ---------- */
.el-topbar { background: var(--el-primary); color: #e8ecf3; font-size: 14px; }
.el-topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; padding-top: 9px; padding-bottom: 9px; }
.el-topbar p { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.el-topbar__urgent { color: var(--el-accent); font-weight: 700; }
.el-topbar__contacts { gap: 20px !important; }
.el-topbar a { color: #e8ecf3; text-decoration: none; }
.el-topbar a:hover { color: #fff; text-decoration: underline; }
.el-topbar .el-topbar__phone { color: var(--el-accent); font-weight: 700; }

/* ---------- Header e menu ---------- */
.el-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--el-border); transition: box-shadow .2s; }
.admin-bar .el-header { top: 32px; }
.el-header.is-scrolled { box-shadow: 0 6px 20px rgba(18, 32, 58, .08); }
.el-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--el-header-h); }
.el-logo { display: inline-flex; flex: 0 0 auto; }
.el-logo img { height: 30px; width: auto; display: block; }
.el-header__actions { display: flex; align-items: center; gap: 10px; }

.el-nav { display: flex; align-items: center; }
.el-nav__call { display: none; }
.el-menu, .el-menu ul { list-style: none; margin: 0; padding: 0; }
.el-menu { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; }
.el-menu > li { position: relative; display: flex; align-items: center; }
.el-menu a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 11px; border-radius: 8px; font-weight: 600; font-size: 15px; color: #3b4659; text-decoration: none; white-space: nowrap; }
.el-menu a:hover, .el-menu .current-menu-item > a, .el-menu .current-menu-ancestor > a, .el-menu .current-menu-parent > a { color: var(--el-primary); background: #f1f4f9; }
.el-sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 36px; margin-left: -8px; padding: 0; border: 0; background: none; color: #3b4659; cursor: pointer; border-radius: 6px; }
.el-sub-toggle svg { transition: transform .2s; }
.el-menu .sub-menu { position: absolute; top: 100%; left: 0; min-width: 280px; padding: 8px; background: #fff; border: 1px solid var(--el-border); border-radius: 14px; box-shadow: 0 20px 40px rgba(18, 32, 58, .14); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 50; }
.el-menu .sub-menu li { position: relative; display: flex; align-items: center; flex-wrap: wrap; }
.el-menu .sub-menu a { flex: 1; font-weight: 500; white-space: normal; }
.el-menu .sub-menu .sub-menu { top: -9px; left: 100%; }
.el-menu li:hover > .sub-menu, .el-menu li:focus-within > .sub-menu, .el-menu li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.el-menu li.is-open > .el-sub-toggle svg { transform: rotate(180deg); }
.el-menu .sub-menu .el-sub-toggle svg { transform: rotate(-90deg); }

.el-burger { display: none; width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid var(--el-primary); background: #fff; color: var(--el-primary); align-items: center; justify-content: center; cursor: pointer; }
.el-burger__close { display: none; }
.el-menu-open .el-burger__open { display: none; }
.el-menu-open .el-burger__close { display: inline; }

@media (max-width: 1240px) {
	.el-header__cta { display: none; }
	.el-menu a { padding: 10px 9px; font-size: 14.5px; }
}
@media (max-width: 1060px) {
	.el-burger { display: inline-flex; }
	.el-nav { position: fixed; top: var(--el-nav-top, 120px); left: 0; right: 0; bottom: 0; z-index: 99; background: #fff; flex-direction: column; align-items: stretch; padding: 12px var(--el-gutter) 120px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; visibility: hidden; border-top: 1px solid var(--el-border); }
	.el-menu-open .el-nav { transform: none; visibility: visible; }
	.el-menu-open { overflow: hidden; }
	.el-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.el-menu > li, .el-menu .sub-menu li { flex-wrap: wrap; border-bottom: 1px solid #eef1f5; }
	.el-menu a { flex: 1; font-size: 17px; padding: 14px 4px; white-space: normal; }
	.el-sub-toggle { width: 48px; height: 48px; margin: 0; }
	.el-menu .sub-menu, .el-menu .sub-menu .sub-menu { position: static; width: 100%; min-width: 0; box-shadow: none; border: 0; padding: 0 0 8px 14px; opacity: 1; visibility: visible; transform: none; display: none; }
	.el-menu li.is-open > .sub-menu { display: block; }
	.el-menu li:hover > .sub-menu, .el-menu li:focus-within > .sub-menu { display: none; }
	.el-menu li.is-open:hover > .sub-menu, .el-menu li.is-open:focus-within > .sub-menu { display: block; }
	.el-menu .sub-menu li { border-bottom: 0; }
	.el-menu .sub-menu a { font-size: 16px; padding: 10px 4px; color: var(--el-muted); }
	.el-menu .sub-menu .el-sub-toggle svg { transform: none; }
	.el-nav__call { display: inline-flex; margin-top: 20px; }
	.el-hide-mobile { display: none; }
}
@media (max-width: 782px) { .admin-bar .el-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .el-header { top: 0; } .el-logo img { height: 24px; } :root { --el-header-h: 68px; } }

/* ---------- Briciole ---------- */
.el-crumbs-bar { background: var(--el-light); padding-top: 18px; }
.el-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: #5b6680; }
.el-breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #8a93a6; }
.el-breadcrumbs a { color: var(--el-muted); }
.el-breadcrumbs [aria-current] { color: var(--el-primary); font-weight: 600; }

/* ---------- Intestazione semplice (pagine senza H1 nel contenuto) ---------- */
.el-page-header { background: var(--el-light); padding: 28px 0 48px; border-bottom: 1px solid var(--el-border); }
.el-page-header__title { margin: 0; font-size: var(--wp--preset--font-size--xx-large); color: var(--el-primary); }
.el-page-header__desc { color: var(--el-muted); max-width: 720px; }

/* ---------- Contenuti a blocchi ---------- */
/* Margini laterali gestiti dal tema (uguali su tutte le versioni di WordPress). */
.entry-content.has-global-padding { padding-left: var(--el-gutter); padding-right: var(--el-gutter); }
.entry-content.has-global-padding > .alignfull { margin-left: calc(var(--el-gutter) * -1) !important; margin-right: calc(var(--el-gutter) * -1) !important; max-width: none; }
.entry-content > .alignfull.has-global-padding, .entry-content > .alignfull.el-section { padding-left: var(--el-gutter) !important; padding-right: var(--el-gutter) !important; }
.el-topbar__sep { display: none; }
@media (max-width: 599px) { .el-topbar__info > span:first-child, .el-topbar__contacts { display: none !important; } .el-topbar__inner { justify-content: center; } }
@media (min-width: 600px) { .el-topbar__sep { display: inline; } }
.entry-content > *:first-child.alignfull { margin-top: 0; }
.entry-content > .alignfull + .alignfull { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.el-page .entry-content { margin-bottom: 0; }
.el-section { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.el-section--tight { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.el-section > * { margin-left: auto; margin-right: auto; }

.el-eyebrow { margin-bottom: .5rem !important; color: var(--el-gold-text); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.has-primario-background-color .el-eyebrow, .has-blu-scuro-background-color .el-eyebrow { color: var(--el-accent); }
.el-badge { display: inline-block; background: var(--el-primary); color: var(--el-accent); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; }
.el-lead { font-size: var(--wp--preset--font-size--large); color: #44506a; }
.has-primario-background-color { color: #e8ecf3; }
.has-primario-background-color :where(h1,h2,h3,h4) { color: #fff; }
.has-primario-background-color p:not(.el-eyebrow):not(.el-stat__num) { color: #c9d1de; }

/* Pulsanti blocco: stile "Scuro" e "Bordo" */
.wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.wp-block-button.is-style-el-scuro .wp-block-button__link { background: var(--el-primary); color: #fff; }
.wp-block-button.is-style-el-scuro .wp-block-button__link:hover { background: #1d3157; color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--el-primary); border: 2px solid currentColor; padding: calc(.85rem - 2px) calc(1.5rem - 2px); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--el-primary); color: #fff; }
.has-primario-background-color .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; }
.has-primario-background-color .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--el-primary); }

/* Elenco con spunte */
.el-checks { list-style: none; padding-left: 0 !important; display: grid; gap: 10px; }
.el-checks li { position: relative; padding-left: 30px; font-weight: 600; color: #2b3547; }
.el-checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; background: no-repeat center/20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a800' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.el-checks--inline { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; }

/* Immagini dei pattern */
.wp-block-image.el-img-hero img, .wp-block-image.el-img-side img, .wp-block-image.el-img-page img { width: 100%; object-fit: cover; border-radius: 22px; display: block; }
.wp-block-image.el-img-hero img { aspect-ratio: 4 / 3.3; }
.wp-block-image.el-img-side img { aspect-ratio: 4 / 3; }
.wp-block-image.el-img-page img { aspect-ratio: 3 / 2; }
.wp-block-image.el-img-card { margin: 0; }
.wp-block-image.el-img-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

/* Hero home */
.el-hero-media { position: relative; }
.el-hero-float { position: absolute; left: 16px; bottom: 24px; max-width: 320px; background: #fff; border-radius: 16px; padding: 16px 20px !important; box-shadow: 0 18px 40px rgba(18, 32, 58, .18); }
.el-hero-float p { margin: 0; }
.el-hero-float p:first-child { font-weight: 800; color: var(--el-primary); }
.el-hero-float p + p { font-size: 14px; color: #44506a; }

/* Card servizi (carosello e griglia) */
.el-card { background: #fff; border: 1px solid var(--el-border); border-radius: var(--el-radius); overflow: hidden; display: flex; flex-direction: column; gap: 0 !important; transition: box-shadow .2s, transform .2s; position: relative; }
.el-card:hover { box-shadow: var(--el-shadow); transform: translateY(-2px); }
.el-card > :not(.wp-block-image) { margin: 0 22px !important; }
.el-card > .wp-block-heading { margin-top: 20px !important; margin-bottom: 8px !important; font-size: 1.2rem; }
.el-card > .wp-block-heading a { color: var(--el-primary); text-decoration: none; }
.el-card > .wp-block-heading a::after { content: ""; position: absolute; inset: 0; } /* tutta la card è cliccabile */
.el-card > p { color: var(--el-muted); font-size: 15px; line-height: 1.55; }
.el-card > p.el-card__more { margin-top: auto !important; padding: 14px 0 22px; font-weight: 700; color: var(--el-primary); }
.el-card > p:last-child { padding-bottom: 22px; }

.has-text-align-center { text-align: center; }
.el-grid-fit { grid-template-columns: repeat(auto-fit, minmax(min(var(--el-grid-min, 250px), 100%), 1fr)) !important; }
.el-carousel { align-items: stretch !important; }
.el-carousel { display: flex !important; flex-wrap: nowrap !important; gap: 24px !important; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 18px; scrollbar-width: thin; overscroll-behavior-x: contain; }
.el-carousel > .el-card { flex: 0 0 clamp(260px, 28vw, 300px); scroll-snap-align: start; }
.el-carousel-nav { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 8px !important; }
.el-carousel-btn { width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid var(--el-primary); background: #fff; color: var(--el-primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.el-carousel-btn:hover:not(:disabled) { background: var(--el-primary); color: var(--el-accent); }
.el-carousel-btn:disabled { opacity: .35; cursor: default; }

/* Punti di forza / passaggi */
.el-feature { background: #fff; border: 1px solid var(--el-border); border-top: 4px solid var(--el-accent); border-radius: 16px; padding: 26px !important; }
.el-feature > * { margin: 0 0 8px !important; }
.el-feature > p { color: var(--el-muted); margin: 0 !important; }
.el-step { background: var(--el-light); border-radius: var(--el-radius); padding: 28px !important; }
.el-step > * { margin: 0 0 8px !important; }
.el-step > p:last-child { color: var(--el-muted); margin: 0 !important; }
.el-step__num { width: 40px; height: 40px; border-radius: 999px; background: var(--el-accent); color: var(--el-primary); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 16px !important; }
.el-stat { border-top: 3px solid var(--el-accent); padding-top: 14px !important; }
.el-stat > p { margin: 0 !important; }
.el-stat__num { font-size: 30px; font-weight: 800; color: #fff; line-height: 1.2; }
.el-stat p + p { font-size: 14px; }

/* Elenco a "chip" (zone, link) */
.el-chips { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; }
.el-chips li { margin: 0; }
.el-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid #d9dee8; color: var(--el-primary); font-weight: 600; text-decoration: none; }
.el-chips a:hover { border-color: var(--el-primary); }
.el-chips li:first-child a { background: var(--el-primary); border-color: var(--el-primary); color: #fff; }
.el-chips--plain li:first-child a { background: #fff; border-color: #d9dee8; color: var(--el-primary); }

/* FAQ */
.wp-block-details summary { font-weight: 700; font-size: 1.1rem; color: var(--el-primary); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--el-gold-text); flex: 0 0 auto; }
.wp-block-details[open] summary::after { content: "–"; }
.wp-block-details > :not(summary) { color: var(--el-muted); }

/* Call to action */
.el-cta { border-radius: 24px; padding: clamp(28px, 4vw, 44px) !important; }
.el-cta h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 6px; }
.el-cta p { margin: 0; }

/* Contatti */
.el-contact-list p { margin: 0 0 14px; }
.el-contact-list strong { display: block; font-size: 13px; color: #6b7590; text-transform: uppercase; letter-spacing: .04em; }
.el-contact-list .el-tel, .el-contact-big { font-size: 26px; font-weight: 800; color: var(--el-primary); text-decoration: none; }
.el-form-card { background: var(--el-light); border-radius: 24px; padding: clamp(20px, 3vw, 32px) !important; }
.el-form--missing { background: #fff; border: 1px dashed #c9a800; border-radius: 14px; padding: 18px 20px; }
.el-admin-note { font-size: 13px; color: #8a6f00; }

/* Fluent Forms in stile con il sito */
.el-form .ff-el-group { margin-bottom: 16px; }
.el-form .ff-el-input--label label { font-weight: 600; font-size: 14px; color: var(--el-primary); }
.el-form .ff-el-form-control { min-height: 48px; border: 1px solid #cfd5e0; border-radius: 10px; padding: 10px 14px; font: inherit; background: #fff; }
.el-form .ff-el-form-control:focus { border-color: var(--el-primary); box-shadow: 0 0 0 3px rgba(241, 213, 24, .45); }
.el-form .ff-btn-submit, .el-form .ff_submit_btn_wrapper .ff-btn { width: 100%; min-height: 54px; border-radius: 12px !important; background: var(--el-primary) !important; color: #fff !important; font-weight: 800 !important; font-size: 16px !important; border: 0 !important; }
.el-form .ff-btn-submit:hover { background: #1d3157 !important; }
.el-form .ff-message-success { border-radius: 14px; background: #eaf6ee; border: 1px solid #9ccfae; color: #18432a; }

/* Articoli in griglia (blocco Query e archivi) */
.el-posts .wp-block-post-template { gap: 22px; }
.el-posts .wp-block-post { background: #fff; border: 1px solid var(--el-border); border-radius: var(--el-radius); padding: 0 0 24px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.el-posts .wp-block-post > * { margin-left: 24px; margin-right: 24px; }
.el-posts .wp-block-post-featured-image { margin: 0 0 18px; }
.el-posts .wp-block-post-featured-image img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.el-posts .wp-block-post:not(:has(.wp-block-post-featured-image)) { padding-top: 24px; }
.el-posts .wp-block-post-title { margin-top: 0; margin-bottom: 8px; }
.el-posts .wp-block-post-title a { color: var(--el-primary); text-decoration: none; }
.el-posts .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.el-posts .wp-block-post-excerpt { color: var(--el-muted); font-size: 15px; margin-top: 0; }
.el-posts .wp-block-post-excerpt__more-link { font-weight: 700; color: var(--el-primary); }
.el-posts .wp-block-post-terms a { font-size: 12px; color: var(--el-gold-text); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }

.el-archive, .el-related { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.el-related { background: var(--el-light); }
.el-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.el-post-card__link { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--el-border); border-radius: var(--el-radius); overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .2s; }
.el-post-card__link:hover { box-shadow: var(--el-shadow); }
.el-post-card__link img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.el-post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; flex: 1; }
.el-post-card__title { font-family: var(--el-font-heading); font-weight: 800; font-size: 1.15rem; color: var(--el-primary); line-height: 1.35; }
.el-post-card__excerpt { color: var(--el-muted); font-size: 15px; }
.el-post-card__more { margin-top: auto; font-weight: 700; color: var(--el-primary); }
.el-tag { font-size: 12px; color: var(--el-gold-text); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.nav-links { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.nav-links .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--el-border); text-decoration: none; color: var(--el-primary); font-weight: 600; }
.nav-links .page-numbers.current { background: var(--el-primary); color: #fff; }

/* Articolo singolo */
.el-article__header { background: var(--el-light); padding: 22px 0 44px; border-bottom: 1px solid var(--el-border); }
.el-article__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 28px 0 10px; font-size: 14px; color: #5b6680; }
.el-article__title { margin: 0; font-size: clamp(1.9rem, 4vw, 2.9rem); color: var(--el-primary); line-height: 1.12; }
.el-article__image { margin: 36px auto 0; }
.el-article__image img { border-radius: 20px; width: 100%; display: block; }
.el-prose { padding-top: 40px; padding-bottom: 24px; font-size: 1.0625rem; }
.el-prose h2 { font-size: 1.6rem; margin-top: 2.2em; }
.el-prose h3 { font-size: 1.25rem; margin-top: 1.8em; }
.el-prose img { border-radius: 14px; }
.el-prose table { width: 100%; border-collapse: collapse; }
.el-prose td, .el-prose th { border: 1px solid var(--el-border); padding: 8px 10px; }
.el-article__cta { margin: 32px 0 56px; padding: 30px; border-radius: 20px; background: var(--el-primary); color: #c9d1de; display: grid; gap: 8px; justify-items: start; }
.el-article__cta p { margin: 0; }
.el-article__cta-title { color: #fff; font-weight: 800; font-size: 1.35rem; font-family: var(--el-font-heading); }

/* 404 e ricerca */
.el-404 { padding: clamp(3rem, 8vw, 6rem) 0; }
.el-404__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 48px; border: 1px solid #cfd5e0; border-radius: 10px; padding: 0 14px; font: inherit; }
.search-submit { min-height: 48px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--el-primary); color: #fff; font-weight: 700; cursor: pointer; }

/* ---------- Footer ---------- */
.el-footer { background: var(--el-dark); color: #c9d1de; padding: 64px 0 28px; font-size: 15px; }
.el-footer a { color: #c9d1de; text-decoration: none; }
.el-footer a:hover { color: var(--el-accent); }
.el-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 40px; }
.el-footer__brand img { height: 26px; width: auto; margin-bottom: 18px; display: block; }
.el-footer__brand p { line-height: 1.7; margin: 0 0 12px; }
.el-footer__title { margin: 0 0 14px; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 0; }
.el-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.el-footer__menu--inline { flex-direction: row; flex-wrap: wrap; gap: 6px 14px; }
.el-footer__address { font-style: normal; line-height: 1.8; }
.el-footer .el-footer__phone { color: var(--el-accent); font-weight: 700; }
.el-footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid #22304a; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #9aa6ba; }
.el-footer__bottom p { margin: 0; }
.el-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.el-footer__legal a { color: #9aa6ba; text-decoration: underline; }

/* Pulsante chiamata fisso (solo smartphone) */
.el-mobile-call { display: none; }
@media (max-width: 782px) {
	.el-mobile-call { display: flex; align-items: center; justify-content: center; gap: 8px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90; min-height: 52px; border-radius: 14px; background: var(--el-accent); color: var(--el-primary); font-weight: 800; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
	.el-footer { padding-bottom: 96px; }
	.el-menu-open .el-mobile-call { display: none; }
	.el-hero-float { position: static; margin-top: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.el-topbar, .el-header, .el-footer, .el-mobile-call, .el-carousel-nav { display: none !important; }
}
