/**
  Theme Name: Kinsey Child
  Theme URI: https://artemsemkin.com/kinsey/wp/
  Description: Greal Costruzioni — linea corten.
  Author: Studio Arven
  Template: kinsey
  Version: 3.0.70
*/

/* ==========================================================================
   1. Token
   ========================================================================== */

:root {
  /* Brand — palette ufficiale GREAL (Brand Manual 05) */
  --greal-ink: #2e2e2e;
  --greal-ink-2: #242424;
  --greal-ink-3: #3a3a3a;
  --greal-paper: #ffffff;
  --greal-paper-2: #f2eee7;
  --greal-paper-3: #cec3b5;
  --greal-corten: #4b250f;
  --greal-corten-hot: #6b3a1e;
  --greal-corten-deep: #331a0a;
  --greal-sand: #cec3b5;

  --greal-font-display: "Bebas Neue", "Arial Narrow", sans-serif;
  --greal-font-body: "Montserrat", "Segoe UI", sans-serif;
  --greal-font-mono: "Montserrat", "Segoe UI", sans-serif;

  /* Spacing rhythm 4/8 */
  --greal-space-1: 0.5rem;
  --greal-space-2: 1rem;
  --greal-space-3: 1.5rem;
  --greal-space-4: 2rem;
  --greal-space-6: 3rem;
  --greal-space-8: 4rem;

  /* Kinsey --gutter-horizontal già allinea il contenuto; non replicare un gutter 100vw. */
  --greal-gutter: 0px;

  --greal-rule: 1px;
  --greal-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --greal-dur: 240ms;
  --greal-dur-out: 160ms;

  --greal-grain:
    radial-gradient(ellipse at 16% 6%, rgba(107, 58, 30, 0.34), transparent 54%),
    radial-gradient(ellipse at 88% 94%, rgba(36, 18, 8, 0.5), transparent 48%),
    repeating-linear-gradient(112deg, transparent 0 3px, rgba(46, 46, 46, 0.05) 3px 4px);

  /* Override token Kinsey: superfici */
  --color-dark-1: #2e2e2e;
  --color-dark-2: #242424;
  --color-dark-3: #3a3a3a;
  --color-dark-4: #4a4a4a;
  --color-light-2: #ffffff;
  --color-light-3: #f2eee7;
  --color-light-4: #faf8f4;
  --color-gray-1: #cec3b5;
  --color-gray-4: #f2eee7;
  --color-custom-1: #cec3b5;
  --color-custom-2: #4b250f;

  /* Override token Kinsey: bordi e link */
  --color-border-dark: rgba(46, 46, 46, 0.16);
  --color-border-light: rgba(255, 255, 255, 0.22);
  --link-color-dark: #4b250f;
  --link-hover-color-dark: #2e2e2e;
  --link-color-light: #cec3b5;
  --link-hover-color-light: #ffffff;

  /* Override token Kinsey: scala tipografica (Bebas Neue: maiuscolo condensato,
     tracking neutro — il tracking negativo lo renderebbe illeggibile) */
  --font-primary: "Montserrat", "Segoe UI", sans-serif;

  --xxxl-max-font-size: 220;
  --xxxl-min-font-size: 88;
  --xxxl-line-height: 0.92;
  --xxxl-letter-spacing: 2;

  --xxl-max-font-size: 160;
  --xxl-min-font-size: 66;
  --xxl-line-height: 0.94;
  --xxl-letter-spacing: 1.5;

  --xl-max-font-size: 124;
  --xl-min-font-size: 52;
  --xl-line-height: 0.96;
  --xl-letter-spacing: 1;

  --h1-max-font-size: 96;
  --h1-min-font-size: 46;
  --h1-line-height: 0.98;
  --h1-letter-spacing: 1;

  --h2-max-font-size: 68;
  --h2-min-font-size: 38;
  --h2-line-height: 1.02;
  --h2-letter-spacing: 0.5;

  --h3-max-font-size: 44;
  --h3-min-font-size: 30;
  --h3-line-height: 1.1;
  --h3-letter-spacing: 0.5;

  --h4-max-font-size: 30;
  --h4-min-font-size: 23;
  --h4-line-height: 1.2;
  --h4-letter-spacing: 0.5;

  --h5-max-font-size: 23;
  --h5-min-font-size: 19;
  --h5-line-height: 1.25;

  --h6-max-font-size: 17;
  --h6-min-font-size: 15;
  --h6-line-height: 1.4;

  --paragraph-max-font-size: 17;
  --paragraph-min-font-size: 16;
  --paragraph-line-height: 1.7;
  --paragraph-letter-spacing: 0;

  --subheading-max-font-size: 13;
  --subheading-min-font-size: 12;
  --subheading-line-height: 1.4;
  --subheading-letter-spacing: 2.4;

  --small-max-font-size: 14;
  --small-min-font-size: 13;
  --small-line-height: 1.5;

  /* Override token Kinsey: colori testo */
  --xxxl-color-dark: #2e2e2e;
  --xxxl-color-light: #ffffff;
  --xxl-color-dark: #2e2e2e;
  --xxl-color-light: #ffffff;
  --xl-color-dark: #2e2e2e;
  --xl-color-light: #ffffff;
  --h1-color-dark: #2e2e2e;
  --h1-color-light: #ffffff;
  --h2-color-dark: #2e2e2e;
  --h2-color-light: #ffffff;
  --h3-color-dark: #2e2e2e;
  --h3-color-light: #ffffff;
  --h4-color-dark: #2e2e2e;
  --h4-color-light: #ffffff;
  --h5-color-dark: #2e2e2e;
  --h5-color-light: #ffffff;
  --h6-color-dark: #2e2e2e;
  --h6-color-light: #ffffff;
  --paragraph-color-dark: #454545;
  --paragraph-color-light: #e8e2d8;
  --subheading-color-dark: #4b250f;
  --subheading-color-light: #cec3b5;
  --small-color-dark: #6b6b6b;
  --small-color-light: #cec3b5;
}

/* ==========================================================================
   2. Tipografia
   ========================================================================== */

html,
body,
p,
.paragraph,
input,
textarea,
select,
button {
  font-family: var(--greal-font-body);
}

/* Il tema usa overflow-wrap: anywhere, che spezza i titoli lettera per lettera
   nelle colonne strette: qui si rompe solo se la parola non entra davvero. */
body,
p,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.xl, .xxl, .xxxl,
.arts-split-text__line {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.xl, .xxl, .xxxl,
.section-masthead__heading,
.elementor-heading-title {
  font-family: var(--greal-font-display);
  font-weight: 400;
  font-stretch: normal;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* Meta, kicker, contatori: monospace tabulare */
.subheading,
.block-counter__counter,
.counter__label,
.filter__item-inner,
.section-list__counter-label,
.figure-project__wrapper-meta,
.card-portfolio__wrapper-meta,
.greal-meta,
.greal-kicker {
  font-family: var(--greal-font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.small,
small {
  font-family: var(--greal-font-body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--small-color-dark);
}

.counter__number {
  font-family: var(--greal-font-display);
  font-variant-numeric: tabular-nums;
  color: var(--greal-corten);
}

p {
  max-width: 68ch;
}

.text-center p,
.greal-cta p {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   3. Base, focus, skip link
   ========================================================================== */

::selection {
  background: var(--greal-corten);
  color: var(--greal-paper);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.filter__item:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--greal-corten-hot);
  outline-offset: 3px;
  border-radius: 0;
}

.greal-skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10000;
  transform: translateY(-120%);
  padding: 0.85rem 1.25rem;
  background: var(--greal-ink);
  color: var(--greal-paper);
  font-family: var(--greal-font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform var(--greal-dur) var(--greal-ease);
}

.greal-skip-link:focus {
  transform: translateY(0);
}

/* ==========================================================================
   4. Superfici
   ========================================================================== */

.bg-dark-1 { background-color: var(--greal-ink); }
.bg-dark-2 { background-color: var(--greal-ink-2); }
.bg-light-2 { background-color: var(--greal-paper); }
.bg-light-3 { background-color: var(--greal-paper-2); }
.bg-gray-1 { background-color: var(--greal-paper-3); }

.bg-custom-2 {
  background-color: var(--greal-corten);
  background-image: var(--greal-grain);
}

/* ==========================================================================
   5. Header e logo
   ========================================================================== */

#page-header:not(.header_sticky) {
  background: var(--greal-paper);
}

#page-header {
  padding-top: 0.75rem;
  padding-bottom: 0.95rem;
}

#page-header.header_sticky {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.header .header__container .row {
  flex-wrap: nowrap;
  align-items: center;
}

.header .header__col-left {
  min-width: 0;
  flex: 1 1 auto;
}

.header .logo {
  max-width: 100%;
}

.header .logo__text {
  display: none;
}

.header .logo__wrapper-img {
  margin-right: 0;
}

.header .logo__wrapper-img img {
  height: 96px !important;
  max-height: none !important;
  width: auto !important;
  max-width: none;
}

.header.header_sticky .logo__wrapper-img img {
  height: 72px !important;
  max-height: none !important;
}

@media (max-width: 991.98px) {
  .header .header__burger {
    flex-shrink: 0;
  }

  .header .header__burger-label {
    display: none;
  }
}

@media (max-width: 767px) {
  .header .logo__wrapper-img img {
    height: 64px !important;
    max-height: none !important;
  }

  .header.header_sticky .logo__wrapper-img img {
    height: 52px !important;
    max-height: none !important;
  }
}

.header .header__burger,
.header .header__wrapper-menu-label {
  min-height: 44px;
}

#page-header.header_sticky.bg-dark-1 .menu > li > a,
#page-header.header_sticky.bg-dark-2 .menu > li > a {
  color: #fff;
}

