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

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--flt-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(--flt-gold); outline-offset: 2px; }

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

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

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

/* Menu */
.flt-nav ul { list-style: none; margin: 0; padding: 0; }
.flt-nav__list { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.flt-nav li { position: relative; }
.flt-nav__list > li > a { display: flex; align-items: center; padding: 13px 20px; font: 700 25px/20px var(--flt-font-nav); color: #000; text-decoration: none; }
.flt-nav__list > li > a:hover,
.flt-nav__list > li > a:focus,
.flt-nav__list > li.current-menu-item > a { color: var(--flt-gold); }
.flt-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); }
.flt-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); }
.flt-nav .flc-locali > .sub-menu { max-height: 70vh; overflow-y: auto; }
.flt-nav li:hover > .sub-menu,
.flt-nav li:focus-within > .sub-menu,
.flt-nav li.is-open > .sub-menu { display: block; }
.flt-nav .sub-menu a { display: block; padding: 13px 20px; font: 700 17px/20px var(--flt-font-nav); color: #000; text-decoration: none; white-space: nowrap; }
.flt-nav .sub-menu a:hover,
.flt-nav .sub-menu a:focus,
.flt-nav .sub-menu .current-menu-item > a { background: var(--flt-gold); color: #fff; }
.flt-nav__toggle { display: none; }

/* Sezioni */
.flt-wrap { max-width: 1140px; margin: 0 auto; }

.flt-hero { display: flex; }
.flt-hero__img { width: 50%; height: auto; align-self: flex-start; }
.flt-hero__map { width: 50%; height: 793px; }

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

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

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

.flt-blue { padding: 100px 15px; background: var(--flt-navy); color: #fff; text-align: center; }
.flt-blue__sub { font: 600 20px/20px var(--flt-font); }
.flt-blue__title { margin-top: 20px; font: 600 52px/52px var(--flt-font); }

.flt-grid { padding: 0 15px 50px; }
.flt-grid__row { display: flex; padding-top: 60px; }
.flt-grid__row:first-child .flt-card { justify-content: flex-end; }
.flt-card { width: 33.3333%; display: flex; flex-direction: column; gap: 20px; padding: 10px; }
.flt-card__img { display: flex; justify-content: center; }
.flt-card__img img { width: 426px; }
.flt-card--h24 img { margin: 0 auto; }
.flt-card__title { font: 700 25px/25px var(--flt-font); }
.flt-card__title a { color: #000; text-decoration: none; }

.flt-cta { padding: 50px 15px 15px; text-align: center; }

.flt-cols { display: flex; padding: 0 15px 30px; }
.flt-cols__col { width: 50%; display: flex; flex-direction: column; gap: 20px; padding: 10px; }

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

.flt-center { padding: 10px; display: flex; flex-direction: column; gap: 20px; }
.flt-center .flt-h-xl { text-align: center; }

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

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

.flt-pay { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 50px 15px; }
.flt-pay > * { min-width: 0; }
.flt-pay__label { font: 400 20px/30px var(--flt-font); }

.flt-legal { padding: 30px 15px 15px; font: 400 15px/22.5px var(--flt-font); text-align: center; }
.flt-legal p { margin: 0 0 .9rem; }

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

/* Tablet */
@media (max-width: 1024px) {
	.flt-hero, .flt-split, .flt-cols, .flt-foot-cta__box { flex-direction: column; }
	.flt-hero__img, .flt-hero__map, .flt-split__text, .flt-split__media, .flt-cols__col, .flt-foot-cta__col { width: 100%; }
	.flt-hero__map { height: 622px; }
	.flt-foot-cta h2 { text-align: center; }

	.flt-header { align-items: center; padding: 30px 15px; }
	.flt-header__logo { width: 50%; }
	.flt-header__nav { position: static; width: 15%; padding: 10px 0; justify-content: center; }
	.flt-header__phone { width: 33%; }

	.flt-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; }
	.flt-nav__toggle span { display: block; height: 3px; background: #000; border-radius: 2px; transition: transform .2s, opacity .2s; }
	.flt-header.is-open .flt-nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.flt-header.is-open .flt-nav__toggle span:nth-child(2) { opacity: 0; }
	.flt-header.is-open .flt-nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.flt-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); }
	.flt-header.is-open .flt-nav__list { display: flex; }
	.flt-nav__list > li > a,
	.flt-nav .sub-menu a { justify-content: space-between; padding: 21px 32px; font: 700 17px/20px var(--flt-font-nav); color: #000; white-space: normal; }
	.flt-nav .sub-menu a { padding-left: 48px; }
	.flt-nav__list > li > a:hover,
	.flt-nav__list > li > a:focus,
	.flt-nav__list > li.current-menu-item > a { background: var(--flt-gold); color: #fff; }
	.flt-nav .sub-menu { position: static; min-width: 0; box-shadow: none; }
	.flt-nav .flc-locali > .sub-menu { max-height: none; overflow: visible; }
	.flt-nav li:hover > .sub-menu,
	.flt-nav li:focus-within > .sub-menu { display: none; }
	.flt-nav li.is-open > .sub-menu { display: block; }

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

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

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

	.flt-hero__map { height: 497px; }

	.flt-split__text { padding-right: 0; }

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

	.flt-pay { flex-wrap: wrap; }
	.flt-grid { padding-bottom: 0; }
	.flt-grid__row { flex-direction: column; }
	.flt-grid__row + .flt-grid__row { padding-top: 0; }
	.flt-card { width: 100%; }

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


	.flt-foot-cta__box { padding: 30px 10px; }
	.flt-foot-cta__col { padding: 0; }
	.flt-foot-cta h2 { font-size: 18px; line-height: 19.8px; }
}

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