/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Sep 19 2026 | 21:45:42 */
/* ==========================================================================
   CONTE MANGESA — LA LEGGENDA · SEZIONE 1 · HERO
   Snippet:   cm-leggenda-hero (CSS)
   Dove:      Custom CSS & JS → Frontend → Header → File esterno
   Struttura in Elementor (pagina La Leggenda, prima sezione):
     Contenitore (larghezza piena) ................ cm-leggenda-hero
       ├── Contenitore (testi, fondo nero) ........ cm-leggenda-hero__content
       │     ├── Titolo "CONEGLIANO"      (div) ... cm-leggenda-hero__kicker
       │     ├── Titolo "LA LEGGENDA…"    (H1) .... cm-leggenda-hero__title
       │     └── Editor di testo (frase) .......... cm-leggenda-hero__text
       └── Immagine (ritratto verticale del Conte)  cm-leggenda-hero__img
   Metà sinistra nera con i testi, metà destra il ritratto fino al bordo dello
   schermo, con una sottile linea oro di confine. Su mobile: foto sopra, testi sotto.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. FASCIA — due metà: testi | ritratto
   -------------------------------------------------------------------------- */
.elementor .e-con.cm-leggenda-hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 100%;
  min-height: 78vh;                             /* altezza della testata */
  padding: 0;
  overflow: hidden;
  text-align: left;
  background-color: var(--cm-black);
}

/* Toglie gli spazi extra che Elementor aggiunge sotto i widget */
.elementor .cm-leggenda-hero .elementor-widget:not(:last-child) {
  margin-block-end: 0;
}


/* --------------------------------------------------------------------------
   2. METÀ SINISTRA — TESTI
   Il margine sinistro si allinea al logo e ai contenuti delle altre sezioni.
   Il padding in alto tiene i testi lontani dal menu trasparente.
   -------------------------------------------------------------------------- */
.elementor .e-con.cm-leggenda-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: none;
  padding: 150px 64px 90px max(var(--cm-gutter), calc((100vw - var(--cm-container)) / 2));
  background-color: var(--cm-black);
}

/* Occhiello "CONEGLIANO" */
.elementor .cm-leggenda-hero__kicker .elementor-heading-title {
  margin: 0;
  font-family: var(--cm-font-display);
  font-size: 14px;                              /* grandezza occhiello */
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cm-gold);
}

/* Titolo (è l'H1 della pagina: contiene la parola chiave "Conte Mangesa") */
.elementor .cm-leggenda-hero__title {
  margin-top: 22px;
}

.elementor .cm-leggenda-hero__title .elementor-heading-title {
  margin: 0;
  font-family: var(--cm-font-display);
  font-size: 80px;                              /* grandezza "LA LEGGENDA" */
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--cm-white);
}

/* La seconda riga "di Conte Mangesa": oro, corsivo, più piccola.
   Nasce dal pezzo di testo tra <span> e </span> dentro il titolo. */
.elementor .cm-leggenda-hero__title .elementor-heading-title span {
  display: block;
  margin-top: 16px;
  font-family: var(--cm-font-body);
  font-size: 32px;                              /* grandezza "di Conte Mangesa" */
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cm-gold);
}

/* Linea oro decorativa sotto il titolo */
.elementor .cm-leggenda-hero__title .elementor-heading-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 2px;
  margin-top: 30px;
  background-color: var(--cm-gold);
}

/* Frase introduttiva */
.elementor .cm-leggenda-hero__text {
  margin-top: 28px;
  font-family: var(--cm-font-body);
  font-size: 22px;                              /* grandezza frase */
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: var(--cm-white-muted);
}

.elementor .cm-leggenda-hero__text p {
  max-width: 440px;                             /* larghezza massima della frase */
  margin: 0;
}


/* --------------------------------------------------------------------------
   3. METÀ DESTRA — RITRATTO A TUTTA ALTEZZA
   -------------------------------------------------------------------------- */
.elementor .cm-leggenda-hero__img {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

.elementor .cm-leggenda-hero__img img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;                            /* riempie la metà senza deformare */
  object-position: center 18%;                  /* inquadratura: volto in alto */
}

/* Linea oro sottile sul confine tra le due metà, sfumata alle estremità */
.elementor .cm-leggenda-hero__img::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--cm-gold-subtle) 18%,
    var(--cm-gold) 50%,
    var(--cm-gold-subtle) 82%,
    transparent 100%
  );
}

/* Sfumatura nera sul lato sinistro della foto (fonde foto e blocco nero)
   + velatura leggera che uniforma i toni */
.elementor .cm-leggenda-hero__img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--cm-black) 0%, rgba(35, 31, 32, 0.45) 18%, transparent 52%),
    rgba(35, 31, 32, 0.18);
}


/* --------------------------------------------------------------------------
   4. RESPONSIVE
   -------------------------------------------------------------------------- */

/* Tablet */
@media (max-width: 1024px) {
  .elementor .e-con.cm-leggenda-hero {
    min-height: 70vh;
  }
  .elementor .e-con.cm-leggenda-hero__content {
    padding: 130px 40px 72px var(--cm-gutter);
  }
  .elementor .cm-leggenda-hero__title .elementor-heading-title {
    font-size: 58px;
  }
  .elementor .cm-leggenda-hero__title .elementor-heading-title span {
    font-size: 26px;
  }
  .elementor .cm-leggenda-hero__text {
    font-size: 20px;
  }
}

/* Mobile: prima il ritratto, poi i testi */
@media (max-width: 767px) {
  .elementor .e-con.cm-leggenda-hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .elementor .cm-leggenda-hero__img {
    order: -1;                                  /* la foto va prima dei testi */
    height: 54vh;                               /* altezza della foto su mobile */
    min-height: 380px;
  }
  .elementor .cm-leggenda-hero__img img {
    object-position: center 15%;
  }
  /* Su mobile la sfumatura scende dall'alto (sotto il menu) e verso i testi */
  .elementor .cm-leggenda-hero__img::before {
    display: none;
  }
  .elementor .cm-leggenda-hero__img::after {
    background:
      linear-gradient(180deg, rgba(35, 31, 32, 0.75) 0%, transparent 28%, transparent 70%, var(--cm-black) 100%),
      rgba(35, 31, 32, 0.15);
  }
  .elementor .e-con.cm-leggenda-hero__content {
    padding: 32px var(--cm-gutter) 48px;
  }
  .elementor .cm-leggenda-hero__title {
    margin-top: 18px;
  }
  .elementor .cm-leggenda-hero__title .elementor-heading-title {
    font-size: 44px;
  }
  .elementor .cm-leggenda-hero__title .elementor-heading-title span {
    margin-top: 12px;
    font-size: 24px;
  }
  .elementor .cm-leggenda-hero__title .elementor-heading-title::after {
    margin-top: 24px;
  }
  .elementor .cm-leggenda-hero__text {
    margin-top: 22px;
    font-size: 19px;
  }
}