/*
Theme Name: Dr. Alberto Piras
Theme URI: https://brandlabdesign.it
Author: Brand Lab Design Studio
Author URI: https://brandlabdesign.it
Description: Tema landing su misura per il Dr. Alberto Piras, Ostetricia e Ginecologia. Testi, foto, telefoni e sedi modificabili da Aspetto › Personalizza › Landing Dr. Piras. Modulo di prenotazione integrato (wp_mail, honeypot, nonce), font self-hosted.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: piras
*/

/* ---------- Font (self-hosted) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

/* ---------- Token (Variante B: rosa + blu) ---------- */
:root {
	--ink: #0E2241;
	--body: #46536A;
	--blue: #034080;
	--pink: #B03A6A;
	--pink-dark: #8A2B53;
	--pink-light: #F4B8D1;
	--pink-soft: #FBEEF3;
	--pink-shape: #F4C9DA;
	--muted-dark: #D6E2F2;
	--footer-bg: #B03A6A;
	--footer-text: #FFEAF2;
	--line: #EFE6EC;
	--card-line: #EEDDE5;
	--input-line: #D9CFDC;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
	--radius-lg: 28px;
	--radius: 24px;
	--gutter: clamp(20px, 4vw, 40px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--pink); }
a:hover { color: var(--pink-dark); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #FFFFFF; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.container { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: 820px; }

.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink); }
.eyebrow--light { color: var(--pink-light); }
.h2 { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
.h3 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.3; }
.h3--sm { font-size: 20px; }
.lead { margin: 0; color: var(--body); font-size: 17px; }

