/* sell&sail — Home: blocchi della home (testata blu, porte, servizi con foto, scuole, diario di bordo, team, testi per Google) */
.ph { --cream: #fbf7f0; --sand: #f3ece0; }
.ph-h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.45rem, 3.4vw, 2rem); line-height: 1.15; margin: 0 0 14px; color: var(--navy); letter-spacing: -.01em; }
.ph-kicker { margin: 0 0 8px; font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: #c2560f; }
.ph-soft { background: var(--paper); }
.ph .section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }


/* numeri */
.ph-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.ph-nums > div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 10px; text-align: center; display: flex; flex-direction: column-reverse; }
.ph-nums dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 1.7rem; color: var(--navy); }
.ph-nums dt { font-size: .85rem; color: var(--muted); }

/* servizi */
.ph-svs { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.ph-svs::-webkit-scrollbar { display: none; }
.ph-sv { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); min-height: 56px; }
.ph-sv:hover { border-color: var(--navy); }
.ph-sv__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy-tint); color: var(--navy); flex: 0 0 38px; }
.ph-sv b { display: block; white-space: nowrap; }
.ph-sv small { display: block; color: var(--muted); white-space: nowrap; }
.ph-sv--all { background: var(--navy); color: #fff; border-color: transparent; }
.ph-sv--all small { color: rgba(255,255,255,.75); }
.ph-sv--all .ph-sv__ic { background: rgba(255,255,255,.15); color: #fff; }



/* ===================== Blocchi della home ===================== */
.ph--1 .section, main.ph--1 .hb.section { padding-block: 34px; }
main.ph--1 .hb.section.ph-soft { background: var(--paper); }
@media (min-width: 900px) { .ph--1 .section, main.ph--1 .hb.section { padding-block: 52px; } }
.ph--1 .section__head { margin-bottom: 16px; }
.ph--1 .section__head .ph-h2 { margin: 0; }
/* testata: quella della home, con le tre garanzie sotto al box di ricerca */
.ph-herobox { display: grid; gap: 14px; justify-items: center; }
.ph-herobox .searchbox { margin-top: 0; }
.ph-trust { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 700; font-size: .95rem; }
.ph-trust li { display: flex; align-items: center; gap: 6px; }
.ph-trust .i { color: var(--ok); flex: 0 0 auto; }
.ph-trust--hero { justify-content: center; margin: 0; color: #fff; font-size: .95rem; max-width: 460px; }
.ph-trust--hero .i { color: #fff; }
@media (min-width: 900px) { .ph-trust--hero { justify-content: flex-start; width: 100%; max-width: 400px; } }
/* tre porte */
.ph1-doors { display: grid; gap: 14px; }
@media (min-width: 820px) { .ph1-doors { grid-template-columns: repeat(3, 1fr); } }
.ph1-door { display: grid; gap: 6px; align-content: start; padding: 22px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-xl); text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.ph1-door:hover { transform: translateY(-3px); box-shadow: var(--lift); }
.ph1-door b { font-family: var(--f-display); font-size: 1.3rem; color: var(--navy); }
.ph1-door > span:not(.ph1-door__ic) { color: var(--muted); line-height: 1.45; }
.ph1-door em { font-style: normal; font-weight: 800; color: var(--navy); margin-top: 6px; }
.ph1-door__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--navy-tint); color: var(--navy); margin-bottom: 4px; }
/* niente bordo trasparente sul riquadro arancione: il gradiente si ripeteva e lasciava una riga a sinistra */
.ph1-door--sun { background: var(--sun); border: 0; padding: 23.5px; color: var(--sun-ink); }
.ph1-door--sun b, .ph1-door--sun em, .ph1-door--sun > span:not(.ph1-door__ic) { color: var(--sun-ink); }
.ph1-door--sun .ph1-door__ic { background: rgba(255,255,255,.55); color: var(--sun-ink); }
/* passi */
.ph--1 .ph-svs { margin-top: 14px; }

/* immagini grandi con il testo sopra, su un velo sfumato */
.ph-ov { position: relative; display: block; overflow: hidden; border-radius: var(--r-xl); background: var(--navy); color: #fff; text-decoration: none; isolation: isolate; }
.ph-ov img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .45s ease; }
.ph-ov picture { position: absolute; inset: 0; z-index: -2; }
.ph-ov::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,7,84,0) 30%, rgba(11,7,84,.55) 60%, rgba(11,7,84,.92) 100%); }
a.ph-ov:hover img { transform: scale(1.04); }
.ph-ov__t { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; display: grid; gap: 6px; }
.ph-ov__t small { color: rgba(255,255,255,.85); font-weight: 800; text-transform: uppercase; letter-spacing: .07em; font-size: .78rem; }
.ph-ov__t b { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; line-height: 1.2; color: #fff; }
.ph-ov__t > span { color: rgba(255,255,255,.88); line-height: 1.45; }
.ph-ov__t .i { vertical-align: -2px; }
.ph-ov--card { aspect-ratio: 4 / 5; }
.ph-ov--story { aspect-ratio: 4 / 5; }
.ph--1 .ph-nums { margin-top: 14px; }

/* slider orizzontale (servizi, scuole, storie): stessi margini del carosello degli annunci */
.ph-slider { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: 4px var(--gutter) 12px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: thin; }
.ph-slider > * { scroll-snap-align: start; }
@media (min-width: 620px) { .ph-slider { grid-auto-columns: 38%; } }
@media (min-width: 900px) { .ph-slider { grid-auto-columns: calc((100% - 36px) / 4); margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; } .ph-slider--stories { grid-auto-columns: calc((100% - 24px) / 3); } }
.ph-ov--sc { aspect-ratio: 3 / 4; }
.ph-sotto { margin-top: 14px; max-width: 760px; }
.ph-sotto h3 { margin: 0 0 4px; font-size: 1.15rem; color: var(--navy); }
.ph-sotto p { margin: 0; color: var(--muted); line-height: 1.5; }
/* il team: riquadro con la foto accanto al testo */
.ph-team { display: grid; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.ph-team img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ph-team__t { padding: 22px; display: grid; gap: 12px; align-content: center; }
.ph-team__t .ph-h2 { margin: 0; }
.ph-team__t p { margin: 0; line-height: 1.5; }
.ph-team__k { font-weight: 800; font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.ph-team .row { gap: 10px; flex-wrap: wrap; }
.ph-nums--2 { grid-template-columns: repeat(2, 1fr); margin: 0 !important; }
.ph-nums--2 > div { background: var(--bg); border: 0; }
@media (min-width: 900px) { .ph-team { grid-template-columns: 1fr 1fr; } .ph-team picture { min-height: 100%; } .ph-team__t { padding: 36px; } }
.ph--1 .seo-sezione { padding-top: 10px; }

.ph-ov__t > span:has(> .i) { display: flex; align-items: center; gap: 4px; }
/* testi per Google: titolo e primo paragrafo aperti, il resto a fisarmonica (il testo resta nella pagina e Google lo legge) */
.ph-seo-d { break-inside: avoid; border-top: 1px solid var(--line); }
.ph-seo-d summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; font-weight: 700; color: var(--ink); font-size: 1rem; }
.ph-seo-d summary::-webkit-details-marker { display: none; }
.ph-seo-d summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--navy); }
.ph-seo-d[open] summary::after { content: "–"; }
.ph-seo-d p { margin: 0 0 14px; }
.ph--1 .seo-text { columns: 1; }
.ph--1 .seo-text > p { max-width: 900px; }

/* schede senza foto: il disegno della barca al posto dell'immagine */
.ph-ov__art { position: absolute; inset: 0; z-index: -2; display: block; }
.ph-ov__art svg { width: 100%; height: 100%; display: block; }

/* domande frequenti: stessa fisarmonica dei testi per Google */
.ph-faq-t { margin: 26px 0 4px; color: var(--navy); font-size: 1.1rem; }
.ph-faq .ph-seo-d > div > p { margin: 0 0 14px; }

/* Meno spazio tra un blocco e l'altro (soprattutto da computer e nei primi blocchi dopo la ricerca) */
main.ph--1 .hb.section { padding-block: 24px; }
@media (min-width: 900px) {
  main.ph--1 .hb.section { padding-block: 34px; }
  main.ph--1 .hb.section[data-hb="porte"], main.ph--1 .hb.section[data-hb="patente"], main.ph--1 .hb.section[data-hb="ultimi"] { padding-block: 22px; }
  main.ph--1 > .hb.hero { padding-bottom: 70px; }
}
