/*
Theme Name: Elettricista Luca
Description: Tema del sito Elettricista Luca Roma Capitale. Richiede il plugin Elettricista Luca Core.
Version: 1.0.2
Author: Kreacode
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: elettricistaluca
*/

:root {
	--elt-gold: #b89254;
	--elt-navy: #2e4861;
	--elt-cream: #fff7ea;
	--elt-font: "Poppins", sans-serif;
	--elt-font-nav: "Lato", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--elt-font); font-size: 16px; line-height: 1.5; color: #000; background: #fff; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
iframe { border: 0; display: block; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 5px; left: 5px; padding: 10px 15px; background: #fff; color: #000; }
:focus-visible { outline: 2px solid var(--elt-gold); outline-offset: 2px; }

/* Tipografia */
.elt-pre { font: 700 19px/1.5 var(--elt-font); text-transform: uppercase; }
.elt-h-xl { font: 700 55px/60px var(--elt-font); }
.elt-text { font: 400 16px/24px var(--elt-font); }
.elt-text p { margin: 0 0 .9rem; }
.elt-text p:last-child { margin-bottom: 0; }

/* Header */
.elt-header { position: relative; z-index: 50; display: flex; flex-wrap: wrap; padding: 20px 0 40px 50px; background: #fff; }
.elt-header__logo { width: 35%; display: flex; flex-direction: column; justify-content: center; }
.elt-header__logo a { display: block; }
.elt-header__logo img { width: 100%; }
.elt-header__nav { width: 35%; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; }
.elt-header__phone { width: 30%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.elt-header__phone .elt-badge { width: 349px; }

/* Riquadro telefono */
.elt-badge { display: block; max-width: 100%; line-height: 0; }
.elt-badge svg { display: block; width: 100%; height: auto; }

/* Menu */
.elt-nav ul { list-style: none; margin: 0; padding: 0; }
.elt-nav__list { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.elt-nav li { position: relative; }
.elt-nav__list > li > a { display: flex; align-items: center; padding: 13px 20px; font: 700 25px/20px var(--elt-font-nav); color: #000; text-decoration: none; }
.elt-nav__list > li > a:hover,
.elt-nav__list > li > a:focus,
.elt-nav__list > li.current-menu-item > a { color: var(--elt-gold); }
.elt-nav .menu-item-has-children > a::after { content: ""; width: 9px; height: 9px; margin: -6px 0 0 16px; border-right: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(45deg); }
.elt-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; z-index: 100; min-width: 260px; background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .12); }
.elt-nav .elc-locali > .sub-menu { max-height: 70vh; overflow-y: auto; }
.elt-nav li:hover > .sub-menu,
.elt-nav li:focus-within > .sub-menu,
.elt-nav li.is-open > .sub-menu { display: block; }
.elt-nav .sub-menu a { display: block; padding: 13px 20px; font: 700 17px/20px var(--elt-font-nav); color: #000; text-decoration: none; white-space: nowrap; }
.elt-nav .sub-menu a:hover,
.elt-nav .sub-menu a:focus,
.elt-nav .sub-menu .current-menu-item > a { background: var(--elt-gold); color: #fff; }
.elt-nav__toggle { display: none; }

/* Sezioni */
.elt-hero { display: flex; }
.elt-hero__img { width: 50%; height: 793px; object-fit: cover; }
.elt-hero__map { width: 50%; height: 793px; }

.elt-split { display: flex; max-width: 1170px; margin: 0 auto; padding: 50px 15px; }
.elt-split__text { width: 50%; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding-right: 40px; }
.elt-split__media { width: 50%; padding: 10px; }
.elt-split__media img { width: 100%; }
.elt-map { width: 100%; height: 552px; }

.elt-full img { width: 100%; }

.elt-callbox { display: flex; justify-content: center; padding: 60px 20px; }
.elt-callbox--lg { padding-bottom: 110px; }
.elt-callbox .elt-badge { width: 349px; }

.elt-blue { padding: 100px 15px; background: var(--elt-navy); color: #fff; text-align: center; }
.elt-blue > * { max-width: 1140px; margin-left: auto; margin-right: auto; }
.elt-blue__sub { font: 600 20px/20px var(--elt-font); }
.elt-blue__title { margin-top: 20px; font: 600 52px/52px var(--elt-font); }

.elt-grid { max-width: 1180px; margin: 0 auto; padding: 0 20px 50px; }
.elt-grid__row { display: flex; padding-top: 60px; }
.elt-card { width: 33.3333%; display: flex; flex-direction: column; gap: 20px; padding: 10px; }
.elt-card__img { display: flex; justify-content: center; }
.elt-card__img img { width: 426px; height: auto; aspect-ratio: 426 / 301; object-fit: cover; border-radius: 32px; }
.elt-card--h24 img { margin: 0 auto; }
.elt-card__title { font: 700 25px/25px var(--elt-font); }
.elt-card__title a { color: #000; text-decoration: none; }

.elt-cta { padding: 50px 15px 15px; text-align: center; }
.elt-cta .elt-h-xl { max-width: 1140px; margin: 0 auto; }

.elt-cols { display: flex; max-width: 1170px; margin: 0 auto; padding: 0 15px 30px; }
.elt-cols--svc .elt-cols__col { gap: 35px; }
.elt-cols__col { width: 50%; display: flex; flex-direction: column; gap: 20px; padding: 10px; }

.elt-zone { max-width: 1170px; margin: 0 auto; padding: 0 15px 80px; text-align: center; }
.elt-zone .elt-h-xl { margin-bottom: 40px; }
.elt-zone__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.elt-zone__btn { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 70px; padding: 15px 20px; border-radius: 16px; background: var(--elt-navy); color: #fff; font: 700 18px/1.3 var(--elt-font); text-decoration: none; transition: background-color .2s; }
.elt-zone__btn:hover,
.elt-zone__btn:focus { background: var(--elt-gold); }

.elt-center { max-width: 1160px; margin: 0 auto; padding: 10px; display: flex; flex-direction: column; gap: 20px; }
.elt-center .elt-h-xl { text-align: center; }

.elt-page { max-width: 1140px; margin: 0 auto; padding: 50px 15px; display: flex; flex-direction: column; gap: 20px; }

/* Footer */
.elt-foot-cta { padding: 100px 15px; background: var(--elt-gold); }
.elt-foot-cta__box { max-width: 1140px; margin: 0 auto; display: flex; gap: 20px; padding: 50px 30px; background: var(--elt-cream); border-radius: 30px; }
.elt-foot-cta__col { width: 50%; display: flex; flex-direction: column; justify-content: center; padding: 10px; }
.elt-foot-cta__col--badge { align-items: center; }
.elt-foot-cta__col--badge .elt-badge { width: 349px; }
.elt-foot-cta h2 { font: 700 36px/40px var(--elt-font); letter-spacing: .8px; }

.elt-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; max-width: 1170px; margin: 0 auto; padding: 50px 15px; }
.elt-pay__label { font: 400 20px/30px var(--elt-font); }

.elt-legal { max-width: 1170px; margin: 0 auto; padding: 30px 15px 15px; font: 400 15px/22.5px var(--elt-font); text-align: center; }
.elt-legal p { margin: 0 0 .9rem; }
.elt-legal p:last-child { margin-bottom: 0; }

.elt-bottom { height: 45px; background: var(--elt-navy); }

/* Tablet */
@media (max-width: 1024px) {
	.elt-header { align-items: center; padding: 30px 15px; }
	.elt-header__logo { width: 50%; }
	.elt-header__nav { position: static; width: 15%; padding: 10px 0; justify-content: center; }
	.elt-header__phone { width: 35%; }

	.elt-nav__toggle { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 33px; height: 33px; margin-left: auto; padding: 0 7px; border: 0; border-radius: 3px; background: rgba(0, 0, 0, .05); cursor: pointer; }
	.elt-nav__toggle span { display: block; height: 3px; background: #000; border-radius: 2px; transition: transform .2s, opacity .2s; }
	.elt-header.is-open .elt-nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.elt-header.is-open .elt-nav__toggle span:nth-child(2) { opacity: 0; }
	.elt-header.is-open .elt-nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.elt-nav__list { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; max-height: calc(100vh - 120px); overflow-y: auto; background: #fff; box-shadow: 0 10px 20px rgba(0, 0, 0, .08); }
	.elt-header.is-open .elt-nav__list { display: flex; }
	.elt-nav__list > li > a,
	.elt-nav .sub-menu a { justify-content: space-between; padding: 21px 32px; font: 700 17px/20px var(--elt-font-nav); color: #000; white-space: normal; }
	.elt-nav .sub-menu a { padding-left: 48px; }
	.elt-nav__list > li > a:hover,
	.elt-nav__list > li > a:focus,
	.elt-nav__list > li.current-menu-item > a { background: var(--elt-gold); color: #fff; }
	.elt-nav .sub-menu { position: static; min-width: 0; box-shadow: none; }
	.elt-nav .elc-locali > .sub-menu { max-height: none; overflow: visible; }
	.elt-nav li:hover > .sub-menu,
	.elt-nav li:focus-within > .sub-menu { display: none; }
	.elt-nav li.is-open > .sub-menu { display: block; }

	.elt-zone__list { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 767px) {
	.elt-header__logo { width: 70%; }
	.elt-header__nav { width: 30%; }
	.elt-header__phone { width: 100%; padding: 10px; }
	.elt-header__phone .elt-badge { width: 340px; }
	.elt-nav__list > li > a,
	.elt-nav .sub-menu a { padding-top: 12px; padding-bottom: 12px; font-size: 15px; }
	.elt-nav__list { max-height: calc(100vh - 100px); }

	.elt-h-xl { font-size: 32px; line-height: 38.4px; }

	.elt-hero { flex-direction: column; }
	.elt-hero__img, .elt-hero__map { width: 100%; }
	.elt-hero__map { height: 497px; }

	.elt-split { flex-direction: column; }
	.elt-split__text { width: 100%; padding-right: 0; }
	.elt-split__media { width: 100%; }

	.elt-blue__title { font-size: 35px; line-height: 35px; }

	.elt-grid { padding: 0 15px 50px; }
	.elt-grid__row { flex-direction: column; }
	.elt-card { width: 100%; }

	.elt-cta { padding-bottom: 0; }
	.elt-cols { flex-direction: column; }
	.elt-cols__col { width: 100%; }

	.elt-zone { padding-bottom: 50px; }
	.elt-zone .elt-h-xl { margin-bottom: 25px; }
	.elt-zone__list { grid-template-columns: 1fr; gap: 12px; }
	.elt-zone__btn { min-height: 56px; font-size: 16px; }

	.elt-foot-cta__box { flex-direction: column; padding: 30px 10px; }
	.elt-foot-cta__col { width: 100%; padding: 0; }
	.elt-foot-cta h2 { font-size: 18px; line-height: 19.8px; }
}

@media (prefers-reduced-motion: reduce) {
	.elt-nav__toggle span,
	.elt-zone__btn { transition: none; }
}
