/* ============================================================
   TECNOUDITO — design system "Boutique del Benessere"
   Navy / Terracotta / Avorio · accessibilità over-65
   ============================================================ */

@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-v12-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-v12-latin-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/atkinson-hyperlegible-v12-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/playfair-display-v40-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/playfair-display-v40-latin-700.woff2') format('woff2');
}

:root {
  --tu-navy-900: #081B3A;
  --tu-navy-700: #1E3A62;
  --tu-blue-400: #5F7FA3;
  --tu-terra: #F0801E;
  --tu-terra-deep: #F0801E;
  --tu-terra-darker: #D96E12;
  --tu-terra-soft: rgba(240, 128, 30, 0.13);
  --tu-grad: linear-gradient(115deg, #F0801E 0%, #F0801E 100%);
  --tu-ivory: #F3E8DC;
  --tu-ivory-bright: #FAF3EA;
  --tu-paper: #FFFBF5;
  --tu-wa: #128C7E;
  --tu-serif: 'Playfair Display', Georgia, serif;
  --tu-sans: 'Atkinson Hyperlegible', 'Segoe UI', Arial, sans-serif;
  --tu-shadow-soft: 0 6px 24px rgba(8, 27, 58, 0.07);
  --tu-shadow-lift: 0 14px 38px rgba(8, 27, 58, 0.13);
  --tu-radius: 18px;
  --tu-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 24'%3E%3Cpath d='M2 12h50c4 0 4-5 8-5s4 10 8 10 4-13 8-13 4 16 8 16 4-14 8-14 4 10 8 10 4-6 8-6 4 4 8 4c4 0 6-2 10-2h52' fill='none' stroke='%23F0801E' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
  --tu-wave-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 24'%3E%3Cpath d='M2 12h50c4 0 4-5 8-5s4 10 8 10 4-13 8-13 4 16 8 16 4-14 8-14 4 10 8 10 4-6 8-6 4 4 8 4c4 0 6-2 10-2h52' fill='none' stroke='%23F0801E' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */

html { scroll-behavior: smooth; }

body {
  overflow-x: clip;
  background-color: var(--tu-ivory);
  background-image: radial-gradient(rgba(8, 27, 58, 0.025) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--tu-navy-900);
  font-family: var(--tu-sans);
  font-size: 1.1875rem;
  line-height: 1.65;
}

::selection { background: var(--tu-terra); color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--tu-serif);
  color: var(--tu-navy-900);
  line-height: 1.16;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.95rem, 3.6vw, 2.65rem); font-weight: 700; }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); font-weight: 600; }

p, li { max-width: 68ch; }

a { color: var(--tu-navy-700); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--tu-terra-deep); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--tu-terra-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

.tu-eyebrow {
  font-family: var(--tu-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tu-terra-deep);
  margin-bottom: 0.6rem;
}

/* ---------- onda sonora (firma grafica) ---------- */

.tu-divider {
  height: 24px;
  width: min(360px, 62%);
  margin: 0 auto;
  background: var(--tu-wave) center / contain no-repeat;
}

.tu-heading-wave::after {
  content: "";
  display: block;
  width: 150px;
  height: 18px;
  margin-top: 0.7rem;
  background: var(--tu-wave) left center / contain no-repeat;
}

.tu-center .tu-heading-wave::after,
.tu-heading-wave.tu-center::after { margin-inline: auto; }

.tu-on-navy .tu-heading-wave::after { background-image: var(--tu-wave-light); }

.tu-wave-svg { display: block; width: clamp(170px, 26vw, 250px); height: 26px; }
.tu-wave-svg path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s ease-out 0.2s;
}
.tu-wave-svg.in-view path { stroke-dashoffset: 0; }

/* ---------- pulsanti ---------- */

.tu-btn,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--tu-sans);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 1.05em 2em;
  border-radius: 14px;
  border: 2px solid transparent;
  background: var(--tu-terra-deep);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(240, 128, 30, 0.32);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tu-btn:hover, .wp-block-button__link:hover {
  background: var(--tu-terra-darker);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(240, 128, 30, 0.38);
}