#page-header.header_sticky.bg-dark-1 .menu > li > a:hover,
#page-header.header_sticky.bg-dark-2 .menu > li > a:hover {
  color: var(--greal-sand);
}

.header__menu-label,
.header__label-burger_inner {
  font-family: var(--greal-font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Overlay, sticky scuro, logo bianco: burger e label #fff (non taupe). */
#page-header[data-arts-header-logo="secondary"] .header__burger-line:before,
#page-header[data-arts-header-logo="secondary"] .header__burger-line:after,
#page-header[data-arts-header-sticky-logo="secondary"].header_sticky .header__burger-line:before,
#page-header[data-arts-header-sticky-logo="secondary"].header_sticky .header__burger-line:after,
#page-header.opened .header__burger-line:before,
#page-header.opened .header__burger-line:after {
  background-color: #fff !important;
}

#page-header[data-arts-header-logo="secondary"] .header__label-burger_inner,
#page-header[data-arts-header-sticky-logo="secondary"].header_sticky .header__label-burger_inner,
#page-header.opened .header__label-burger_inner {
  color: #fff !important;
}

/* Overlay/sticky scuri: se manca il logo bianco, inverti il primary. */
.header.opened .logo__wrapper-img:has(.logo__img-secondary) .logo__img-primary,
.header.header_sticky .logo__wrapper-img:has(.logo__img-secondary) .logo__img-primary {
  opacity: 0 !important;
  visibility: hidden !important;
}

.header.opened .logo__img-secondary,
.header.header_sticky .logo__img-secondary {
  opacity: 1 !important;
  visibility: visible !important;
}

.header.opened .logo__wrapper-img:not(:has(.logo__img-secondary)) .logo__img-primary,
.header.header_sticky .logo__wrapper-img:not(:has(.logo__img-secondary)) .logo__img-primary,
.header[data-arts-theme-text="light"] .logo__wrapper-img:not(:has(.logo__img-secondary)) .logo__img-primary {
  opacity: 1 !important;
  visibility: visible !important;
  filter: brightness(0) invert(1);
}

.header__wrapper-overlay-menu {
  background-color: var(--greal-ink);
  background-image: var(--greal-grain);
  background-blend-mode: soft-light;
}

.menu-overlay a,
.menu a {
  font-family: var(--greal-font-display);
}

.preloader {
  background-color: var(--greal-ink);
}

.preloader__img {
  max-width: min(200px, 40vw);
  height: auto;
}

.preloader__counter {
  font-family: var(--greal-font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--greal-sand);
}

/* ==========================================================================
   6. Hero asimmetrico
   ========================================================================== */

.section-fullheight__inner {
  min-height: 100dvh;
}

.home .section-masthead__inner {
  justify-content: flex-end;
  padding-bottom: clamp(3.5rem, 9vh, 8rem);
}

.home .section-masthead__header {
  text-align: center !important;
  max-width: 100%;
}

.home .section-masthead__heading {
  max-width: 18ch;
  margin-inline: auto;
  letter-spacing: 0.015em;
  line-height: 0.94;
  text-align: center !important;
  text-wrap: balance;
}

.home .section-masthead__heading .overflow,
.home .section-masthead__heading .arts-split-text__line,
.home .section-masthead__heading .arts-split-text__word {
  text-align: center !important;
}

.home .section-masthead__content {
  width: 100%;
  max-width: none;
  margin-top: 1.15rem;
  text-align: center;
}

.home .section-masthead__text {
  font-family: var(--greal-font-body);
  font-size: clamp(0.95rem, 1.35vw, 1.125rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--greal-sand);
  max-width: min(54ch, 92vw);
  margin-inline: auto;
  text-align: center;
  text-wrap: pretty;
}

.home .section-masthead__text .overflow,
.home .section-masthead__text .arts-split-text__line {
  text-align: center !important;
}

.home .section-masthead__wrapper-scroll-down {
  text-align: right;
}

.home .section-masthead__scroll-down {
  color: var(--greal-sand);
  min-width: 44px;
  min-height: 44px;
}

.section-masthead__overlay {
  background: linear-gradient(
    174deg,
    rgba(36, 36, 36, 0.6) 0%,
    rgba(36, 36, 36, 0.3) 34%,
    rgba(75, 37, 15, 0.46) 78%,
    rgba(36, 36, 36, 0.74) 100%
  );
}

/* Video hero 16:9: riempie l'hero a tutta altezza, centro del quadro. */
.home .section-masthead video {
  object-fit: cover;
  object-position: center center;
}

/* Barra di misura sotto l'H1 dell'hero */
.home .section-masthead__header::after {
  content: "";
  display: block;
  width: clamp(80px, 14vw, 200px);
  height: 3px;
  margin-top: clamp(1.5rem, 3vh, 2.5rem);
  margin-inline: auto;
  background: var(--greal-sand);
}

/* Titolo pagina interna */
body:not(.home) .section-masthead__heading {
  letter-spacing: 0.01em;
}

/* Sezioni a tutta larghezza: Kinsey .container-fluid ha già --gutter-horizontal.
   Un secondo gutter calcolato su 100vw, dentro colonne già boxed a 1140px,
   riduceva il testo a 100-200px e spezzava i titoli lettera per lettera. */
.greal-split > .elementor-container > .elementor-column > .elementor-widget-wrap {
  padding-inline: 0;
}

/* Split full-bleed (Home «Diamo forma»): niente container-fluid, il testo andava a 0. */
.greal-split.elementor-section-full_width > .elementor-container > .elementor-column > .elementor-widget-wrap {
  padding-inline: var(--gutter-horizontal);
}

.greal-split .elementor-inner-section,
.greal-split .elementor-inner-section > .elementor-container {
  width: 100%;
  max-width: 100%;
}

.greal-split .elementor-column,
.greal-branch .elementor-column {
  min-width: 0;
}

/* Due colonne di testo (Contatti, Chi siamo, split): la destra si centra in verticale. */
@media (min-width: 768px) {
  .elementor-section:not(.greal-branch):not(.greal-ramo-photo):not(.greal-counters) > .elementor-container > .elementor-column + .elementor-column {
    display: flex;
    align-self: stretch;
  }

  .elementor-section:not(.greal-branch):not(.greal-ramo-photo):not(.greal-counters) > .elementor-container > .elementor-column + .elementor-column > .elementor-widget-wrap {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-content: center;
    height: 100%;
  }
}

.greal-split .elementor-col-40 {
  container-type: inline-size;
}

/* Slogan in colonna stretta: scala sulla colonna, non sul viewport intero */
.greal-split .xxl,
.greal-split .introTextSlogan {
  font-size: clamp(2.4rem, 18cqi, 4.5rem);
  line-height: 0.94;
  letter-spacing: 0.015em;
  overflow-wrap: normal;
  word-break: keep-all;
}

/* ==========================================================================
   7. Marquee cinetico
   ========================================================================== */