/* ---------- Bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 46px; padding: 0 22px; font-size: 15px; gap: 8px; }
.btn--primary { background: var(--blue); color: #FFFFFF; }
.btn--primary:hover { background: #02336A; color: #FFFFFF; }
.btn--accent { background: var(--pink); color: #FFFFFF; }
.btn--accent:hover { background: var(--pink-dark); color: #FFFFFF; }
.btn--ghost-light { border-color: #FFFFFF; color: #FFFFFF; }
.btn--ghost-light:hover { background: #FFFFFF; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* ---------- Header ---------- */
.site-header { background: #FFFFFF; border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand__logo { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; display: block; flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.brand__sub { font-size: 13px; color: var(--body); }
.main-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.main-nav a:hover { color: var(--pink); }
.site-header__actions { display: flex; align-items: center; gap: 20px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
.header-phone svg { color: var(--blue); }
.header-call { display: none; width: 46px; height: 46px; border-radius: 999px; background: var(--pink-soft); color: var(--blue); align-items: center; justify-content: center; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 780px; display: flex; align-items: center; overflow: hidden; background: var(--blue); }
.hero__img { position: absolute; inset: 0; background-size: cover; background-position: 72% center; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 43, 87, .94) 0%, rgba(3, 64, 128, .82) 38%, rgba(3, 64, 128, .22) 62%, rgba(3, 64, 128, 0) 80%); }
.hero__inner { position: relative; width: 100%; padding-top: 96px; padding-bottom: 200px; }
.hero__content { max-width: 600px; display: flex; flex-direction: column; gap: 24px; color: #FFFFFF; }
.hero__title { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -0.02em; color: #FFFFFF; }
.hero__text { margin: 0; font-size: 18px; color: var(--muted-dark); max-width: 520px; }
.hero .btn-row { margin-top: 8px; }
.hero__badges { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; font-weight: 500; }
.hero__badges li { display: flex; align-items: center; gap: 8px; }
.hero__badges svg { color: var(--pink-light); stroke-width: 2.4; }

/* ---------- Modulo ---------- */
.booking { position: relative; z-index: 2; padding: 0 var(--gutter); }
.booking__card { max-width: 1200px; margin: -120px auto 0; background: #FFFFFF; border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(20, 20, 40, .16); padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 24px; }
.booking__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 32px; }
.booking__head > div { display: flex; flex-direction: column; gap: 6px; }
.booking__title { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.01em; }
.booking__text { margin: 0; color: var(--body); font-size: 15px; }
.booking__form { display: flex; flex-direction: column; gap: 16px; }
.booking__fields { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.field { flex: 1 1 190px; min-width: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select { height: 54px; padding: 0 16px; border: 1px solid var(--input-line); border-radius: 14px; font: inherit; font-weight: 400; font-size: 15px; color: var(--ink); background: #FFFFFF; width: 100%; }
.field input:focus, .field select:focus { border-color: var(--blue); outline: 3px solid rgba(3, 64, 128, .15); outline-offset: 0; }
.booking__submit { flex: 1 1 190px; }
.booking__note { margin: 0; display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px; border-radius: 14px; background: var(--pink-soft); color: var(--ink); font-size: 15px; }
.booking__note svg { color: var(--pink); flex: 0 0 20px; margin-top: 2px; }
.booking__note a { font-weight: 600; color: var(--pink-dark); white-space: nowrap; }
.booking__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--body); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); flex: 0 0 auto; }
.strong-link { font-weight: 600; color: var(--ink); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; border-radius: 14px; font-size: 15px; font-weight: 500; }
.notice--ok { background: #E8F4EC; color: #1E5631; }
.notice--err { background: var(--pink-soft); color: var(--pink-dark); }

/* ---------- Sezioni ---------- */
.section { padding: 112px 0; }
.section--flush-top { padding-top: 0; }
.section--soft { background: var(--pink-soft); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 680px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; margin-bottom: 56px; }
.section-head--split { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; margin-bottom: 56px; }
.section-head--split > div { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.section-head--split > p { flex: 1 1 360px; min-width: 0; }

/* Foto + testo affiancati: la foto è alta quanto il testo */
.split { display: flex; flex-wrap: wrap; align-items: stretch; gap: 64px; }
.split__body { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split__body .btn { align-self: flex-start; margin-top: 8px; }
.split__media { flex: 1 1 440px; min-width: 0; position: relative; min-height: 360px; }
.split__media--left { flex: 1 1 360px; max-width: 480px; min-height: 420px; }
.split__shape { position: absolute; border-radius: 32px; background: var(--pink-soft); }
.split__media--left .split__shape { top: 0; left: 0; right: 24px; bottom: 24px; }
.split__media--right .split__shape { top: 24px; left: 24px; right: 0; bottom: 0; }
.split__shape--pink { background: var(--pink-shape); }
.split__img { position: absolute; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: cover; border-radius: var(--radius-lg); }
.split__media--left .split__img { top: 24px; left: 24px; }
.split__media--right .split__img { top: 0; left: 0; }
.split__img--top { object-position: center top; }

/* Qualifiche */
.quals { display: flex; flex-wrap: wrap; margin-top: 72px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quals__item { flex: 1 1 250px; min-width: 0; display: flex; gap: 14px; padding: 28px 20px 28px 0; }
.quals__icon { color: var(--blue); flex: 0 0 28px; }
.quals__icon svg { stroke-width: 1.8; }
.quals__title { font-weight: 600; }
.quals__text { font-size: 14px; color: var(--body); }

/* Card */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.why-card { flex: 1 1 300px; min-width: 0; padding: 36px; border-radius: var(--radius); border: 1px solid var(--card-line); display: flex; flex-direction: column; gap: 14px; }
.why-card p { margin: 0; color: var(--body); }
.why-card__num { font-family: var(--font-head); font-weight: 800; font-size: 44px; line-height: 1; color: var(--blue); }
.why-card--dark { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }
.why-card--dark p { color: var(--muted-dark); }
.why-card--dark .why-card__num { color: var(--pink-light); }

.service-card { flex: 1 1 320px; min-width: 0; padding: 32px; border-radius: var(--radius); background: #FFFFFF; display: flex; flex-direction: column; gap: 14px; }
.service-card p { margin: 0; color: var(--body); font-size: 15px; }
.service-card__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--pink-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; }
.service-card__icon svg { stroke-width: 1.8; }

.checklist { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-weight: 500; }
.checklist li { display: flex; align-items: center; gap: 12px; }
.checklist svg { color: var(--blue); flex: 0 0 22px; stroke-width: 2.2; }

/* ---------- Parallax ---------- */
.parallax { position: relative; overflow: hidden; background-color: var(--blue); background-size: cover; background-position: center; background-attachment: fixed; }
.parallax__overlay { position: absolute; inset: 0; background: rgba(2, 43, 87, .74); }
.parallax__inner { position: relative; max-width: 860px; margin: 0 auto; padding: 140px var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; color: #FFFFFF; }
.parallax__title { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(32px, 4vw, 52px); line-height: 1.1; letter-spacing: -0.02em; color: #FFFFFF; }
.parallax__text { margin: 0; font-size: 18px; }
.parallax .btn-row { margin-top: 12px; }

/* ---------- Sedi ---------- */
.loc-card { flex: 1 1 320px; min-width: 0; padding: 32px; border-radius: var(--radius); border: 1px solid var(--card-line); display: flex; flex-direction: column; gap: 16px; }
.loc-card--main { border: 2px solid var(--blue); }
.loc-card__tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: #F3F1F6; color: #4A3F51; }
.loc-card--main .loc-card__tag { background: var(--pink-soft); color: var(--pink-dark); }
.loc-card__row { display: flex; gap: 10px; font-size: 15px; }
.loc-card__row svg { color: var(--blue); flex: 0 0 20px; margin-top: 2px; }
.loc-card__row--muted { color: var(--body); }
.loc-card__tels { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.loc-card__tels a { font-weight: 600; color: var(--ink); text-decoration: none; }
.loc-card__tels a:hover { color: var(--pink); }
.loc-card__map { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--blue); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); }
.site-footer .container { padding-top: 72px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 48px; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; }
.site-footer__about { flex: 1 1 320px; min-width: 0; max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.site-footer__about p { margin: 0; font-size: 15px; }
.brand--footer .brand__logo { width: 48px; height: 48px; border-radius: 12px; }
.brand--footer .brand__name { color: #FFFFFF; }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.site-footer__title { font-weight: 600; color: #FFFFFF; margin-bottom: 4px; }
.site-footer a { color: var(--footer-text); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13px; }
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.site-footer__credit a { font-weight: 600; text-decoration: none; }
.site-footer__legal a { text-decoration: underline; }

/* ---------- Pagine interne ---------- */
.page__title { margin-bottom: 32px; }
.page__content { color: var(--body); font-size: 17px; }
.page__content h2, .page__content h3 { color: var(--ink); font-family: var(--font-head); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.main-nav, .header-phone { display: none; }
	.header-call { display: inline-flex; }
	.parallax { background-attachment: scroll; }
	.split { gap: 40px; }
}
@media (max-width: 760px) {
	.hero { min-height: 640px; }
	.hero__img { background-position: 78% center; }
	.hero__overlay { background: rgba(2, 43, 87, .8); }
	.hero__inner { padding-top: 72px; padding-bottom: 170px; }
	.split__media--left { max-width: none; }
}
@media (max-width: 560px) {
	.header-cta { display: none; }
	.section { padding: 72px 0; }
	.section--flush-top { padding-top: 0; }
	.quals { margin-top: 48px; }
	.parallax__inner { padding-top: 96px; padding-bottom: 96px; }
	.btn { width: 100%; }
	.split__body .btn { align-self: stretch; }
	.why-card, .service-card, .loc-card { padding: 28px; }
}