.tu-btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--tu-navy-900);
  box-shadow: none;
}
.tu-btn--ghost:hover { background: var(--tu-navy-900); color: var(--tu-ivory); }

.tu-on-navy .tu-btn--ghost { color: var(--tu-ivory); }
.tu-on-navy .tu-btn--ghost:hover { background: var(--tu-ivory); color: var(--tu-navy-900); }

.tu-btn--xl { font-size: 1.4rem; padding: 1.15em 2.3em; }

/* ---------- hero ---------- */

.tu-hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--tu-navy-900);
}

.tu-hero__video,
.tu-hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tu-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 27, 58, 0.30) 0%, rgba(8, 27, 58, 0.42) 62%, rgba(8, 27, 58, 0.64) 100%);
}

.tu-hero__content h1 { text-shadow: 0 2px 24px rgba(8, 27, 58, 0.65), 0 1px 4px rgba(8, 27, 58, 0.5); }
.tu-hero__sub, .tu-hero__phone, .tu-hero .tu-eyebrow { text-shadow: 0 1px 14px rgba(8, 27, 58, 0.75); }

.tu-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding: clamp(5rem, 12vh, 8rem) clamp(1.25rem, 5vw, 4.5rem);
  color: var(--tu-ivory);
}

.tu-hero__content h1 {
  color: #fff;
  max-width: 15ch;
  text-wrap: balance;
}

.tu-hero__sub {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  max-width: 44ch;
  margin-top: 1.2rem;
  color: var(--tu-ivory);
}

.tu-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.2rem;
  align-items: center;
}

.tu-hero__phone {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-decoration-color: var(--tu-terra);
}

.tu-fade-up { animation: tu-fade-up 0.75s ease-out both; }
.tu-fade-up--2 { animation-delay: 0.18s; }
.tu-fade-up--3 { animation-delay: 0.36s; }
.tu-fade-up--4 { animation-delay: 0.54s; }

@keyframes tu-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ---------- sezioni ---------- */

.tu-section { padding-block: clamp(4rem, 9vw, 6.5rem); }

.tu-section--paper { background: var(--tu-ivory-bright); }

.tu-section--navy,
.tu-on-navy {
  background: var(--tu-navy-900);
  color: var(--tu-ivory);
}