.greal-marquee {
  display: flex;
  width: 100%;
  overflow: hidden;
  gap: 0;
  user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.greal-marquee__track {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  white-space: nowrap;
  animation: greal-marquee 34s linear infinite;
  will-change: transform;
}

.greal-marquee span {
  font-family: var(--greal-font-display);
  font-size: clamp(2.2rem, 5.5vw, 5.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--greal-paper);
}

.greal-marquee em {
  font-style: normal;
  color: var(--greal-sand);
}

@keyframes greal-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-100%, 0, 0); }
}

/* ==========================================================================
   8. Righe editoriali (definitions list)
   ========================================================================== */

.section-content__wrapper-item {
  padding-top: var(--greal-space-4) !important;
  padding-bottom: var(--greal-space-4) !important;
  transition: background-color var(--greal-dur) var(--greal-ease);
}

.section-content__divider {
  background-color: var(--color-border-dark);
}

[data-arts-theme-text="light"] .section-content__divider {
  background-color: var(--color-border-light);
}

.greal-rows .section-content__wrapper-item h5,
.greal-rows .section-content__wrapper-item .h3 {
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.greal-rows .section-content__wrapper-item p {
  margin-top: 0;
  margin-bottom: 0;
}

/* Dati impresa: coppie nome/valore in mono */
.greal-specs .section-content__wrapper-item {
  padding-top: var(--greal-space-2) !important;
  padding-bottom: var(--greal-space-2) !important;
}

.greal-specs .section-content__wrapper-item h5 {
  font-family: var(--greal-font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--greal-corten);
}

.greal-specs .section-content__wrapper-item p {
  font-family: var(--greal-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   9. Steps list
   ========================================================================== */

.section-list__counter-label {
  color: var(--greal-corten);
  font-size: 0.8125rem;
}

.section-list__item .circle {
  stroke: var(--greal-corten);
}

/* ==========================================================================
   10. Bottoni e link
   ========================================================================== */

.button,
.button_bordered,
.button_solid {
  border-radius: 0;
  min-height: 44px;
}

.button__title {
  font-family: var(--greal-font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button_bordered {
  border-color: currentColor;
  transition: color var(--greal-dur) var(--greal-ease),
    background-color var(--greal-dur) var(--greal-ease),
    border-color var(--greal-dur) var(--greal-ease);
}

.button_bordered:hover {
  border-color: var(--greal-corten-hot);
}

.button:active {
  transform: translateY(1px);
}

.underline-hover__target,
.greal-link {
  background-image: linear-gradient(var(--greal-corten-hot), var(--greal-corten-hot));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px;
  transition: background-size var(--greal-dur) var(--greal-ease);
}

a:hover .underline-hover__target,
.greal-link:hover {
  background-size: 100% 2px;
}

/* ==========================================================================
   11. Filtro cantieri
   ========================================================================== */

.filter {
  position: relative;
}

.filter__item {
  min-height: 44px;
  display: flex;
  align-items: center;
}

.filter__item-inner {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  transition: color var(--greal-dur-out) var(--greal-ease);
}

.filter__item_active .filter__item-inner,
.filter__item:hover .filter__item-inner {
  color: var(--greal-corten);
}

.filter__item .block-counter__counter {
  color: var(--greal-sand);
}

.filter__underline {
  background-color: var(--greal-corten);
  height: 2px;
}

.js-filter__select {
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border: var(--greal-rule) solid var(--color-border-dark);
  border-radius: 0;
  background: transparent;
  font-family: var(--greal-font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--greal-ink);
}

/* ==========================================================================
   12. Schede cantiere
   ========================================================================== */

.figure-project__content {
  padding-top: var(--greal-space-3) !important;
}

.figure-project__wrapper-meta {
  font-size: 0.75rem;
  color: var(--greal-corten);
}

.figure-project h2,
.figure-project .h3 {
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.figure-project__wrapper-img {
  position: relative;
  display: block;
  overflow: hidden;
}

.figure-project__wrapper-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(36, 36, 36, 0.5) 100%);
  opacity: 0;
  transition: opacity var(--greal-dur) var(--greal-ease);
  pointer-events: none;
}

.figure-project:hover .figure-project__wrapper-img::after {
  opacity: 1;
}

/* ==========================================================================
   13. Fascia cantieri con watermark
   ========================================================================== */

#section-cantieri {
  position: relative;
  overflow: hidden;
  background-color: var(--greal-corten);
  min-height: 72dvh;
}

/* Marchio come filigrana: decorativo, mai in concorrenza col testo */
#section-cantieri::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: 112% 50%;
  background-size: auto 145%;
  opacity: 0.13;
  pointer-events: none;
  z-index: 0;
}

#section-cantieri > .elementor-container {
  position: relative;
  z-index: 2;
}

#section-cantieri h2 {
  font-size: clamp(3.4rem, 9vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

/* Caption timeline cantiere */
.greal-cap {
  font-family: var(--greal-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

#section-cantieri .elementor-widget-image img,
.greal-branch .elementor-widget-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Righe servizio: foto a tutta colonna, testo con inset (niente gutter 100vw) */
.greal-branch > .elementor-container > .elementor-column > .elementor-widget-wrap {
  padding-inline: 0;
}

.greal-branch .elementor-widget:not(.elementor-widget-image) {
  padding-inline: clamp(1.5rem, 3.5vw, 4rem);
}

.greal-kicker {
  font-family: var(--greal-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--greal-corten);
  margin-bottom: 0.75rem;
}

.greal-kicker::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-top: 0.7rem;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left center;
}

/* Reveal rami: clip-path + transform/opacity (Emil). Testo = SplitText Kinsey. */
.js .greal-branch[data-greal-reveal="1"]:not(.is-in) .elementor-widget-image {
  -webkit-clip-path: inset(0 100% 0 0);
  clip-path: inset(0 100% 0 0);
}

.js .greal-branch[data-greal-reveal="1"]:not(.is-in) .elementor-column:last-child .elementor-widget-image {
  -webkit-clip-path: inset(0 0 0 100%);
  clip-path: inset(0 0 0 100%);
}

.js .greal-branch .elementor-widget-image {
  overflow: hidden;
  -webkit-clip-path: inset(0 0 0 0);
  clip-path: inset(0 0 0 0);
  transition: clip-path 500ms var(--greal-ease), -webkit-clip-path 500ms var(--greal-ease);
}

.js .greal-branch[data-greal-reveal="1"]:not(.is-in) .elementor-widget-image img {
  opacity: 0;
  transform: translate3d(0, 6%, 0) scale(1.04);
}

.js .greal-branch .elementor-widget-image img {
  transform-origin: center center;
  transition:
    transform 560ms var(--greal-ease),
    opacity 280ms var(--greal-ease);
}

.js .greal-branch.is-in .elementor-widget-image img {
  opacity: 1;
  transform: none;
}

.js .greal-branch[data-greal-reveal="1"]:not(.is-in) .greal-kicker::after {
  transform: scaleX(0);
}

.js .greal-branch .greal-kicker::after {
  transition: transform 280ms var(--greal-ease) 90ms;
}

.js .greal-branch[data-greal-reveal="1"]:not(.is-in) .greal-in-cantiere,
.js .greal-branch[data-greal-reveal="1"]:not(.is-in) .elementor-widget-kinsey-widget-button {
  opacity: 0;
  transform: translate3d(0, 12%, 0);
}

.js .greal-branch .greal-in-cantiere,
.js .greal-branch .elementor-widget-kinsey-widget-button {
  transition:
    opacity 280ms var(--greal-ease) 140ms,
    transform 280ms var(--greal-ease) 140ms;
}

.js .greal-branch.is-in .greal-in-cantiere,
.js .greal-branch.is-in .elementor-widget-kinsey-widget-button {
  opacity: 1;
  transform: none;
}

@media (max-width: 767px) {
  .js .greal-branch[data-greal-reveal="1"]:not(.is-in) .elementor-widget-image,
  .js .greal-branch[data-greal-reveal="1"]:not(.is-in) .elementor-column:last-child .elementor-widget-image {
    -webkit-clip-path: inset(100% 0 0 0);
    clip-path: inset(100% 0 0 0);
  }
}

@media (hover: hover) {
  .greal-branch.is-in .elementor-widget-image:hover img {
    transform: scale(1.03);
  }
}

.js .greal-branch.is-in-now .elementor-widget-image,
.js .greal-branch.is-in-now .elementor-widget-image img,
.js .greal-branch.is-in-now .greal-kicker::after,
.js .greal-branch.is-in-now .greal-in-cantiere,
.js .greal-branch.is-in-now .elementor-widget-kinsey-widget-button {
  transition: none !important;
  transition-delay: 0ms !important;
}

.greal-in-cantiere {
  font-family: var(--greal-font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin-top: 1.35rem;
  margin-bottom: 0;
}

.greal-in-cantiere a {
  color: var(--greal-corten);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

.page-id-13 .section-masthead__header,
.page-id-13 .section-masthead__heading,
.page-id-13 .section-masthead__heading .arts-split-text__line {
  text-align: left !important;
}

.page-id-13 .section-masthead__header {
  padding: 8rem var(--gutter-horizontal) 3.5rem;
}

.page-id-13 .greal-ramo {
  scroll-margin-top: 5.5rem;
}

.page-id-13 .greal-process {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-id-13 .greal-process li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-top: var(--greal-rule) solid var(--color-border-dark);
}

.page-id-13 .greal-process li:last-child {
  border-bottom: var(--greal-rule) solid var(--color-border-dark);
}

.page-id-13 .greal-process span {
  font-family: var(--greal-font-display);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--greal-corten);
}

.page-id-13 .greal-process p {
  margin: 0;
  max-width: 36ch;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--greal-ink);
}

.page-id-13 .section-masthead__heading {
  max-width: 10ch;
  font-size: clamp(3.75rem, 7vw, 7.25rem);
  line-height: 0.86;
  letter-spacing: 0.01em;
}

.page-id-13 .section-masthead__header::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin-top: 1.75rem;
  background: var(--greal-corten);
}

.page-id-13 .greal-do-intro h2 {
  max-width: 12ch;
  font-size: clamp(2.75rem, 5.2vw, 4.75rem);
  line-height: 0.88;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

.page-id-13 .greal-do-intro .elementor-element-b22c1d2 .section-content__content p {
  max-width: 38ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.65;
  color: var(--greal-ink);
}

.page-id-13 .greal-do-toc {
  padding: 0 !important;
}

.page-id-13 .greal-do-toc .elementor-widget-html,
.page-id-13 .greal-do-toc .elementor-widget-container {
  width: 100%;
}

.page-id-13 .greal-toc {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: var(--greal-rule) solid var(--color-border-dark);
}

.page-id-13 .greal-toc a {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 2rem clamp(1.25rem, 3vw, 2.5rem);
  border-right: var(--greal-rule) solid var(--color-border-dark);
  text-decoration: none;
  color: inherit;
  min-height: 11rem;
  transition: background-color var(--greal-dur) var(--greal-ease);
}

.page-id-13 .greal-toc a:last-child {
  border-right: 0;
}

.page-id-13 .greal-toc a:hover {
  background: var(--greal-paper);
}

.page-id-13 .greal-toc span {
  font-family: var(--greal-font-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--greal-corten);
}

.page-id-13 .greal-toc strong {
  font-family: var(--greal-font-display);
  font-size: clamp(1.55rem, 2vw, 2.15rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.page-id-13 .greal-toc em {
  font-family: var(--greal-font-body);
  font-style: normal;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--greal-ink-3);
}

.page-id-13 .greal-ramo-photo {
  padding: 0 !important;
}

.page-id-13 .greal-ramo-photo .elementor-widget-wrap {
  padding: 0;
}

.page-id-13 .greal-ramo-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-id-13 .greal-ramo-photo .greal-cap {
  margin: 0;
  padding: 0.85rem var(--gutter-horizontal) 0;
}

.page-id-13 .greal-ramo h2 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 4.5vw, 4.25rem);
  line-height: 0.88;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

.page-id-13 .greal-ramo-claim {
  margin: 0.35rem 0 1.1rem;
  max-width: none;
  font-family: var(--greal-font-display);
  font-size: clamp(1.65rem, 2.2vw, 2.15rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--greal-corten);
}

.page-id-13 .greal-tags {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-id-13 .greal-tags li {
  margin: 0;
  padding: 1.05rem 0;
  border-top: var(--greal-rule) solid var(--color-border-dark);
  font-family: var(--greal-font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--greal-ink);
}

.page-id-13 .greal-tags li:last-child {
  border-bottom: var(--greal-rule) solid var(--color-border-dark);
}

.page-id-13 .greal-do-close .section-content__content p {
  max-width: 42rem;
  font-size: clamp(1.0625rem, 1.35vw, 1.2rem);
  line-height: 1.65;
}

.page-id-13 .greal-ramo h2 .arts-split-text__line {
  white-space: nowrap;
}

.page-id-13 .greal-ramo .section-content__content p {
  max-width: 38ch;
}

@media (max-width: 991px) {
  .page-id-13 .section-masthead__header {
    padding: 6.5rem var(--gutter-horizontal) 1.75rem;
  }

  .page-id-13 .section-masthead__heading {
    font-size: clamp(3.25rem, 14vw, 5rem);
  }

  .page-id-13 .greal-toc {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-id-13 .greal-toc a {
    min-height: 0;
    border-right: 0;
    border-bottom: var(--greal-rule) solid var(--color-border-dark);
    padding: 1.5rem var(--gutter-horizontal);
  }

  .page-id-13 .greal-ramo-photo img {
    aspect-ratio: 3 / 2;
  }

  .page-id-13 .greal-ramo h2 {
    max-width: none;
  }
}

#section-sales {
  position: relative;
  overflow: hidden;
  background-color: var(--greal-corten);
  min-height: 56dvh;
}

#section-sales > .elementor-container {
  position: relative;
  z-index: 2;
}

#section-sales > .elementor-container > .elementor-column > .elementor-widget-wrap {
  padding-inline: var(--gutter-horizontal);
}

/* ==========================================================================
   14. Contatori
   ========================================================================== */

.counter__label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.greal-counters .elementor-column {
  border-left: var(--greal-rule) solid var(--color-border-dark);
  padding-left: var(--greal-space-3);
}

.greal-counters .elementor-column:first-child {
  border-left: 0;
  padding-left: 0;
}

/* ==========================================================================
   15. Form
   ========================================================================== */

.greal-form .greal-field {
  display: block;
  margin-bottom: var(--greal-space-3);
}

.greal-form .greal-field__label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--greal-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--greal-ink);
}

