/* GIAL 2026 — pagina Team, «Entra nel team» e pagina richieste (contatti, visita, candidatura). */

/* Team: testata fotografica */
.g-teamhero { position: relative; isolation: isolate; overflow: hidden; min-height: 78vh; display: flex; align-items: flex-end; background: #1c1114; }
.g-teamhero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; animation: g-kb 24s ease-in-out infinite alternate; z-index: -2; }
.g-teamhero-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(34, 6, 14, 0.5) 0%, rgba(34, 6, 14, 0.2) 40%, rgba(34, 6, 14, 0.85) 100%); }
.g-teamhero-ghost { position: absolute; z-index: 0; right: -1vw; top: 12%; font: 700 clamp(9rem, 30vw, 28rem)/0.8 var(--g-display); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.28); pointer-events: none; }
.g-teamhero-inner { position: relative; z-index: 2; padding-block: 160px 90px; }
body[data-ms-layout="gial2026"] .g-teamhero { --ink: #fff; --ink-strong: #fff; }
body[data-ms-layout="gial2026"] .g-teamhero .g-kicker { --ink: #f0d3c2; --ink-strong: #f0d3c2; }
.g-teamhero .g-lead { max-width: 56ch; }

/* Team: card editoriali sfalsate, foto grande, contatti che emergono */
.g-people { padding: clamp(70px, 9vw, 130px) 0; }
.g-people-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 34px 28px; }
.g-person:nth-child(even) { transform: translateY(46px); }
.g-person-photo { position: relative; aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden; background: #2b1b24; isolation: isolate; box-shadow: 0 30px 60px -36px rgba(43, 10, 20, 0.7); }
.g-person-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 1.1s var(--g-ease), filter 0.6s; z-index: -2; }
.g-person:hover .g-person-photo > img { transform: scale(1.07); }
.g-person-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 6, 10, 0) 45%, rgba(20, 6, 10, 0.85) 100%); }
/* senza foto: un paesaggio dei Castelli in duotono bordeaux con le iniziali */
.g-person-photo.is-empty { background-size: cover; background-position: center; }
.g-person-photo.is-empty::before { content: ""; position: absolute; inset: 0; z-index: -2; background: inherit; filter: grayscale(1) contrast(1.15); }
.g-person-photo.is-empty::after { background: linear-gradient(180deg, rgba(112, 0, 0, 0.55), rgba(20, 6, 10, 0.92)); mix-blend-mode: normal; }
.g-ph-1 { background-image: url("../img/gial/golden.db624728ddef.jpg"); background-position: 30% center; }
.g-ph-2 { background-image: url("../img/gial/nemi.031ece2e6c14.jpg"); background-position: 45% center; }
.g-ph-3 { background-image: url("../img/gial/roccapapa-vicoli.aef6cd049a0a.jpg"); background-position: center 30%; }
.g-ph-4 { background-image: url("../img/gial/terrace.c88de4ed3c56.jpg"); background-position: 55% center; }
.g-person-initials { position: absolute; left: 50%; top: 38%; translate: -50% -50%; font: 200 5.4rem/1 var(--g-display); letter-spacing: -0.05em; color: rgba(255, 255, 255, 0.9); }
.g-person-name { position: absolute; left: 22px; right: 22px; bottom: 22px; color: #fff; transition: transform 0.5s var(--g-ease); }
.g-person-name h3 { margin: 0 0 4px; font: 400 1.55rem/1.1 var(--g-display); letter-spacing: -0.03em; }
.g-person-name p { margin: 0; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.8; }
.g-person-panel { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 4px; padding: 16px 18px 18px; background: linear-gradient(135deg, var(--g-brand), var(--g-brand-deep)); transform: translateY(101%); transition: transform 0.5s var(--g-ease); z-index: 3; }
.g-person:hover .g-person-panel, .g-person:focus-within .g-person-panel { transform: none; }
.g-person:hover .g-person-name, .g-person:focus-within .g-person-name { transform: translateY(-82px); }
.g-person-act { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 0.95rem; padding: 6px 0; overflow-wrap: anywhere; }
.g-person-act:hover { color: var(--g-rose); }
body[data-ms-layout="gial2026"] :is(.g-person-photo, .g-person-name, .g-person-name h3, .g-person-name p, .g-person-initials, .g-person-act, .g-person-panel) { --ink: #fff; --ink-strong: #fff; }
@media (hover: none) {
  .g-person:nth-child(even) { transform: none; }
  .g-person-panel { transform: none; position: relative; margin-top: -1px; }
  .g-person-photo { aspect-ratio: auto; display: flex; flex-direction: column; justify-content: flex-end; min-height: 330px; }
  .g-person-name { position: relative; left: 0; right: 0; bottom: 0; padding: 0 20px 14px; }
  .g-person:hover .g-person-name { transform: none; }
}
@media (max-width: 600px) { .g-person:nth-child(even) { transform: none; } }

/* Entra nel team: foto a tutta larghezza con velo bordeaux */
.g-join { position: relative; isolation: isolate; overflow: hidden; background: #1c1114; color: #fff; padding: clamp(100px, 13vw, 190px) 0; margin-top: 40px; }
.g-join-photo { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; z-index: -2; will-change: transform; }
.g-join-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(60, 8, 20, 0.94) 0%, rgba(77, 10, 20, 0.82) 50%, rgba(34, 6, 14, 0.55) 100%); }
.g-join-inner { position: relative; z-index: 3; max-width: 900px; }
.g-join-title { margin: 0 0 28px; font: 300 clamp(1.9rem, 4.6vw, 3.4rem)/1.12 var(--g-display); letter-spacing: -0.035em; }
.g-join-title strong { font-weight: 700; }
.g-join-copy p { margin: 0 0 16px; line-height: 1.75; font-size: 1.08rem; opacity: 0.9; max-width: 66ch; }
.g-join .g-actions { margin-top: 28px; }
body[data-ms-layout="gial2026"] .g-join { --ink: #fff; --ink-strong: #fff; }
body[data-ms-layout="gial2026"] .g-join .g-kicker { --ink: var(--g-rose); --ink-strong: var(--g-rose); }
body[data-ms-layout="gial2026"] .g-join .g-btn--light { --ink: var(--g-ink); --ink-strong: var(--g-ink); }

/* Pagina richieste */
.g-request { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(28px, 5vw, 64px); padding: clamp(60px, 8vw, 110px) 0; align-items: start; }
.g-request-prop { grid-column: 1 / -1; background: #fff; border: 1px solid var(--g-line); border-radius: 22px; padding: 20px 26px; }
.g-request-prop h3 { font: 500 1.3rem var(--g-display); margin: 4px 0; }
.g-request-prop p { margin: 0; opacity: 0.7; }
.g-form { display: grid; gap: 18px; background: #fff; border: 1px solid var(--g-line); border-radius: 28px; padding: clamp(22px, 4vw, 40px); box-shadow: 0 30px 60px -44px rgba(43, 29, 32, 0.6); }
.g-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g-field { display: grid; gap: 6px; }
.g-field label { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.65; }
html:not(#_):not(#_) .g-form .ui-input { width: 100%; border: 1.5px solid var(--g-line); border-radius: 14px; background: var(--g-paper); padding: 14px 16px; font: 400 1rem var(--g-sans); color: var(--g-ink); transition: border-color 0.25s, box-shadow 0.25s; }
html:not(#_):not(#_) .g-form .ui-input:focus { outline: none; border-color: var(--g-brand); box-shadow: 0 0 0 4px rgba(112, 0, 0, 0.12); }
.g-err, .g-form-error { color: #a31d33; font-size: 0.85rem; }
.g-form-error { background: #fbe9ea; border-radius: 12px; padding: 12px 14px; }
.g-help { margin: -6px 0 0; font-size: 0.85rem; opacity: 0.6; }
.g-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9rem; line-height: 1.5; }
.g-consent input { margin-top: 3px; accent-color: var(--g-brand); }
.g-consent a { color: var(--g-terra); }
.g-request-done { grid-column: 1 / 2; background: #fff; border: 1px solid var(--g-line); border-radius: 28px; padding: clamp(28px, 5vw, 52px); }
.g-request-done h2 { font: 300 clamp(1.8rem, 3.6vw, 2.6rem)/1.1 var(--g-display); letter-spacing: -0.035em; margin: 0 0 12px; }
.g-request-done p { margin: 0 0 22px; line-height: 1.7; opacity: 0.8; }
.g-request-side { background: linear-gradient(135deg, var(--g-brand), var(--g-brand-deep)); color: #fff; border-radius: 28px; padding: 30px; display: grid; gap: 14px; position: sticky; top: 110px; }
body[data-ms-layout="gial2026"] :is(.g-request-side, .g-request-side p, .g-reach-line, .g-request-side strong) { --ink: #fff; --ink-strong: #fff; }
body[data-ms-layout="gial2026"] .g-request-side .g-kicker { --ink: var(--g-rose); --ink-strong: var(--g-rose); }
.g-reach-line { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 1.02rem; overflow-wrap: anywhere; }
.g-reach-line:hover { color: var(--g-rose); }
.g-request-office { margin: 6px 0 0; font-size: 0.9rem; line-height: 1.6; opacity: 0.8; }
@media (max-width: 860px) {
  .g-request { grid-template-columns: minmax(0, 1fr); }
  .g-request-side { position: static; }
  .g-form-row { grid-template-columns: minmax(0, 1fr); }
  .g-request-done { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .g-teamhero-photo { animation: none; } }
.g-credits { margin: 0; padding: 18px 0 6px; font-size: 0.74rem; line-height: 1.6; opacity: 0.55; max-width: 120ch; }

/* Pagine interne: testata con foto vera e fascia fotografica a meta' pagina */
.g-hero--photo { background: #1c1114; align-items: flex-end; }
.g-hero-pagephoto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: g-kb 26s ease-in-out infinite alternate; }
.g-hero-pageveil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(34, 6, 14, 0.55) 0%, rgba(34, 6, 14, 0.25) 42%, rgba(34, 6, 14, 0.85) 100%); }
body[data-ms-layout="gial2026"] .g-hero--photo { --ink: #fff; --ink-strong: #fff; }
body[data-ms-layout="gial2026"] .g-hero--photo .g-kicker { --ink: #f0d3c2; --ink-strong: #f0d3c2; }
.g-hero--photo .g-hero-year { -webkit-text-stroke-color: rgba(255, 255, 255, 0.3); }
.g-hero--photo .g-hills { display: none; }
.g-photoband { position: relative; isolation: isolate; overflow: hidden; background: #1c1114; padding: clamp(110px, 14vw, 200px) 0; margin: clamp(40px, 6vw, 90px) 0; }
.g-photoband-img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; z-index: -2; will-change: transform; }
.g-photoband-veil { position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(60, 8, 20, 0.9) 0%, rgba(77, 10, 20, 0.6) 55%, rgba(34, 6, 14, 0.25) 100%); }
.g-photoband-in { position: relative; z-index: 3; }
.g-photoband-quote { margin: 0; max-width: 24ch; font: 300 clamp(1.8rem, 4.4vw, 3.2rem)/1.15 var(--g-display); letter-spacing: -0.035em; }
body[data-ms-layout="gial2026"] .g-photoband { --ink: #fff; --ink-strong: #fff; }
body[data-ms-layout="gial2026"] .g-photoband .g-kicker { --ink: var(--g-rose); --ink-strong: var(--g-rose); }
/* il sipario bordeaux al caricamento si somma alla transizione del browser e da' un lampo strano: dove c'e' la transizione nativa non serve */
@supports (view-transition-name: none) { .g-curtain { display: none; } }
@media (prefers-reduced-motion: reduce) { .g-hero-pagephoto { animation: none; } }

/* Immagini illustrative (ricostruzioni grafiche dei Castelli Romani): mosaico, servizi, passi, cronologia, sedi, CTA */
.g-territory { padding: clamp(60px, 8vw, 110px) 0 clamp(30px, 4vw, 60px); }
.g-mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 240px); gap: 14px; }
.g-tile { position: relative; overflow: hidden; border-radius: 22px; isolation: isolate; background: #2b1b24; }
.g-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--g-ease); z-index: -2; }
.g-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 6, 10, 0) 50%, rgba(20, 6, 10, 0.78) 100%); }
.g-tile:hover img { transform: scale(1.08); }
.g-tile span { position: absolute; left: 18px; bottom: 14px; font: 400 1.15rem var(--g-display); letter-spacing: -0.02em; }
body[data-ms-layout="gial2026"] .g-tile, body[data-ms-layout="gial2026"] .g-tile span { --ink: #fff; --ink-strong: #fff; }
.g-tile--1 { grid-column: span 2; grid-row: span 2; } .g-tile--4 { grid-column: span 2; } .g-tile--6 { grid-row: span 2; }
@media (max-width: 820px) { .g-mosaic { grid-template-columns: repeat(2, 1fr); } .g-tile--1, .g-tile--4 { grid-column: span 2; } .g-tile--1 { grid-row: span 1; } .g-tile--6 { grid-row: span 1; } }
.g-service-row { grid-template-columns: 70px 90px 1fr minmax(150px, 220px) !important; }
.g-service-thumb { aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; }
.g-service-thumb img, .g-step-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--g-ease); }
.g-service-row:hover .g-service-thumb img, .g-step:hover .g-step-thumb img { transform: scale(1.08); }
.g-step { grid-template-columns: 90px 1fr minmax(120px, 190px) !important; align-items: center; }
.g-step-thumb { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; }
.g-vline-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 14px; margin: 0 0 16px; }
.g-office-img { display: block; height: auto; width: calc(100% + 60px); max-width: none; margin: -30px -30px 24px; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 26px 26px 0 0; }
.g-cta-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.g-cta-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(112, 0, 0, 0.9), rgba(60, 8, 20, 0.82)); }
@media (max-width: 860px) {
  .g-service-row { grid-template-columns: 48px 1fr !important; } .g-service-thumb { display: none; }
  .g-step { grid-template-columns: 70px 1fr !important; } .g-step-thumb { display: none; }
}

/* Accedi, registrati, password dimenticata, area personale: le pagine del portale nel guscio GIAL */
.g-account { padding: clamp(118px, 14vw, 168px) 0 clamp(60px, 8vw, 110px); background: var(--g-paper); }
.g-account-inner { max-width: 1180px; }
.g-account .hero-shell { background: transparent; border: 0; box-shadow: none; padding: 0 0 28px; }
.g-account .portal-account-hero-title, .g-account .portal-dash-hero-title { font-family: var(--g-display); font-weight: 500; letter-spacing: -0.02em; }
.g-account .card, .g-account .soft-card { border-radius: 24px; border: 1px solid var(--g-line); box-shadow: 0 18px 50px -30px rgba(43, 29, 32, 0.35); }
.g-account .btn { border-radius: 999px; }
.g-account input:not([type="checkbox"]):not([type="radio"]), .g-account select, .g-account textarea { border-radius: 14px; }
.g-account .eyebrow { color: var(--g-terra); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.78rem; font-weight: 700; }