.tu-on-navy h1, .tu-on-navy h2, .tu-on-navy h3, .tu-on-navy h4 { color: #fff; }
.tu-on-navy a { color: var(--tu-ivory); }
.tu-on-navy .tu-eyebrow { color: #F0801E; }

.tu-js .tu-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.tu-js .tu-reveal.in-view { opacity: 1; transform: none; }

/* ---------- card servizi ---------- */

.tu-card {
  background: var(--tu-paper);
  border: 1px solid rgba(8, 27, 58, 0.08);
  border-radius: var(--tu-radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--tu-shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.tu-card:hover { transform: translateY(-5px); box-shadow: var(--tu-shadow-lift); }

.tu-card__icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tu-terra-soft);
  color: var(--tu-terra-deep);
  font-size: 2.1rem;
  margin-bottom: 1.3rem;
}

.tu-card h3 { margin-top: 0; }

.tu-card .tu-card__link {
  display: inline-block;
  margin-top: 0.8rem;
  font-weight: 700;
  font-size: 1.1rem;
}

/* ---------- recensioni ---------- */

.tu-review {
  background: rgba(250, 243, 234, 0.06);
  border: 1px solid rgba(243, 232, 220, 0.18);
  border-radius: var(--tu-radius);
  padding: 1.8rem;
  height: 100%;
}

.tu-review__stars { color: #F0801E; font-size: 1.35rem; letter-spacing: 0.12em; margin-bottom: 0.7rem; }

.tu-review p { font-size: 1.1rem; }

.tu-review__author { font-weight: 700; margin-top: 0.9rem; color: #fff; }

/* ---------- moduli (Fluent Forms) ---------- */

.fluentform .ff-el-form-control {
  font-family: var(--tu-sans);
  font-size: 1.15rem;
  padding: 0.95em 1em;
  border: 2px solid rgba(8, 27, 58, 0.28);
  border-radius: 12px;
  background: var(--tu-paper);
  color: var(--tu-navy-900);
}

.fluentform .ff-el-form-control:focus {
  border-color: var(--tu-terra-deep);
  box-shadow: 0 0 0 3px var(--tu-terra-soft);
}

.fluentform .ff-el-input--label label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tu-navy-900);
}

.fluentform .ff-btn-submit {
  width: 100%;
  font-family: var(--tu-sans);
  font-size: 1.3rem;
  font-weight: 700;
  padding: 1em 2em;
  border-radius: 14px;
  border: none;
  background: var(--tu-terra-deep);
  color: #fff;
  box-shadow: 0 8px 22px rgba(240, 128, 30, 0.32);
  transition: background 0.2s ease;
}

.fluentform .ff-btn-submit:hover { background: var(--tu-terra-darker); }

/* ---------- header GeneratePress ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #FFFFFF;
  border-top: 4px solid var(--tu-terra);
  border-bottom: 3px dotted rgba(240, 128, 30, 0.5);
  box-shadow: 0 2px 14px rgba(8, 27, 58, 0.06);
}

.site-header .site-logo img,
.site-header .site-branding img { max-height: 100px; width: auto; display: block; }

.site-header .main-title,
.site-header .site-description { display: none; }

.site-header .inside-header { padding-block: 0.45rem; }

@media (max-width: 781px) {
  .site-header .site-logo img,
  .site-header .site-branding img { max-height: 72px; }
}

.main-navigation { background: transparent; }

.main-navigation .main-nav ul li a {
  font-family: var(--tu-sans);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--tu-navy-900);
  padding-inline: 1.1rem;
  line-height: 68px;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li a:focus-visible {
  color: var(--tu-terra-deep);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--tu-terra);
  text-underline-offset: 10px;
}

.main-navigation, .main-navigation ul ul { background: #FFFFFF; }

.main-navigation .main-nav ul ul { box-shadow: 0 14px 34px rgba(8, 27, 58, 0.16); border-radius: 0 0 12px 12px; }

.main-navigation .main-nav ul ul li a {
  line-height: 1.4;
  padding-block: 0.85rem;
}

.main-navigation .main-nav ul ul li a:hover,
.main-navigation .main-nav ul ul li a:focus-visible {
  text-decoration: none;
  background: var(--tu-terra-soft);
  color: var(--tu-terra-deep);
}

.main-navigation .menu-toggle {
  font-size: 1.1rem;
  padding: 1rem;
  background: #FFFFFF;
  color: var(--tu-navy-900);
}

.main-navigation.toggled .main-nav ul li a { line-height: 56px; }

/* ---------- footer ---------- */

.site-footer, .site-info {
  background: var(--tu-navy-900);
  color: var(--tu-ivory);
}

.site-info { padding: 1.4rem 1rem; font-size: 1rem; border-top: 3px dotted rgba(240, 128, 30, 0.55); }
.site-info a { color: var(--tu-ivory); }

/* ---------- WhatsApp flottante (desktop) ---------- */

.tu-wa-float {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--tu-wa);
  color: #fff;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(8, 27, 58, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tu-wa-float:hover { transform: translateY(-3px) scale(1.03); color: #fff; box-shadow: 0 14px 34px rgba(8, 27, 58, 0.36); }

/* ---------- barra fissa mobile ---------- */

.tu-mobilebar {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 950;
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 -6px 22px rgba(8, 27, 58, 0.22);
}

.tu-mobilebar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 64px;
  font-size: 1.18rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.tu-mobilebar__call { background: var(--tu-terra-deep); }
.tu-mobilebar__wa { background: var(--tu-wa); }

@media (max-width: 781px) {
  .tu-mobilebar { display: grid; }
  .tu-wa-float { display: none; }
  body { padding-bottom: 64px; }
  .tu-hero { min-height: 86svh; }
}

/* ---------- varie ---------- */

.tu-check-list { list-style: none; margin-left: 0; padding-left: 0; }
.tu-check-list li { padding-left: 2.1rem; position: relative; margin-bottom: 0.75rem; font-size: 1.15rem; }
.tu-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--tu-terra-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5' fill='none' stroke='%23F0801E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 60% no-repeat;
}

.tu-map iframe { border-radius: var(--tu-radius); box-shadow: var(--tu-shadow-soft); width: 100%; }

/* ---------- video con audio nella sezione "Ti riconosci?" ---------- */

.tu-video-box { align-self: center; width: 100%; }

.tu-video-box video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
  border-radius: var(--tu-radius);
  box-shadow: var(--tu-shadow-soft);
  /* il file è 16:9: nel riquadro lo mostriamo ritagliato al centro, più alto; a schermo intero si vede tutto */
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tu-video-box__hint {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 1.02rem;
  opacity: 0.82;
}

.tu-map { position: relative; }

.tu-map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 1.5rem;
  background: var(--tu-paper);
  border: 2px dashed rgba(240, 128, 30, 0.5);
  border-radius: var(--tu-radius);
}