.greal-form .greal-field__label abbr {
  color: var(--greal-corten);
  text-decoration: none;
}

.greal-form .greal-field__hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  color: #5c5044;
}

.greal-form .greal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--greal-space-3);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: var(--greal-rule) solid var(--color-border-dark);
  border-radius: 0;
  background: transparent;
  font-family: var(--greal-font-body);
  font-size: 1rem;
  color: var(--greal-ink);
  box-shadow: none;
  transition: border-color var(--greal-dur-out) var(--greal-ease);
}

.wpcf7 textarea {
  min-height: 132px;
  resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  border-color: var(--greal-corten);
  outline-offset: 4px;
}

.wpcf7 .wpcf7-acceptance {
  display: block;
  margin-bottom: var(--greal-space-3);
}

.wpcf7 .wpcf7-list-item {
  margin: 0;
}

.wpcf7 .wpcf7-list-item-label {
  font-size: 0.875rem;
  line-height: 1.6;
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-right: 0.6rem;
  accent-color: var(--greal-corten);
  flex-shrink: 0;
}

.greal-intent {
  margin: 0 0 var(--greal-space-3);
  padding: 0;
  border: 0;
  width: 100%;
  min-width: 0;
}

.greal-intent legend.greal-field__label {
  margin-bottom: 0.85rem;
}

.greal-intent .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

.greal-intent .wpcf7-radio,
.greal-intent .wpcf7-checkbox {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.greal-intent .wpcf7-list-item {
  margin: 0;
}

.greal-intent .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  min-height: 100%;
  padding: 1rem 1.05rem;
  border: var(--greal-rule) solid var(--color-border-dark);
  cursor: pointer;
  transition: border-color var(--greal-dur-out) var(--greal-ease),
    background-color var(--greal-dur-out) var(--greal-ease);
}

.greal-intent .wpcf7-list-item:has(input:checked) label {
  border-color: var(--greal-corten);
  background: rgba(75, 37, 15, 0.06);
}

.greal-intent .wpcf7-list-item-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--greal-ink);
}

.greal-intent .wpcf7-list-item:nth-child(1) .wpcf7-list-item-label::after,
.greal-intent .wpcf7-list-item:nth-child(2) .wpcf7-list-item-label::after {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  color: #5c5044;
}

.greal-intent .wpcf7-list-item:nth-child(1) .wpcf7-list-item-label::after {
  content: "Voglio conoscere le vostre proposte immobiliari.";
}

