/*
CTC Separate Stylesheet
Updated: 2026-02-25 15:36:47
Theme Name: The Wide Factory
Template: hello-elementor
Author: TWF team
Version: 3.4.6.1772030207
*/

/* =========================================================
   THE WIDE FACTORY – CSS aggiuntivo del sito
   Indice:
   1. Base
   2. Menu
   3. Pulsanti
   4. Homepage
   5. Articolo blog: testata e griglia
   6. Articolo blog: indice dei contenuti
   7. Articolo blog: contenuto
   8. Tablet (≤ 1024px)
   9. Smartphone (≤ 767px)
   10. Animazioni ridotte
   ========================================================= */


/* =========================================================
   1. BASE
   ========================================================= */

/* Spazio della barra di scorrimento sempre riservato
   (evita lo spostamento dell'off-canvas in chiusura) */
html {
  scrollbar-gutter: stable;
}

/* Interlinea dei titoli: si adatta da sola alla dimensione */
h1, h2, h3,
.elementor-heading-title {
  line-height: calc(0.85em + 0.5rem);
}

/* Nessun margine sotto l'ultimo paragrafo dei blocchi di testo */
.elementor-widget-text-editor p:last-child {
  margin-block-end: 0;
}


/* =========================================================
   2. MENU – evidenziatore all'hover
   ========================================================= */

.elementor-nav-menu .elementor-item {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.elementor-nav-menu .elementor-item::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 0.1em;
  height: 1.8em;
  background: linear-gradient(
    180deg,
    rgba(255, 230, 0, 0.6) 0%,
    rgba(255, 230, 0, 0.9) 60%,
    rgba(255, 230, 0, 1) 100%
  );
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
  z-index: -1;
}

.elementor-nav-menu .elementor-item:hover::after {
  transform: scaleX(1);
}


/* =========================================================
   3. PULSANTI
   ========================================================= */

/* Pulsante e testo sempre allineati a sinistra (anche da mobile) */
.elementor-widget-button .elementor-button-wrapper,
.elementor-widget-button .elementor-button {
  text-align: left !important;
}

/* Contenitore del testo del pulsante */
.elementor-widget-button .elementor-button-content-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  z-index: 1;
}

/* Evidenziatore giallo animato */
.elementor-widget-button .elementor-button-content-wrapper::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: -0.25em;
  height: 1.8em;
  background: linear-gradient(
    180deg,
    rgba(255, 230, 0, 0.6) 0%,
    rgba(255, 230, 0, 0.9) 60%,
    rgba(255, 230, 0, 1) 100%
  );
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  filter: blur(0.6px);
  z-index: -1;
  animation: markerAnimation 8s infinite;
}

@keyframes markerAnimation {
  0%   { transform: scaleX(0); opacity: 0; }
  10%  { opacity: 1; }
  25%  { transform: scaleX(1); }
  45%  { transform: scaleX(1); }
  60%  { transform: scaleX(0); opacity: 0; }
  100% { transform: scaleX(0); opacity: 0; }
}

/* Pulsanti .marker-cta: la freccia segue il testo
   (l'icona del widget è nascosta e ridisegnata dopo l'ultima parola) */
.marker-cta .elementor-button-icon {
  display: none;
}

.marker-cta .elementor-button-text::after {
  content: "";
  display: inline-block;
  width: .75em;
  height: .75em;
  margin-left: .4em;
  vertical-align: .05em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M9.85352 0.5C9.85352 0.223857 9.62966 0 9.35352 0L4.85352 0C4.57737 0 4.35352 0.223858 4.35352 0.5C4.35352 0.776142 4.57737 1 4.85352 1L8.85352 1L8.85352 5C8.85352 5.27614 9.07737 5.5 9.35352 5.5C9.62966 5.5 9.85352 5.27614 9.85352 5L9.85352 0.5ZM0.353516 9.5L0.707069 9.85355L9.70707 0.853553L9.35352 0.5L8.99996 0.146447L0 9.14645L0.353516 9.5Z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M9.85352 0.5C9.85352 0.223857 9.62966 0 9.35352 0L4.85352 0C4.57737 0 4.35352 0.223858 4.35352 0.5C4.35352 0.776142 4.57737 1 4.85352 1L8.85352 1L8.85352 5C8.85352 5.27614 9.07737 5.5 9.35352 5.5C9.62966 5.5 9.85352 5.27614 9.85352 5L9.85352 0.5ZM0.353516 9.5L0.707069 9.85355L9.70707 0.853553L9.35352 0.5L8.99996 0.146447L0 9.14645L0.353516 9.5Z'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .3s ease;
  transform-origin: center;
}