.tu-map-consent p { max-width: 34rem; margin: 0; font-size: 1.1rem; }

/* ---------- banner consenso cookie ---------- */

.tu-cookiebar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 990;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  padding: 1.1rem clamp(1rem, 4vw, 2.5rem);
  background: var(--tu-navy-900);
  color: #fff;
  box-shadow: 0 -8px 30px rgba(8, 27, 58, 0.35);
}

.tu-cookiebar[hidden] { display: none; }

.tu-cookiebar p { margin: 0; max-width: 46rem; font-size: 1.05rem; line-height: 1.5; }

.tu-cookiebar a { color: #fff; text-decoration: underline; }

.tu-cookiebar__btns { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.tu-cookiebar__btns .tu-btn { font-size: 1.05rem; padding: 0.8em 1.5em; }

.tu-cookiebar__deny { background: #fff; color: var(--tu-navy-900); }
.tu-cookiebar__deny:hover { background: var(--tu-paper); color: var(--tu-navy-900); }

@media (max-width: 781px) {
  .tu-cookiebar { bottom: 64px; }
  .tu-cookiebar__btns { width: 100%; }
  .tu-cookiebar__btns .tu-btn { flex: 1; }
}

/* ---------- mosaico foto ---------- */

.tu-collage {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tu-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--tu-shadow-soft);
  display: block;
}

.tu-collage img:first-child { grid-row: 1 / 3; min-height: 430px; }

@media (max-width: 920px) {
  .tu-collage img:first-child { min-height: 300px; }
}

.tu-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-block: 2rem;
}

.tu-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--tu-shadow-soft);
  display: block;
}