.greal-intent .wpcf7-list-item:nth-child(2) .wpcf7-list-item-label::after {
  content: "Ho un progetto e cerco un'impresa per realizzarlo.";
}

.wpcf7 input[type="submit"] {
  min-height: 52px;
  padding: 0.9rem 2rem;
  border: 0;
  border-radius: 0;
  background: var(--greal-ink);
  color: var(--greal-paper);
  font-family: var(--greal-font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--greal-dur) var(--greal-ease);
}

.wpcf7 input[type="submit"]:hover {
  background: var(--greal-corten);
}

.wpcf7 input[type="submit"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wpcf7-not-valid-tip {
  margin-top: 0.4rem;
  font-family: var(--greal-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #a3231b;
}

.wpcf7 .wpcf7-response-output {
  margin: var(--greal-space-3) 0 0;
  padding: 0.9rem 1rem;
  border: 0;
  border-left: 3px solid var(--greal-corten);
  background: var(--greal-paper-2);
  font-size: 0.9375rem;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-left-color: #2f6b3d;
}

/* ==========================================================================
   16. Footer
   ========================================================================== */

.footer h1,
.footer h2,
.footer h3 {
  text-wrap: balance;
}

.footer h6 {
  font-family: var(--greal-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--greal-sand);
}

.footer p {
  max-width: 40ch;
}

.footer a {
  transition: color var(--greal-dur-out) var(--greal-ease);
}

.footer a:hover {
  color: var(--greal-corten-hot);
}

.footer .wp-block-column {
  min-width: 0;
}

.greal-footer {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  padding-bottom: 1.5rem;
}

.greal-footer__logo {
  display: inline-block;
  margin-bottom: 1.25rem;
}

.greal-footer__logo-img {
  display: block;
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
}

.greal-footer__heading {
  font-family: var(--greal-font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 0.94;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.75rem;
}

.greal-footer__lead {
  max-width: 36ch;
  margin-bottom: 1.25rem;
  color: var(--greal-sand);
}

.greal-footer__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.greal-footer__meta p {
  margin: 0;
  max-width: none;
}

.greal-footer__legal {
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.greal-footer__legal p {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--greal-sand);
}

.greal-footer__policies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.greal-footer__policies a {
  color: var(--greal-sand);
  text-decoration: none;
}

.greal-footer__policies a:hover,
.greal-footer__policies a:focus-visible {
  color: var(--greal-paper);
}

.greal-footer__legal .greal-footer__credit {
  margin-top: 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.greal-footer__credit a {
  color: inherit;
  text-decoration: none;
}

.greal-legal {
  max-width: 40rem;
  padding: clamp(6.5rem, 12vw, 8.5rem) clamp(1.25rem, 4vw, 2rem) clamp(3rem, 6vw, 5rem);
  color: var(--greal-ink);
  font-family: var(--greal-font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
}

.greal-legal h1,
.greal-legal h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--greal-font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.greal-legal h1 {
  margin-top: 0;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
}

.greal-legal h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.greal-legal p,
.greal-legal li {
  max-width: 62ch;
}

.greal-legal a {
  color: var(--greal-corten);
}

.page-id-3 .entry-content,
.greal-legal-page .entry-content {
  padding-top: 0;
}

@media (max-width: 767px) {
  #page-footer {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    inset: auto !important;
  }

  .js-fixed-reveal-spacer {
    height: auto !important;
    overflow: visible !important;
  }

  .greal-footer__meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .greal-footer__logo-img {
    height: 48px;
  }
}

/* ==========================================================================
   17. Utility
   ========================================================================== */

.greal-kicker {
  display: block;
  margin-bottom: var(--greal-space-2);
  font-size: 0.75rem;
  color: var(--greal-corten);
}

[data-arts-theme-text="light"] .greal-kicker {
  color: var(--greal-sand);
}

.greal-lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.greal-display-break {
  display: block;
}

.greal-accent {
  color: var(--greal-corten);
}

[data-arts-theme-text="light"] .greal-accent {
  color: var(--greal-corten-hot);
}

.greal-rule-top {
  border-top: var(--greal-rule) solid var(--color-border-dark);
  padding-top: var(--greal-space-3);
}

[data-arts-theme-text="light"] .greal-rule-top {
  border-top-color: var(--color-border-light);
}

/* ==========================================================================
   18. Responsive
   ========================================================================== */

@media (max-width: 991px) {
  .home .section-masthead__header {
    text-align: center !important;
  }

  .home .section-masthead__heading {
    max-width: 100%;
  }

  #section-cantieri::after {
    background-position: 50% 118%;
    background-size: 72% auto;
    opacity: 0.1;
  }

  .greal-counters .elementor-column {
    border-left: 0;
    padding-left: 0;
    border-top: var(--greal-rule) solid var(--color-border-dark);
    padding-top: var(--greal-space-2);
  }

  .greal-counters .elementor-column:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 767px) {
  .greal-form .greal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .greal-intent .wpcf7-radio,
  .greal-intent .wpcf7-checkbox {
    grid-template-columns: minmax(0, 1fr);
  }

  .greal-marquee span {
    font-size: clamp(1.6rem, 9vw, 2.6rem);
  }

  /* Home — rami: foto sempre sopra il testo */
  .home .greal-branch > .elementor-container {
    display: flex;
    flex-direction: column;
  }

  .home .greal-branch > .elementor-container > .elementor-column:has(.elementor-widget-image) {
    order: -1;
  }
}

/* ==========================================================================
   19. Chi siamo — masthead editoriale
   ========================================================================== */

.page-id-10 .section-masthead.pt-xlarge {
  padding-top: 0;
}

.page-id-10 .section-masthead .section__content {
  margin-top: 0;
  padding-bottom: 0;
}

.page-id-10 .section-masthead__wrapper-image {
  position: relative;
  overflow: hidden;
}

.page-id-10 .section-masthead__wrapper-image::after {
  content: "Costruzioni proprie  ·  Ville singole, Manerba del Garda";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 2.5rem 1.5rem 1.25rem;
  font-family: var(--greal-font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-align: left;
  background: linear-gradient(180deg, transparent, rgba(46, 46, 46, 0.55));
  pointer-events: none;
}

.page-id-10 .section-masthead .lazy {
  padding-bottom: 0 !important;
  height: 100% !important;
  position: relative;
}

.page-id-10 .section-masthead .lazy,
.page-id-10 .section-masthead .lazy.lazy_loaded {
  position: absolute !important;
  inset: 0 !important;
  height: auto !important;
  width: auto !important;
  padding: 0 !important;
}

.page-id-10 .section-masthead .lazy img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.page-id-10 .greal-about-intro h2 {
  max-width: 20ch;
  font-size: clamp(2.75rem, 5.2vw, 4.75rem);
  line-height: 0.88;
  letter-spacing: 0.01em;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

.page-id-10 .greal-about-intro .elementor-element-b6d4f02 .section-content__content p {
  max-width: 38ch;
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  line-height: 1.65;
  color: var(--greal-ink);
}

.page-id-10 .greal-about-storia h2 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 4.5vw, 4.25rem);
  line-height: 0.88;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

.page-id-10 .greal-about-storia .section-content__divider {
  background: rgba(206, 195, 181, 0.28);
}

.page-id-10 .greal-about-storia .section-content__wrapper-item .h2 {
  font-family: var(--greal-font-display);
  color: var(--greal-sand);
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin: 0;
}

.page-id-10 .greal-about-storia .section-content__wrapper-item p {
  max-width: 42ch;
  margin: 0;
}

.page-id-10 .greal-about-anagrafica .section-content__wrapper-item {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.page-id-10 .greal-about-anagrafica .section-content__wrapper-item .subheading,
.page-id-10 .greal-about-anagrafica .section-content__wrapper-item h3 {
  margin: 0;
  font-family: var(--greal-font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--greal-corten);
}

.page-id-10 .greal-about-anagrafica .section-content__wrapper-item p,
.page-id-10 .greal-about-anagrafica .section-content__wrapper-item div {
  margin: 0;
}

.page-id-10 .greal-about-method h2 {
  max-width: 12ch;
  font-size: clamp(2.5rem, 4.5vw, 4.25rem);
  line-height: 0.88;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

.page-id-10 .greal-about-method .section-list__counter-label {
  font-family: var(--greal-font-display);
  color: var(--greal-corten);
  letter-spacing: 0.04em;
}

.page-id-10 .greal-about-method .svg-circle {
  stroke: var(--greal-corten);
}

.page-id-10 .greal-about-method .section-list__content {
  font-family: var(--greal-font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.45;
  max-width: 36ch;
  color: var(--greal-ink);
}

@media (min-width: 992px) {
  .page-id-10 .section-masthead {
    display: grid;
    grid-template-columns: minmax(17rem, 36%) minmax(0, 1fr);
    grid-template-rows: minmax(100dvh, 100dvh);
    align-items: stretch;
    min-height: 100dvh;
    padding: 0 !important;
  }

  .page-id-10 .section-masthead__header {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    max-width: none;
    padding: 8rem var(--gutter-horizontal) 4.5rem;
    text-align: left;
  }

  .page-id-10 .section-masthead__heading {
    max-width: 8ch;
    font-size: clamp(4rem, 7vw, 7.25rem);
    line-height: 0.86;
    letter-spacing: 0.01em;
  }

  .page-id-10 .section-masthead__header::after {
    content: "";
    display: block;
    width: 2.5rem;
    height: 2px;
    margin-top: 1.75rem;
    background: var(--greal-corten);
  }

  .page-id-10 .section-masthead .section__content {
    display: flex;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
  }

  .page-id-10 .section-masthead__wrapper-image,
  .page-id-10 .section-masthead .mask-reveal,
  .page-id-10 .section-masthead .mask-reveal__layer,
  .page-id-10 .section-masthead .js-arts-parallax__scrub {
    height: 100%;
    max-width: none !important;
    width: 100%;
    position: relative;
  }

  .page-id-10 .section-masthead .lazy,
  .page-id-10 .section-masthead .lazy.lazy_loaded {
    position: absolute !important;
    inset: 0 !important;
    height: auto !important;
    width: auto !important;
    padding: 0 !important;
  }
}

@media (max-width: 991px) {
  .page-id-10 .section-masthead__header {
    padding: 6.5rem var(--gutter-horizontal) 1.5rem;
    text-align: left;
  }

  .page-id-10 .section-masthead__heading {
    font-size: clamp(3.25rem, 14vw, 5rem);
    line-height: 0.88;
  }

  .page-id-10 .section-masthead__wrapper-image {
    height: min(62dvh, 520px);
    position: relative;
  }

  .page-id-10 .section-masthead .mask-reveal,
  .page-id-10 .section-masthead .mask-reveal__layer,
  .page-id-10 .section-masthead .js-arts-parallax__scrub {
    height: 100%;
    position: relative;
  }
}

/* ==========================================================================
   19b. Hero payoff, porte, selezione realizzazioni
   ========================================================================== */

.home .section-masthead__heading {
  max-width: 12ch;
  margin-inline: auto;
  font-size: clamp(3.6rem, 7.4vw, 7.75rem);
  line-height: 0.88;
  text-align: center !important;
}

.home .section-masthead__text {
  max-width: 34rem;
  margin-top: 1.15rem;
  font-family: var(--greal-font-body);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

.greal-home-lead,
.greal-home-tail {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.greal-home-lead {
  background: #fff;
}

.greal-doors {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 10px;
  padding: 10px;
  background: #fff;
}

.greal-door {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  color: var(--greal-ink);
  background: #fff;
  text-decoration: none;
}

.greal-door__media {
  position: relative;
  display: block;
  flex: 1 1 auto;
  overflow: hidden;
  min-height: clamp(16rem, 28vw, 24rem);
  background: var(--greal-ink);
}

.greal-door--ink .greal-door__media {
  min-height: clamp(14rem, 22vw, 20rem);
}

.greal-door__media img {
  position: absolute;
  inset: 0;
}

.greal-door__media img,
.greal-work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition:
    transform 560ms var(--greal-ease),
    opacity 280ms var(--greal-ease);
}

.greal-door__plate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title go"
    "line go"
    "text go";
  column-gap: 1.25rem;
  row-gap: 0.28rem;
  align-items: center;
  padding: 1.2rem 1.35rem 1.35rem;
  background: #fff;
}

.greal-door--ink .greal-door__plate {
  background: var(--greal-ink);
  color: #fff;
}

.greal-door__go {
  grid-area: go;
  align-self: end;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid currentColor;
}

.greal-door__go::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-left: -3px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 200ms var(--greal-ease);
}

.greal-work__cat,
.greal-works__kicker,
.greal-filter-empty {
  font-family: var(--greal-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.greal-door__title {
  grid-area: title;
  display: block;
  margin: 0;
  font-family: var(--greal-font-display);
  font-size: clamp(2.15rem, 3.1vw, 3.35rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.01em;
  color: var(--greal-ink);
}

.greal-door__line {
  grid-area: line;
  width: 2.25rem;
  height: 1px;
  margin: 0.45rem 0 0.35rem;
  background: var(--greal-corten);
  transform-origin: left center;
  transition:
    width 200ms var(--greal-ease),
    transform 280ms var(--greal-ease);
}

.greal-door__text {
  grid-area: text;
  margin: 0;
  max-width: 34ch;
  font-family: var(--greal-font-body);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--greal-ink-3);
}

.greal-door--ink .greal-door__line {
  color: var(--greal-sand);
}

.greal-door--ink .greal-door__line {
  background: var(--greal-sand);
}

.greal-door--ink .greal-door__title {
  color: #fff;
}

.greal-door--ink .greal-door__text {
  color: rgba(255, 255, 255, 0.78);
}

.greal-door--ink .greal-door__media img {
  object-position: center top;
  transform-origin: center 22%;
}

.js .greal-door.is-in:hover .greal-door__media img,
.js .greal-door.is-in:focus-visible .greal-door__media img,
.js .greal-work.is-in:hover .greal-work__media img,
.js .greal-work.is-in:focus-visible .greal-work__media img,
.greal-door:hover .greal-door__media img,
.greal-door:focus-visible .greal-door__media img,
.greal-work:hover .greal-work__media img,
.greal-work:focus-visible .greal-work__media img {
  transform: scale(1.06);
  transition-delay: 0ms;
}

.greal-door:hover .greal-door__line,
.greal-door:focus-visible .greal-door__line {
  width: 4.25rem;
}

.greal-door:hover .greal-door__go::before,
.greal-door:focus-visible .greal-door__go::before {
  transform: translate3d(3px, 0, 0) rotate(45deg);
}

.greal-door:focus-visible,
.greal-work:focus-visible,
.greal-works__more:focus-visible {
  outline: 2px solid var(--greal-sand);
  outline-offset: -2px;
}

.greal-works {
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1.25rem, 4vw, 4.5rem);
  background: var(--greal-paper-2);
  color: var(--greal-ink);
}

.greal-works__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.greal-works__kicker {
  margin: 0 0 0.4rem;
  color: var(--greal-corten);
}

.greal-works__title {
  margin: 0;
  font-family: var(--greal-font-display);
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.greal-works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
}

.greal-work {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.greal-work__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--greal-ink);
}

.greal-work__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.95rem 0.1rem 0;
}

.greal-work__cat {
  color: var(--greal-corten);
}

.greal-work__title {
  display: block;
  margin: 0.35rem 0 0;
  font-family: var(--greal-font-display);
  font-size: clamp(1.7rem, 2vw, 2.15rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.greal-works__more {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--greal-corten);
  color: var(--greal-corten);
  font-family: var(--greal-font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.greal-works__more:hover {
  background: var(--greal-corten);
  color: #fff;
}

.page-id-12 .section-grid .col-lg-6 {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

.page-id-12 .filter__inner .row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
}

.page-id-12 .greal-filter-empty {
  display: none;
  margin: 0.25rem 0 2.5rem;
  max-width: 36rem;
  color: var(--greal-ink);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.page-id-12 .greal-filter-empty.is-visible {
  display: block;
}

.page-id-12 .filter__item {
  cursor: pointer;
}

@media (max-width: 991px) {
  .greal-doors {
    grid-template-columns: 1fr;
  }

  .greal-door__media,
  .greal-door--paper .greal-door__media,
  .greal-door--ink .greal-door__media {
    flex: none;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .greal-works__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .greal-works__grid {
    grid-template-columns: 1fr;
  }

  .greal-work__media {
    aspect-ratio: 16 / 10;
  }
}

/* Porte: slide all'ingresso in viewport. Niente clip/opacity 0: restavano un buco bianco. */
.js .greal-door {
  -webkit-clip-path: none;
  clip-path: none;
  transition: transform 680ms var(--greal-ease);
}

.js .greal-door[data-greal-reveal="1"]:not(.is-in),
.js .greal-door[data-greal-reveal="1"]:nth-child(2):not(.is-in) {
  -webkit-clip-path: none;
  clip-path: none;
  transform: translate3d(0, 2.25rem, 0);
}

.js .greal-door.is-in {
  transform: translate3d(0, 0, 0);
}

.js .greal-door:nth-child(2).is-in {
  transition-delay: 110ms;
}

.js .greal-door[data-greal-reveal="1"]:not(.is-in) .greal-door__media img {
  opacity: 1;
  transform: scale(1.04);
}

.js .greal-door.is-in .greal-door__media img {
  opacity: 1;
  transform: scale(1.02);
}

.js .greal-works[data-greal-reveal="1"]:not(.is-in) .greal-works__head,
.js .greal-works[data-greal-reveal="1"]:not(.is-in) .greal-work__meta {
  opacity: 0;
  transform: translate3d(0, 12%, 0);
}

.js .greal-works__head,
.js .greal-works .greal-work__meta {
  transition:
    opacity 280ms var(--greal-ease),
    transform 280ms var(--greal-ease);
}

.js .greal-works.is-in .greal-works__head,
.js .greal-works.is-in .greal-work__meta {
  opacity: 1;
  transform: none;
}

.js .greal-works.is-in .greal-work:nth-child(1) .greal-work__meta {
  transition-delay: 80ms;
}

.js .greal-works.is-in .greal-work:nth-child(2) .greal-work__meta {
  transition-delay: 140ms;
}

.js .greal-works.is-in .greal-work:nth-child(3) .greal-work__meta {
  transition-delay: 200ms;
}

.js .greal-work__media {
  -webkit-clip-path: inset(0 0 0 0);
  clip-path: inset(0 0 0 0);
  transition: clip-path 500ms var(--greal-ease), -webkit-clip-path 500ms var(--greal-ease);
}

.js .greal-works[data-greal-reveal="1"]:not(.is-in) .greal-work__media {
  -webkit-clip-path: inset(100% 0 0 0);
  clip-path: inset(100% 0 0 0);
}

.js .greal-works.is-in .greal-work:nth-child(2) .greal-work__media {
  transition-delay: 70ms;
}

.js .greal-works.is-in .greal-work:nth-child(3) .greal-work__media {
  transition-delay: 140ms;
}

.js .greal-works[data-greal-reveal="1"]:not(.is-in) .greal-work__media img {
  opacity: 0;
  transform: translate3d(0, 6%, 0) scale(1.04);
}

.js .greal-works.is-in .greal-work__media img {
  opacity: 1;
  transform: scale(1.02);
}

.js .greal-door.is-in:hover .greal-door__media img,
.js .greal-door.is-in:focus-visible .greal-door__media img,
.js .greal-works.is-in .greal-work:hover .greal-work__media img,
.js .greal-works.is-in .greal-work:focus-visible .greal-work__media img {
  transform: scale(1.06);
  transition-delay: 0ms;
}

.greal-door--ink .greal-door__media img,
.js .greal-door--ink.is-in .greal-door__media img {
  transform: scale(1.72);
}

.js .greal-door--ink[data-greal-reveal="1"]:not(.is-in) .greal-door__media img {
  opacity: 1;
  transform: scale(1.72);
}

.js .greal-door.is-in-now,
.js .greal-door.is-in-now .greal-door__media img,
.js .greal-door.is-in-now .greal-door__title,
.js .greal-door.is-in-now .greal-door__text,
.js .greal-door.is-in-now .greal-door__line,
.js .greal-works.is-in-now .greal-works__head,
.js .greal-works.is-in-now .greal-work__media,
.js .greal-works.is-in-now .greal-work__media img,
.js .greal-works.is-in-now .greal-work__meta {
  transition: none !important;
  transition-delay: 0ms !important;
}

.greal-door--ink:hover .greal-door__media img,
.greal-door--ink:focus-visible .greal-door__media img,
.js .greal-door--ink.is-in:hover .greal-door__media img,
.js .greal-door--ink.is-in:focus-visible .greal-door__media img {
  transform: scale(1.8);
  transition-delay: 0ms;
}

@media (max-width: 991px) {
  .js .greal-door[data-greal-reveal="1"]:not(.is-in),
  .js .greal-door[data-greal-reveal="1"]:nth-child(2):not(.is-in) {
    -webkit-clip-path: none;
    clip-path: none;
    transform: translate3d(0, 1.5rem, 0);
  }

  .js .greal-door:nth-child(2).is-in {
    transition-delay: 90ms;
  }
}

/* ==========================================================================
   20. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .greal-marquee__track {
    animation: none;
    transform: none;
  }

  .greal-marquee {
    overflow-x: auto;
  }

  .underline-hover__target,
  .greal-link {
    transition: none;
  }

  .figure-project__wrapper-img::after,
  .greal-door__media img,
  .greal-work__media img,
  .greal-door__line,
  .greal-works__more,
  .greal-project__shot img,
  .greal-project__back,
  .greal-project__other {
    transition: none;
  }

  .js .greal-branch .elementor-widget-image,
  .js .greal-branch .elementor-widget-image img,
  .js .greal-branch .greal-kicker::after,
  .js .greal-branch .greal-in-cantiere,
  .js .greal-branch .elementor-widget-kinsey-widget-button,
  .js .greal-door,
  .js .greal-door__media img,
  .js .greal-door__title,
  .js .greal-door__text,
  .js .greal-door__line,
  .js .greal-works__head,
  .js .greal-work__media,
  .js .greal-work__media img,
  .js .greal-work__meta {
    -webkit-clip-path: none;
    clip-path: none;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .greal-door--ink .greal-door__media img {
    transform: scale(1.72);
  }
}

/* ==========================================================================
   21. Scheda progetto
   ========================================================================== */

.greal-project {
  padding: 0 0 clamp(4.5rem, 9vw, 7.5rem);
  color: var(--greal-ink);
  background: var(--greal-paper);
}

.greal-project__cover {
  margin: 0;
  height: min(520px, calc(100svh - 31rem));
  min-height: 240px;
  background: var(--greal-ink-2);
  overflow: hidden;
}

.greal-project__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.greal-project__band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.35rem 2.5rem;
  padding: clamp(1.7rem, 3.2vw, 2.55rem) clamp(1.25rem, 4.5vw, 4.75rem) clamp(1.45rem, 2.6vw, 2.1rem);
  background: var(--greal-ink);
  color: var(--greal-paper);
}

.greal-project__back {
  display: inline-block;
  margin: 0 0 0.9rem;
  color: var(--greal-sand);
  font-family: var(--greal-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color var(--greal-dur) var(--greal-ease);
}

.greal-project__back:hover,
.greal-project__back:focus-visible {
  color: var(--greal-paper);
}

.greal-project__kicker {
  margin: 0;
  color: var(--greal-sand);
  font-family: var(--greal-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.greal-project__title {
  max-width: 16ch;
  margin: 0.28rem 0 0;
  color: var(--greal-paper);
  font-family: var(--greal-font-display);
  font-size: clamp(3.25rem, 7.4vw, 6.6rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0.01em;
}

.greal-project__place {
  display: grid;
  justify-items: end;
  gap: 0.55rem;
  margin: 0 0 0.35rem;
  font-family: var(--greal-font-body);
  font-size: 0.98rem;
  font-weight: 500;
  text-align: right;
}

.greal-project__rule {
  width: 2.25rem;
  height: 1px;
  background: var(--greal-sand);
}

.greal-project__dossier {
  display: grid;
  grid-template-columns: minmax(11rem, 16rem) minmax(0, 40rem);
  gap: clamp(1.75rem, 4vw, 4.25rem);
  align-items: start;
  padding: clamp(2.4rem, 5vw, 4.1rem) clamp(1.25rem, 4.5vw, 4.75rem);
  background: var(--greal-paper-2);
}

.greal-project__dossier:not(:has(.greal-project__text)) {
  grid-template-columns: minmax(0, 28rem);
}

.greal-project__facts {
  display: grid;
  gap: 1.15rem;
  margin: 0;
}

.greal-project__facts div {
  display: grid;
  gap: 0.22rem;
}

.greal-project__facts dt {
  margin: 0;
  color: var(--greal-corten);
  font-family: var(--greal-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.greal-project__facts dd {
  margin: 0;
  font-family: var(--greal-font-body);
  font-size: 1.02rem;
  font-weight: 500;
}

.greal-project__text {
  max-width: 62ch;
  font-family: var(--greal-font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.65;
}

.greal-project__text p {
  margin: 0 0 0.95rem;
}

.greal-project__text p:last-child {
  margin-bottom: 0;
}

.greal-project__photos {
  padding: clamp(2.2rem, 4.5vw, 3.6rem) clamp(1.25rem, 4.5vw, 4.75rem) 0;
}

.greal-project__photos-title {
  margin: 0 0 0.95rem;
  color: var(--greal-corten);
  font-family: var(--greal-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.greal-project__gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 11px 13px;
}

.greal-project__shot {
  position: relative;
  display: block;
  grid-column: span 6;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: var(--greal-ink-2);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.greal-project__shot:nth-child(6n + 1) {
  grid-column: span 8;
}

.greal-project__shot:nth-child(6n + 2),
.greal-project__shot:nth-child(6n + 5) {
  grid-column: span 4;
}

.greal-project__shot:nth-child(6n + 6) {
  grid-column: span 8;
}

.greal-project__shot img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 560ms var(--greal-ease);
}

.greal-project__shot:nth-child(6n + 2) img,
.greal-project__shot:nth-child(6n + 5) img {
  aspect-ratio: 3 / 4;
}

.greal-project__shot:hover img,
.greal-project__shot:focus-visible img {
  transform: scale(1.035);
}

.greal-project__shot:focus-visible,
.greal-project__back:focus-visible,
.greal-project__other:focus-visible,
.greal-project__viewer button:focus-visible {
  outline: 2px solid var(--greal-corten);
  outline-offset: 3px;
}

.greal-project__num {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.2rem 0.55rem 0.08rem;
  background: var(--greal-ink);
  color: var(--greal-paper);
  font-family: var(--greal-font-display);
  font-size: 1.28rem;
  line-height: 1;
  letter-spacing: 0.03em;
}

body.greal-viewer-open #page-header {
  visibility: hidden;
}

body.greal-viewer-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1990;
  background: rgba(36, 36, 36, 0.88);
}

.greal-project__viewer {
  z-index: 2000;
  width: min(1120px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  background: var(--greal-ink);
  color: var(--greal-paper);
}

.greal-project__viewer::backdrop {
  background: rgba(36, 36, 36, 0.88);
}

.greal-project__viewer-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
}

.greal-project__viewer-nav {
  display: flex;
  gap: 0.45rem;
}

.greal-project__viewer button {
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--greal-sand);
  background: transparent;
  color: var(--greal-paper);
  font-family: var(--greal-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.greal-project__viewer button:hover {
  background: var(--greal-paper);
  color: var(--greal-ink);
}

.greal-project__viewer.is-single .greal-project__viewer-nav {
  display: none;
}

.greal-project__viewer img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 9.5rem);
  object-fit: contain;
  background: var(--greal-ink-2);
}

.greal-project__viewer-cap {
  margin: 0;
  padding: 0.75rem 0.95rem 0.95rem;
  font-family: var(--greal-font-body);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
}

.greal-project__viewer-cap:empty {
  display: none;
}

.greal-project__videos {
  padding: clamp(2.2rem, 4.5vw, 3.6rem) clamp(1.25rem, 4.5vw, 4.75rem) 0;
}

.greal-project__video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 13px;
}

.greal-project__clip {
  position: relative;
  margin: 0;
  background: var(--greal-ink);
}

.greal-project__clip video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--greal-ink);
  cursor: pointer;
}

.greal-project__play,
.greal-project__chrome {
  display: none;
}

.greal-project__clip.is-ready .greal-project__play {
  display: grid;
}

.greal-project__clip.is-ready.is-playing .greal-project__play {
  display: none;
}

.greal-project__clip.is-ready.is-started .greal-project__chrome {
  display: flex;
}

.greal-project__play {
  place-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0;
  padding: 0 0 0 0.15rem;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--greal-paper);
  color: var(--greal-corten);
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(36, 36, 36, 0.28);
}

.greal-project__play:hover {
  background: var(--greal-paper-2);
}

.greal-project__play:focus-visible,
.greal-project__ctl:focus-visible,
.greal-project__seek:focus-visible {
  outline: 2px solid var(--greal-paper);
  outline-offset: 3px;
}

.greal-project__chrome {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  align-items: center;
  gap: 0.35rem;
  padding: 1.6rem 0.55rem 0.45rem;
  background: linear-gradient(transparent, rgba(36, 36, 36, 0.78));
}

.greal-project__ctl {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--greal-paper);
  cursor: pointer;
}

.greal-project__ctl .is-pause {
  display: none;
}

.greal-project__clip:not(.is-playing) [data-toggle] {
  display: none;
}

.greal-project__clip.is-playing .greal-project__ctl .is-play {
  display: none;
}

.greal-project__clip.is-playing .greal-project__ctl .is-pause {
  display: block;
}

.greal-project__seek {
  --p: 0%;
  flex: 1;
  min-width: 0;
  height: 2.75rem;
  margin: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.greal-project__seek::-webkit-slider-runnable-track {
  height: 3px;
  background:
    linear-gradient(var(--greal-paper), var(--greal-paper)) 0 0 / var(--p) 100% no-repeat,
    rgba(206, 195, 181, 0.45);
}

.greal-project__seek::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border: 0;
  border-radius: 50%;
  background: var(--greal-paper);
}

.greal-project__seek::-moz-range-track {
  height: 3px;
  background: rgba(206, 195, 181, 0.45);
}

.greal-project__seek::-moz-range-progress {
  height: 3px;
  background: var(--greal-paper);
}

.greal-project__seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--greal-paper);
}

.greal-project__time {
  flex: 0 0 auto;
  min-width: 2.4rem;
  color: var(--greal-paper);
  font-family: var(--greal-font-body);
  font-size: 0.72rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.greal-project__clip.is-waiting .greal-project__play {
  opacity: 0.72;
}

.greal-project__clip:fullscreen,
.greal-project__clip:-webkit-full-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #000;
}

.greal-project__clip:fullscreen video,
.greal-project__clip:-webkit-full-screen video {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
}

.greal-project__clip:fullscreen .greal-project__chrome,
.greal-project__clip:-webkit-full-screen .greal-project__chrome {
  padding-bottom: 0.85rem;
}

.greal-project__clip .greal-project__num {
  top: 0;
  bottom: auto;
  z-index: 2;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .greal-project__play,
  .greal-project__chrome {
    transition: none;
  }
}

.greal-project__more {
  padding: clamp(2.8rem, 6vw, 4.6rem) clamp(1.25rem, 4.5vw, 4.75rem) 0;
}

.greal-project__more-title {
  margin: 0 0 1.05rem;
  font-family: var(--greal-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.greal-project__more-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.85fr);
  gap: 18px 22px;
  align-items: start;
}

.greal-project__more-grid:has(> :only-child) {
  grid-template-columns: minmax(0, 42rem);
}

.greal-project__other {
  display: grid;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.greal-project__other img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--greal-ink-2);
}

.greal-project__more-grid > :first-child img {
  aspect-ratio: 16 / 10;
}

.greal-project__other-cat {
  display: block;
  color: var(--greal-corten);
  font-family: var(--greal-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.greal-project__other-title {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--greal-font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 400;
  line-height: 0.9;
}

@media (max-width: 760px) {
  .greal-project__cover {
    height: 58vw;
    min-height: 240px;
  }

  .greal-project__band,
  .greal-project__dossier,
  .greal-project__more-grid {
    grid-template-columns: 1fr;
  }

  .greal-project__place {
    justify-items: start;
    margin: 0;
    text-align: left;
  }

  .greal-project__shot,
  .greal-project__shot:nth-child(n) {
    grid-column: 1 / -1;
  }

  .greal-project__video-grid {
    grid-template-columns: 1fr;
  }

  .greal-project__shot img,
  .greal-project__shot:nth-child(n) img {
    aspect-ratio: 4 / 3;
  }
}

/* Header dopo il primo scroll: texture corten del cliente. */
.header.header_sticky.bg-dark-1 {
  background-color: #4b250f;
  background-image:
    linear-gradient(rgba(51, 26, 10, 0.42), rgba(51, 26, 10, 0.42)),
    url("assets/img/corten-header.jpg?v=2");
  background-repeat: no-repeat;
  background-position: center 40%;
  background-size: cover;
}