/* All'hover la freccia diventa orizzontale */
.marker-cta .elementor-button:hover .elementor-button-text::after,
.marker-cta .elementor-button:focus-visible .elementor-button-text::after {
  transform: rotate(45deg);
}


/* =========================================================
   4. HOMEPAGE
   ========================================================= */

.home footer {
  display: none;
}


/* =========================================================
   5. ARTICOLO BLOG – testata e griglia
   ========================================================= */

/* Testata (container con classe: twf-art-head) */
.twf-art-head {
  padding-block: 56px 40px;
}

/* Categoria sopra il titolo (Info articolo › Termini, classe: twf-art-eyebrow) */
.twf-art-eyebrow,
.twf-art-eyebrow a {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: inherit !important;
  text-decoration: none !important;
}

.twf-art-eyebrow .elementor-post-info__terms-list {
  position: relative;
  z-index: 1;
  padding: 0 4px;
}

.twf-art-eyebrow .elementor-post-info__terms-list::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .05em;
  height: .9em;
  background: rgba(255, 230, 0, .9);
  border-radius: 2px;
  z-index: -1;
}

/* Titolo articolo (H1) */
.twf-art-head .elementor-heading-title {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -.02em;
  max-width: 22ch;
}

/* Data (Info articolo, classe: twf-art-meta) */
.twf-art-meta,
.twf-art-meta * {
  font-size: 16px;
  font-weight: 300;
  color: #6b6b6b;
}

/* Griglia indice + testo (container con classe: twf-art-grid) */
.twf-art-grid {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 800px);
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
  padding-top: 48px;
  border-top: 1px solid #1e1e1e;
}

/* Colonna dell'indice (container con classe: twf-art-aside) */
.twf-art-aside {
  position: sticky;
  top: 40px;
}

/* Piccola call to action sotto l'indice (Editor di testo, classe: twf-art-cta) */
.twf-art-cta {
  margin-top: 24px;
  font-size: 15px;
  font-weight: 300;
}

.twf-art-cta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .15em;
}


/* =========================================================
   6. ARTICOLO BLOG – indice dei contenuti
   ========================================================= */

.twf-art-aside .elementor-toc {
  border: 0 !important;
  padding: 0 !important;
  background: none !important;
}

.twf-art-aside .elementor-toc__header {
  padding: 0 0 12px;
  border: 0;
}

.twf-art-aside .elementor-toc__header-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.twf-art-aside .elementor-toc__body {
  padding: 0;
}

.twf-art-aside .elementor-toc__list-wrapper {
  list-style: none !important;
  margin: 0;
  padding: 0;
  counter-reset: toc;
  border-top: 1px solid #d9d9d9;
}

.twf-art-aside .elementor-toc__list-item {
  counter-increment: toc;
  margin: 0;
  border-bottom: 1px solid #d9d9d9;
}

.twf-art-aside .elementor-toc__list-item::marker {
  content: none;
}

.twf-art-aside .elementor-toc__list-item-text-wrapper {
  display: flex;
  gap: 12px;
  padding: 10px 0;
}

/* Numerazione 01, 02, 03… */
.twf-art-aside .elementor-toc__list-item-text-wrapper::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 15px;
  color: #9a9a9a;
  font-variant-numeric: tabular-nums;
}

.twf-art-aside .elementor-toc__list-item-text-wrapper > i,
.twf-art-aside .elementor-toc__list-item-text-wrapper > svg {
  display: none;
}