@media (max-width: 920px) {
  .tu-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- pagine interne ---------- */

.tu-page-video {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  box-shadow: var(--tu-shadow-lift);
  margin-block: 0.5rem 2.2rem;
  background: var(--tu-navy-900);
}

.tu-page-video video { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 700px) {
  .tu-page-video { aspect-ratio: 16 / 10; }
}

.entry-content .tu-photo { display: block; margin-inline: auto; }

.content-area { width: 100%; float: none; }

/* i paragrafi hanno un tetto di larghezza (68ch): nei blocchi centrati vanno ricentrati */
[style*="text-align:center"] p,
[style*="text-align: center"] p,
p[style*="text-align:center"],
p[style*="text-align: center"] { margin-inline: auto; }

/* layout a tutta larghezza: niente fasce laterali vuote (richiesta cliente) */
.site.grid-container { max-width: 100%; }
.site-header .inside-header,
.main-navigation .inside-navigation { max-width: 100%; padding-inline: clamp(1rem, 3vw, 2.5rem); }

body:not(.home) .site-main { max-width: none; margin: 0 !important; }
body:not(.home) .inside-article { padding: clamp(1.5rem, 4vw, 4rem) clamp(1.25rem, 4vw, 4.5rem) !important; }

/* colonna editoriale centrata: titolo, testo e immagini sullo stesso asse;
   il fondo bianco resta a tutta larghezza, quindi niente fasce colorate ai lati */
body:not(.home) .entry-header,
body:not(.home) .page-header,
body:not(.home) .post-navigation,
body:not(.home) .comments-area,
body:not(.home) .inside-article > .post-image,
body:not(.home) .entry-summary > *,
body:not(.home) .entry-content > * { max-width: 80rem; margin-inline: auto; }

/* dentro la colonna il testo la riempie: niente ritorni a capo anticipati
   (solo elementi annidati: i paragrafi di primo livello restano larghi come la colonna) */
body:not(.home) .entry-content > * p,
body:not(.home) .entry-content > * li,
body:not(.home) .entry-summary > * p { max-width: none; }

/* media e griglie sfondano più larghi della colonna, sempre centrati */
body:not(.home) .entry-content > .tu-team-grid,
body:not(.home) .entry-content > .tu-logo-grid,
body:not(.home) .entry-content > .tu-gallery,
body:not(.home) .entry-content > figure,
body:not(.home) .entry-content > .wp-block-image { max-width: min(1440px, 100%); }

/* il video di apertura delle pagine servizi va da bordo a bordo */
body:not(.home) .entry-content > .tu-page-video {
  max-width: none;
  width: 100vw;
  margin-inline: calc(50% - 50vw) 0;
  border-radius: 0;
  box-shadow: none;
}
/* composizione pagine interne: titoli di sezione con onda sonora */
body:not(.home) .entry-content > h2 { margin-top: 2.8rem; }
body:not(.home) .entry-content > h2::after {
  content: "";
  display: block;
  width: 130px;
  height: 16px;
  margin-top: 0.55rem;
  background: var(--tu-wave) left center / contain no-repeat;
}

/* liste con segno di spunta dentro una card, due colonne su schermo largo */
body:not(.home) .entry-content > ul.tu-check-list {
  background: #FFFBF5;
  border: 1px solid rgba(8, 27, 58, 0.09);
  border-radius: 18px;
  box-shadow: var(--tu-shadow-soft);
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.4rem, 3vw, 2.6rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2.6rem;
  margin-block: 1.8rem 2.4rem;
}
body:not(.home) .entry-content > ul.tu-check-list li { margin-bottom: 0; }
@media (max-width: 900px) {
  body:not(.home) .entry-content > ul.tu-check-list { grid-template-columns: 1fr; }
}

/* foto delle pagine: più grandi, angoli morbidi e ombra */
body:not(.home) .entry-content img.tu-photo {
  max-width: min(900px, 100%) !important;
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(8, 27, 58, 0.14);
  margin-block: 1.6rem 2.4rem;
}

/* video di apertura più imponente sugli schermi larghi */
@media (min-width: 1200px) {
  body:not(.home) .entry-content > .tu-page-video { aspect-ratio: 2 / 1; }
}

/* paragrafo con pulsante = invito finale: centrato e con aria */
body:not(.home) .entry-content > p:has(> a.tu-btn) { text-align: center; margin-top: 2.8rem; }

/* schede FAQ: lo stile vale anche fuori dalla home (pagina Domande Frequenti) */
.tu-faq details { background: #FFFBF5; border: 1px solid rgba(8, 27, 58, 0.1); border-radius: 14px; padding: 1.1rem 1.4rem; margin-bottom: 1rem; }
.tu-faq summary { font-weight: 700; font-size: 1.18rem; cursor: pointer; color: var(--tu-navy-900); }
.tu-faq details[open] summary { color: #F0801E; margin-bottom: 0.5rem; }

/* la sezione full-bleed usa margin-left negativo: non va ricentrata con auto */
body:not(.home) .entry-content > .tu-parallax { max-width: none; margin-inline: calc(50% - 50vw) 0; }

/* le immagini con larghezza fissa inline non devono sfondare gli schermi stretti */
body:not(.home) .entry-content img { height: auto; }
@media (max-width: 700px) {
  body:not(.home) .entry-content img { max-width: 100% !important; }
}

/* pagina Soluzioni per l'udito (marchi): vetrina a tutta larghezza, testi centrati */
body.page-id-50 .entry-content > .tu-gallery,
body.page-id-50 .entry-content > .tu-logo-grid { max-width: none; }
body.page-id-50 .entry-content > h2,
body.page-id-50 .entry-content > p { text-align: center; }

.page:not(.home) .entry-title {
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  margin-bottom: 0.4rem;
}

.page:not(.home) .entry-header { text-align: center; }

.page:not(.home) .entry-header::after {
  content: "";
  display: block;
  width: 150px;
  height: 18px;
  margin: 0.5rem auto 1.6rem;
  background: var(--tu-wave) center / contain no-repeat;
}

.tu-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.2rem);
  margin-block: 2rem;
}

.tu-person {
  background: var(--tu-paper);
  border: 1px solid rgba(8, 27, 58, 0.08);
  border-radius: var(--tu-radius);
  overflow: hidden;
  box-shadow: var(--tu-shadow-soft);
  text-align: center;
}

.tu-person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; display: block; }

.tu-person__figure { aspect-ratio: 4 / 5; }

.tu-person__figure img {
  aspect-ratio: auto;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  padding-top: 7%;
}

.tu-person__body { padding: 1.4rem 1.2rem 1.6rem; }

.tu-person__body h3 { margin: 0 0 0.2rem; font-size: 1.35rem; }

.tu-person__role {
  color: var(--tu-terra-deep);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tu-person__degree {
  font-style: italic;
  font-size: 0.98rem;
  color: var(--tu-navy-700);
  margin-top: 0.25rem;
}

.tu-person__body p { font-size: 1.05rem; margin-top: 0.7rem; }

.tu-logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
  margin-block: 2rem;
}

@media (max-width: 900px) { .tu-logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .tu-logo-grid { grid-template-columns: repeat(2, 1fr); } }

.tu-logo-card {
  background: #fff;
  border: 1px solid rgba(8, 27, 58, 0.08);
  border-radius: 14px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  box-shadow: var(--tu-shadow-soft);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.tu-logo-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(8, 27, 58, 0.16); }

.tu-logo-card img {
  max-height: 58px;
  max-width: 100%;
  width: auto;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.tu-logo-card:hover img { filter: none; opacity: 1; }

.tu-steps { list-style: none; margin: 2rem 0; padding: 0; counter-reset: tu-step; }

.tu-steps li {
  counter-increment: tu-step;
  position: relative;
  padding: 0 0 1.8rem 4.2rem;
  max-width: 62ch;
}

.tu-steps li::before {
  content: counter(tu-step);
  position: absolute;
  left: 0;
  top: -0.2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--tu-terra-soft);
  color: var(--tu-terra-deep);
  font-family: var(--tu-serif);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tu-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 2.9rem;
  bottom: 0.2rem;
  width: 2px;
  background: rgba(240, 128, 30, 0.4);
}

.tu-steps h4 { margin: 0 0 0.3rem; font-family: var(--tu-sans); font-size: 1.2rem; }

.tu-footer-line { display: inline-flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }

.tu-social { display: inline-flex; color: var(--tu-ivory); opacity: 0.85; }
.tu-social:hover { opacity: 1; color: #F0801E; }

@media (max-width: 920px) {
  .tu-team-grid { grid-template-columns: 1fr; }
}

/* ---------- ritratti scontornati (stile grafica coordinata) ---------- */

.tu-cutout {
  position: relative;
  overflow: hidden;
  background: radial-gradient(130% 100% at 30% 12%, #FFFFFF 0%, #F0EAE1 55%, #E3DACC 100%);
}

.tu-cutout::before {
  content: "";
  position: absolute;
  left: -25%;
  bottom: -34%;
  width: 150%;
  height: 55%;
  background: var(--tu-grad);
  border-radius: 50%;
  transform: rotate(-6deg);
}

.tu-cutout img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  filter: drop-shadow(0 10px 24px rgba(8, 27, 58, 0.18));
}

/* ---------- banda valori (dalla grafica pubblicitaria) ---------- */

.tu-band {
  background: var(--tu-grad);
  color: #fff;
  padding-block: clamp(1.6rem, 3.5vw, 2.3rem);
}

.tu-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.tu-band__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  padding-inline: 1.1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.tu-band__item:first-child { border-left: 0; }

.tu-band__icon {
  width: 56px;
  height: 56px;
  border: 2.5px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.tu-band__item h3 {
  color: #fff;
  font-family: var(--tu-sans);
  font-size: 1.02rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.15rem;
}

.tu-band__item p { color: #fff; font-size: 0.98rem; margin: 0; line-height: 1.35; }

@media (max-width: 920px) {
  .tu-band__grid { grid-template-columns: 1fr 1fr; row-gap: 1.4rem; }
  .tu-band__item:nth-child(3) { border-left: 0; }
}

@media (max-width: 560px) {
  .tu-band__grid { grid-template-columns: 1fr; row-gap: 0; }
  .tu-band__item { border-left: 0; border-top: 1px dotted rgba(255, 255, 255, 0.5); padding-block: 0.95rem; }
  .tu-band__item:first-child { border-top: 0; }
}

/* ---------- sezione con sfondo fisso (parallasse) ---------- */

.tu-parallax {
  position: relative;
  /* velatura a gradiente: piena solo sulla colonna del testo (sinistra), leggera sul resto della foto */
  background-image: linear-gradient(100deg, rgba(8, 27, 58, 0.62) 0%, rgba(8, 27, 58, 0.46) 52%, rgba(8, 27, 58, 0.30) 100%), url('/wp-content/uploads/2026/07/sfondo-team.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (max-width: 920px), (hover: none) {
  .tu-parallax { background-attachment: scroll; }
}

.tu-parallax.tu-bg-marchi {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
  margin-block: 0.5rem 2.5rem;
  background-image: linear-gradient(rgba(8, 27, 58, 0.52), rgba(8, 27, 58, 0.58)), url('/wp-content/uploads/2026/07/sfondo-marchi.webp');
}

.tu-bg-marchi > * { max-width: none; margin-inline: auto; }

.tu-parallax.tu-bg-contatti {
  /* qui il testo sta a destra: velatura piena a destra, leggera a sinistra (colonna del modulo) */
  background-image: linear-gradient(90deg, rgba(8, 27, 58, 0.34) 0%, rgba(8, 27, 58, 0.46) 48%, rgba(8, 27, 58, 0.62) 100%), url('/wp-content/uploads/2026/07/sfondo-contatti.webp');
}

/* ombra di protezione sui testi: permette la velatura leggera senza perdere leggibilità */
.tu-parallax h2, .tu-parallax h3, .tu-parallax p, .tu-parallax li, .tu-parallax .tu-eyebrow {
  text-shadow: 0 1px 3px rgba(8, 27, 58, 0.55), 0 2px 14px rgba(8, 27, 58, 0.45);
}

.tu-parallax .tu-form-card, .tu-parallax .tu-form-card * { text-shadow: none; }

@media (max-width: 781px) {
  /* su telefono le colonne si impilano: velatura uniforme */
  .tu-parallax { background-image: linear-gradient(rgba(8, 27, 58, 0.56), rgba(8, 27, 58, 0.60)), url('/wp-content/uploads/2026/07/sfondo-team.webp'); }
  .tu-parallax.tu-bg-contatti { background-image: linear-gradient(rgba(8, 27, 58, 0.56), rgba(8, 27, 58, 0.60)), url('/wp-content/uploads/2026/07/sfondo-contatti.webp'); }
}

.tu-parallax .tu-grid-2 { align-items: end; }

.tu-chisiamo-figure { margin-bottom: calc(-1 * clamp(4rem, 9vw, 6.5rem)); }

.tu-chisiamo-figure img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 32px rgba(0, 0, 0, 0.4));
}

.tu-parallax .tu-grid-2 > div:first-child { padding-bottom: clamp(0rem, 2vw, 1.5rem); }

/* ---------- virgolette decorative (dalla grafica pubblicitaria) ---------- */

.tu-quote::before {
  content: "\201C";
  display: block;
  font-family: var(--tu-serif);
  font-size: clamp(4rem, 8vw, 5.5rem);
  line-height: 0.55;
  color: var(--tu-terra);
  margin-bottom: 0.4rem;
}

.tu-on-navy .tu-quote::before { color: #F0801E; }

/* ---------- angolo arancione sul modulo contatti ---------- */

.tu-form-card { position: relative; overflow: hidden; }

.tu-form-card::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--tu-grad);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tu-fade-up, .tu-fade-up--2, .tu-fade-up--3, .tu-fade-up--4 { animation: none; }
  .tu-reveal { opacity: 1; transform: none; transition: none; }
  .tu-wave-svg path { stroke-dashoffset: 0; transition: none; }
  .tu-card, .tu-btn, .wp-block-button__link, .tu-wa-float { transition: none; }
}

/* ---------- blog Notizie: griglia stile rivista ---------- */

body:is(.blog, .archive) .site-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  max-width: 1500px;
  margin-inline: auto !important;
  padding-inline: clamp(1.25rem, 3vw, 2.5rem);
}