.twf-art-aside .elementor-toc__list-item-text {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 300;
  color: #1e1e1e !important;
  text-decoration: none !important;
}

.twf-art-aside .elementor-toc__list-item-text:hover,
.twf-art-aside .elementor-toc__list-item-text.elementor-item-active {
  font-weight: 500;
}


/* =========================================================
   7. ARTICOLO BLOG – contenuto (widget Contenuto articolo)
   ========================================================= */

/* Testo */
.elementor-widget-theme-post-content {
  font-size: 20px;
  line-height: 1.65;
  font-weight: 300;
}

.elementor-widget-theme-post-content p {
  margin: 0 0 1.1em;
}

/* Primo paragrafo come attacco */
.elementor-widget-theme-post-content > p:first-child,
.elementor-widget-theme-post-content > .elementor-widget-container > p:first-child {
  font-size: 24px;
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 1.5em;
}

/* Titoli */
.elementor-widget-theme-post-content h2 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 2em 0 .6em;
  scroll-margin-top: 40px;
}

.elementor-widget-theme-post-content h3 {
  font-size: 24px;
  line-height: 1.25;
  margin: 1.8em 0 .5em;
}

.elementor-widget-theme-post-content h4 {
  font-size: 20px;
  font-weight: 500;
  margin: 1.6em 0 .4em;
}

/* Elenchi */
.elementor-widget-theme-post-content ul,
.elementor-widget-theme-post-content ol {
  margin: 0 0 1.3em;
  padding-left: 1.2em;
}

.elementor-widget-theme-post-content li {
  margin-bottom: .45em;
}

.elementor-widget-theme-post-content li::marker {
  color: #9a9a9a;
}

/* Link: colore del testo, sottolineati */
.elementor-widget-theme-post-content a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .15em;
  transition: text-decoration-color .2s ease;
}

.elementor-widget-theme-post-content a:hover,
.elementor-widget-theme-post-content a:focus-visible {
  color: inherit;
  text-decoration-thickness: 2px;
}

/* Immagini: più contenute, allineate al testo */
.elementor-widget-theme-post-content figure.wp-block-image {
  max-width: 480px;
  margin: 1.8em 0;
}

.elementor-widget-theme-post-content figure.wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Video: blocco Incorporamento YouTube di WordPress */
.elementor-widget-theme-post-content .wp-block-embed {
  max-width: 800px;
  margin: 2.2em 0;
}

/* Video: blocco HTML con classe twf-video */
.twf-video {
  aspect-ratio: 16 / 9;
  max-width: 800px;
  margin: 2em 0;
}

.twf-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Citazioni */
.elementor-widget-theme-post-content blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid #ffe600;
  font-size: 24px;
  line-height: 1.45;
  font-weight: 400;
}


/* =========================================================
   8. TABLET (≤ 1024px)
   ========================================================= */

@media (max-width: 1024px) {

  /* Articolo: indice sopra il testo, colonna unica */
  .twf-art-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .twf-art-aside {
    position: static;
  }
}


/* =========================================================
   9. SMARTPHONE (≤ 767px)
   ========================================================= */

@media (max-width: 767px) {

  /* Pulsanti CTA: domanda e invito su due righe */
  .marker-cta .cta-q {
    display: block;
  }

  /* Articolo */
  .twf-art-head {
    padding-block: 32px 24px;
  }

  .elementor-widget-theme-post-content {
    font-size: 18px;
  }

  .elementor-widget-theme-post-content > p:first-child,
  .elementor-widget-theme-post-content > .elementor-widget-container > p:first-child {
    font-size: 20px;
  }

  .elementor-widget-theme-post-content h2 {
    font-size: 26px;
  }

  .elementor-widget-theme-post-content h3 {
    font-size: 21px;
  }
}


/* =========================================================
   10. ANIMAZIONI RIDOTTE
   (per chi ha disattivato le animazioni nel sistema operativo)
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .marker-cta .elementor-button-text::after {
    transition: none;
  }
}