body:is(.blog, .archive) .tu-blog-header { grid-column: 1 / -1; text-align: center; margin-block: 0.5rem 0.4rem; }
body:is(.blog, .archive) .tu-blog-header h1 { margin-bottom: 0.4rem; }
body:is(.blog, .archive) .tu-blog-header::after {
  content: "";
  display: block;
  width: 150px;
  height: 18px;
  margin: 0.3rem auto 0;
  background: var(--tu-wave) center / contain no-repeat;
}

body:is(.blog, .archive) .site-main > article { margin: 0; }

body:is(.blog, .archive) .inside-article {
  padding: 0 0 1.5rem !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(8, 27, 58, 0.07);
  box-shadow: var(--tu-shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
body:is(.blog, .archive) .inside-article:hover { transform: translateY(-5px); box-shadow: var(--tu-shadow-lift); }

body:is(.blog, .archive) .inside-article > .post-image { order: -1; margin: 0 0 1.2rem; }
body:is(.blog, .archive) .entry-header { margin-bottom: 0.4rem; }
body:is(.blog, .archive) .entry-summary { margin-top: 0; }
body:is(.blog, .archive) .post-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }

body:is(.blog, .archive) .entry-header,
body:is(.blog, .archive) .entry-summary { padding-inline: 1.5rem; }

body:is(.blog, .archive) .entry-title { font-size: 1.45rem; line-height: 1.25; }
body:is(.blog, .archive) .entry-title a { text-decoration: none; color: var(--tu-navy-900); }
body:is(.blog, .archive) .entry-title a:hover { color: var(--tu-terra-deep); }

body:is(.blog, .archive) .entry-meta { font-size: 0.95rem; opacity: 0.75; }
body:is(.blog, .archive) .entry-summary p { font-size: 1.05rem; }
body:is(.blog, .archive) footer.entry-meta { display: none; }
body:is(.blog, .archive) .paging-navigation { grid-column: 1 / -1; }

@media (min-width: 1100px) {
  body:is(.blog, .archive) .site-main > article:first-of-type { grid-column: span 2; }
  body:is(.blog, .archive) .site-main > article:first-of-type .entry-title { font-size: 1.9rem; }
}
@media (max-width: 1100px) {
  body:is(.blog, .archive) .site-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  body:is(.blog, .archive) .site-main { grid-template-columns: 1fr; }
}
