/*
 * TermoIdroSulcis Child Theme — Frontend CSS
 * Versione 1.6.3
 * Foglio unico consolidato: nessun CSS storico sovrapposto.
 * Le spaziature definite da Gutenberg/Spectra restano modificabili.
 */

:root {
  --tis-blue: #052f63;
  --tis-blue-2: #0875bd;
  --tis-navy: #071f46;
  --tis-orange: #f36c21;
  --tis-green: #12a34a;
  --tis-mint: #13a574;
  --tis-sky: #eef7ff;
  --tis-soft: #f5f9fd;
  --tis-text: #3f526d;
  --tis-muted: #667892;
  --tis-border: #dce8f4;
  --tis-white: #ffffff;
  --tis-shell: 1180px;
  --tis-wide: 1280px;
  --tis-copy: 880px;
  --tis-gutter: clamp(18px, 4vw, 48px);
  --tis-section-space: clamp(58px, 7vw, 92px);
  --tis-radius: 22px;
  --tis-shadow: 0 20px 52px rgba(5, 47, 99, 0.10);
  --tis-shadow-strong: 0 26px 62px rgba(5, 47, 99, 0.16);
}

/* =========================================================
   BASE / ASTRA / GUTENBERG
========================================================= */

html { scroll-behavior: smooth; }

body.tis-site {
  margin: 0;
  color: var(--tis-navy);
  background: var(--tis-white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.tis-site *,
.tis-site *::before,
.tis-site *::after { box-sizing: border-box; }

.tis-site :where(img, svg) { max-width: 100%; }
.tis-site :where(a) { color: var(--tis-blue-2); }
.tis-site :where(a:hover) { color: var(--tis-blue); }

.tis-main { display: block; overflow: clip; }
.tis-page,
.tis-entry-content,
.tis-inner-page-shell { width: 100%; max-width: none; margin: 0; padding: 0; }

.tis-inner-page-shell > :where(.alignfull, .wp-block-uagb-container) {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.tis-container,
.tis-section > .uagb-container-inner-blocks-wrap {
  width: min(var(--tis-shell), calc(100% - (var(--tis-gutter) * 2)));
  max-width: var(--tis-shell);
  margin-inline: auto;
}

.tis-section {
  position: relative;
  width: 100%;
  padding-block: var(--tis-section-space);
}

.tis-section--soft { background: linear-gradient(180deg, #f4f9ff 0%, #fbfdff 100%); }
.tis-section-contained { width: 100%; }

.tis-site :where(h1, h2, h3, h4) {
  color: var(--tis-navy);
  font-weight: 850;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.tis-site :where(p, li) {
  color: var(--tis-text);
  overflow-wrap: break-word;
}

.tis-site :where(h1, h2, h3, p, ul, ol, figure) { max-width: 100%; }

.tis-kicker,
.tis-section-kicker {
  margin: 0 0 10px;
  color: var(--tis-blue-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.tis-section-title {
  width: min(100%, var(--tis-copy));
  margin: 0 auto clamp(32px, 4vw, 50px);
  text-align: center;
}

.tis-section-title > :where(h1, h2, h3, p) { margin-inline: auto; }

.tis-section-title :where(h1, h2) {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.06;
}

.tis-section-title > p:not(.tis-section-kicker) {
  width: min(100%, 760px);
  margin-top: 0;
  margin-bottom: 0;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
}

/* =========================================================
   HEADER E NAVIGAZIONE
========================================================= */

.tis-topbar {
  color: #fff;
  background: linear-gradient(90deg, #052d60, #061f45);
  font-size: 13px;
}

.tis-topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.tis-topbar span { display: inline-flex; align-items: center; gap: 8px; }
.tis-topbar svg { width: 17px; height: 17px; flex: 0 0 17px; }

.tis-navwrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 8px 28px rgba(5, 47, 99, 0.08);
}

.admin-bar .tis-navwrap { top: 32px; }

.tis-navwrap__inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.tis-logo { flex: 0 0 auto; min-width: 0; }

.tis-brand,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tis-blue);
  text-decoration: none;
}

.custom-logo { width: auto; max-width: 290px; max-height: 64px; }

.tis-brand__mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 50px;
  color: var(--tis-blue);
  background: #f2f8fe;
  border: 2px solid #dcecff;
  border-radius: 14px;
}

.tis-brand__mark svg { width: 27px; height: 27px; }
.tis-brand__text { min-width: 0; }
.tis-brand__text strong { display: block; color: var(--tis-blue); font-size: 20px; line-height: 1; }
.tis-brand__text small { display: block; margin-top: 4px; color: var(--tis-orange); font-size: 12px; font-weight: 800; }

.tis-main-nav { flex: 1 1 auto; min-width: 0; }
.tis-menu { display: flex; align-items: center; justify-content: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.tis-menu > li { position: relative; margin: 0; }

.tis-menu a {
  min-height: 86px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  color: var(--tis-navy);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.tis-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 19px;
  height: 3px;
  background: var(--tis-orange);
  border-radius: 999px;
  transition: right 0.2s ease;
}

.tis-menu > li:hover > a::after,
.tis-menu > .current-menu-item > a::after,
.tis-menu > .current-menu-ancestor > a::after { right: 0; }

.tis-menu-caret { font-size: 15px; line-height: 1; transform: translateY(-1px); }

.tis-menu .sub-menu {
  min-width: 270px;
  margin: 0;
  padding: 10px;
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  z-index: 20;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  background: #fff;
  border: 1px solid var(--tis-border);
  border-radius: 16px;
  box-shadow: var(--tis-shadow-strong);
  transition: 0.18s ease;
}

.tis-menu li:hover > .sub-menu,
.tis-menu .is-submenu-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.tis-menu .sub-menu a {
  min-height: 0;
  width: 100%;
  padding: 10px 12px;
  color: var(--tis-navy);
  white-space: normal;
  border-radius: 10px;
}

.tis-menu .sub-menu a:hover { color: var(--tis-blue); background: #eef7ff; }

.tis-header-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }

.tis-phone-link {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--tis-blue);
  font-weight: 900;
  text-decoration: none;
}

.tis-phone-link svg { width: 30px; height: 30px; color: var(--tis-blue-2); }
.tis-phone-link strong { display: block; line-height: 1.1; white-space: nowrap; }
.tis-phone-link small { display: block; margin-top: 3px; color: var(--tis-muted); font-size: 12px; font-weight: 700; }

.tis-menu-toggle {
  width: 46px;
  height: 42px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  background: #f2f8fe;
  border: 1px solid var(--tis-border);
  border-radius: 12px;
}

.tis-menu-toggle span { width: 21px; height: 2px; background: var(--tis-blue); border-radius: 999px; transition: 0.2s ease; }
.tis-menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.tis-menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.tis-menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   PULSANTI
========================================================= */

.tis-btn,
.wp-block-button.tis-btn--primary > .wp-block-button__link,
.wp-block-button.tis-btn--outline > .wp-block-button__link,
.wp-block-button.tis-btn--wa > .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  max-width: 100%;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  box-shadow: 0 12px 26px rgba(5, 47, 99, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tis-btn:hover,
.wp-block-button > .wp-block-button__link:hover { transform: translateY(-2px); }

.tis-btn--primary,
.wp-block-button.tis-btn--primary > .wp-block-button__link {
  color: #fff;
  background: linear-gradient(135deg, var(--tis-blue), #075da9);
}

.tis-btn--outline,
.wp-block-button.tis-btn--outline > .wp-block-button__link {
  color: var(--tis-blue);
  background: #fff;
  border-color: #9bc4ed;
}

.tis-btn--wa,
.wp-block-button.tis-btn--wa > .wp-block-button__link {
  color: #fff;
  background: linear-gradient(135deg, #18bd4b, #0b9230);
}

.tis-button-row,
.wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* =========================================================
   HOME — HERO
========================================================= */

.tis-hero {
  min-height: 620px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, #fff 0%, #fff 38%, rgba(255,255,255,0.93) 51%, rgba(255,255,255,0.52) 67%, rgba(255,255,255,0.06) 100%),
    var(--tis-hero-bg, url("../img/hero-mezzi.webp"));
  background-size: cover;
  background-position: center right;
}

.tis-hero__content { width: min(100%, 650px); padding-block: 88px; }
.tis-hero .tis-kicker { margin-bottom: 13px; }

.tis-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(43px, 5vw, 72px);
  line-height: 0.99;
}

.tis-hero h1 mark { color: var(--tis-orange); background: transparent; }
.tis-hero__content > p:not(.tis-kicker) { width: min(100%, 570px); margin: 0 0 28px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; }

.tis-hero__badges { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 32px; }
.tis-hero__badges span { display: inline-flex; align-items: center; gap: 8px; color: var(--tis-blue); font-size: 13px; font-weight: 800; }
.tis-hero__badges svg { width: 21px; height: 21px; color: var(--tis-blue-2); }

.tis-cert-card {
  position: absolute;
  right: clamp(34px, 5vw, 86px);
  bottom: clamp(84px, 10vh, 116px);
  width: min(420px, calc(100% - 68px));
  max-width: none;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px 24px 16px 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(242,248,255,0.96));
  border: 1px solid rgba(8,117,189,0.24);
  border-left: 5px solid var(--tis-blue-2);
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(4,35,74,0.18);
  backdrop-filter: blur(10px);
}

.tis-cert-card__icon { width: 56px; height: 56px; display: grid; place-items: center; color: #fff; background: var(--tis-blue-2); border-radius: 14px; }
.tis-cert-card__icon svg { width: 29px; height: 29px; }
.tis-cert-card strong { display: block; color: var(--tis-blue); font-size: 17px; line-height: 1.2; }
.tis-cert-card span { display: block; color: var(--tis-muted); font-size: 13px; line-height: 1.35; }

/* =========================================================
   HOME — SERVIZI / CHI SIAMO / NUMERI / CERTIFICAZIONI
========================================================= */

.tis-services-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.tis-service-card {
  --card-color: var(--tis-blue-2);
  min-width: 0;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 14px 18px 22px;
  color: var(--tis-navy);
  background: #fff;
  border: 1px solid var(--tis-border);
  border-radius: 22px;
  box-shadow: var(--tis-shadow);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tis-service-card:hover { transform: translateY(-5px); box-shadow: var(--tis-shadow-strong); }

.tis-service-card__image {
  width: calc(100% + 36px);
  height: 170px;
  margin: -14px -18px 20px;
  display: block;
  overflow: hidden;
  background: #e9f3fb;
}

.tis-service-card__image img { width: 100%; height: 100%; display: block; object-fit: cover; }

.tis-service-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-top: -45px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  color: #fff;
  background: var(--card-color);
  border: 4px solid #fff;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(5,47,99,0.18);
}

.tis-service-card__icon svg { width: 23px; height: 23px; }
.tis-service-card :where(h3) { margin: 0 0 11px; font-size: 21px; line-height: 1.15; }
.tis-service-card :where(p) { margin: 0 0 16px; color: var(--tis-text); font-size: 14px; line-height: 1.6; }
.tis-service-card .tis-arrow { margin-top: auto; color: var(--card-color); font-size: 25px; font-weight: 900; }

.tis-about-grid { display: grid; grid-template-columns: 1.05fr 1fr 0.72fr; gap: 34px; align-items: center; }

.tis-photo-card { min-width: 0; position: relative; }
.tis-photo-card > img { width: 100%; height: 520px; display: block; object-fit: cover; border: 3px solid #fff; border-radius: 26px; box-shadow: var(--tis-shadow-strong); }

.tis-year-badge {
  min-width: 132px;
  position: absolute;
  right: -18px;
  bottom: 24px;
  padding: 16px 18px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, var(--tis-orange), #d94f0c);
  border: 4px solid #fff;
  border-radius: 18px;
  box-shadow: var(--tis-shadow);
}

.tis-year-badge span { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.tis-year-badge strong { display: block; font-size: 32px; line-height: 1; }

.tis-about-copy :where(h2) { margin: 0 0 18px; font-size: clamp(34px, 4vw, 54px); line-height: 1.05; }
.tis-about-copy :where(p:not(.tis-section-kicker)) { margin: 0 0 17px; }

.tis-checklist { display: grid; gap: 14px; }
.tis-checklist > p { min-width: 0; display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: start; margin: 0; padding: 16px; background: #f6fbff; border: 1px solid var(--tis-border); border-radius: 16px; }
.tis-checklist svg { width: 28px; height: 28px; color: var(--tis-green); }
.tis-checklist strong { color: var(--tis-blue); }

.tis-stats { padding-block: 28px; background: linear-gradient(90deg, #052f63, #0a5f9b); }
.tis-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tis-stat { display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; padding: 18px; color: #fff; border: 1px solid rgba(255,255,255,0.16); border-radius: 18px; background: rgba(255,255,255,0.06); }
.tis-stat svg { width: 34px; height: 34px; flex: 0 0 34px; }
.tis-stat strong { display: block; color: #fff; font-size: 26px; line-height: 1; }
.tis-stat span { display: block; margin-top: 4px; color: rgba(255,255,255,0.78); font-size: 13px; line-height: 1.3; }

.tis-cert-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }

.tis-cert-box {
  min-width: 0;
  padding: 28px;
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--tis-border);
  border-radius: 22px;
  box-shadow: var(--tis-shadow);
}

.tis-cert-box::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--tis-blue-2); }
.tis-cert-box :where(h3) { margin: 17px 0 10px; font-size: 21px; line-height: 1.15; }
.tis-cert-box :where(p) { margin: 0; font-size: 14px; line-height: 1.62; }

.tis-cert-box__logo,
.tis-cert-logo-wrap {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #f7fbff;
  border: 1px solid #e7eff7;
  border-radius: 16px;
}

.tis-cert-box__logo img,
.tis-cert-logo-wrap img { width: auto; max-width: 100%; height: 72px; object-fit: contain; }
.tis-cert-box__text-logo,
.tis-cert-logo-wrap--text { color: var(--tis-blue); font-size: 30px; font-weight: 950; letter-spacing: 0.03em; }
.tis-cert-box--fgas::before { background: var(--tis-green); }
.tis-cert-box--cepas::before { background: #9a657a; }
.tis-cert-box--accredia::before { background: #c9292f; }
.tis-cert-box--fsc::before { background: #1270aa; }


/* Home e pagina Servizi condividono lo stesso Design 1 e la stessa larghezza. */
.tis-services-d1-section { overflow: hidden; background: linear-gradient(180deg, #f4f9fd 0%, #ffffff 100%); }
.tis-services-d1-section .tis-section-title { margin-bottom: 38px; }
.tis-services-d1-section > :where(.tis-container, .uagb-container-inner-blocks-wrap) {
  width: min(var(--tis-wide), calc(100% - (var(--tis-gutter) * 2)));
  max-width: var(--tis-wide);
  margin-inline: auto;
}

/* Home: certificazioni con il carattere grafico della versione precedente. */
.tis-cert-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(18,163,74,0.10), transparent 22%),
    radial-gradient(circle at 92% 88%, rgba(8,117,189,0.10), transparent 25%),
    linear-gradient(180deg, #f4f9ff 0%, #ffffff 100%);
}
.tis-cert-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.tis-cert-grid--home .tis-cert-box {
  --cert-tone: var(--tis-blue-2);
  --cert-blob: rgba(8,117,189,0.13);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 25px 23px 27px;
  isolation: isolate;
  background: linear-gradient(145deg, rgba(255,255,255,0.98), #f8fcff);
  border: 1px solid rgba(8,117,189,0.20);
  border-radius: 24px;
  box-shadow: 0 22px 58px rgba(5,47,99,0.11);
}
.tis-cert-grid--home .tis-cert-box::before { width: 6px; z-index: 2; background: var(--cert-tone); }
.tis-cert-grid--home .tis-cert-box::after { content: ""; width: 170px; height: 170px; position: absolute; right: -82px; top: -82px; z-index: -1; background: var(--cert-blob); border-radius: 50%; }
.tis-cert-grid--home .tis-cert-box--fgas { --cert-tone: #12a34a; --cert-blob: rgba(18,163,74,0.13); }
.tis-cert-grid--home .tis-cert-box--cepas { --cert-tone: #9a657a; --cert-blob: rgba(154,101,122,0.13); }
.tis-cert-grid--home .tis-cert-box--accredia { --cert-tone: #c9292f; --cert-blob: rgba(201,41,47,0.12); }
.tis-cert-grid--home .tis-cert-box--fsc { --cert-tone: #1270aa; --cert-blob: rgba(18,112,170,0.13); }
.tis-cert-grid--home .tis-cert-box__logo,
.tis-cert-grid--home .tis-cert-box__text-logo { min-height: 98px; margin: 0 0 4px; background: rgba(255,255,255,0.88); border: 1px solid rgba(8,117,189,0.14); border-radius: 18px; }
.tis-cert-grid--home .tis-cert-box__logo img { height: 74px; }
.tis-cert-grid--home .tis-cert-box__text-logo { font-size: clamp(30px, 3vw, 42px); }
.tis-cert-grid--home .tis-cert-box h3 { margin: 17px 0 10px; color: var(--tis-blue); font-size: 19px; }
.tis-cert-grid--home .tis-cert-box p { margin: 0; color: var(--tis-text); font-size: 14px; line-height: 1.6; }

/* =========================================================
   PAGINE INTERNE — HERO E SEZIONI
========================================================= */

.tis-page-hero {
  padding-block: clamp(54px, 6vw, 82px);
  background:
    radial-gradient(circle at 88% 15%, rgba(8,117,189,0.08), transparent 28%),
    linear-gradient(135deg, #fff 0%, #f2f8fd 100%);
  border-bottom: 1px solid var(--tis-border);
}

.tis-page-hero .tis-container { display: flex; flex-direction: column; justify-content: center; }
.tis-page-hero .tis-kicker { margin-bottom: 8px; }
.tis-page-hero h1 { width: min(100%, 900px); margin: 0 0 12px; font-size: clamp(38px, 5vw, 62px); line-height: 1.02; }
.tis-page-hero p { width: min(100%, 780px); margin: 0; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; }

.tis-section--intro {
  padding-block: clamp(52px, 6vw, 76px);
  background: #fff;
  border-bottom: 1px solid var(--tis-border);
}

.tis-section--intro .tis-section-title { margin-bottom: 0; }

.tis-section--intro.tis-about-hero {
  background:
    radial-gradient(circle at 88% 18%, rgba(209,154,39,0.24) 0 13%, transparent 14%),
    radial-gradient(circle at 8% 90%, rgba(8,117,189,0.08) 0 12%, transparent 13%),
    linear-gradient(135deg, #fffaf0 0%, #f7edd7 54%, #efd9ae 100%);
  border-color: rgba(209,154,39,0.26);
}

.tis-section--intro.tis-about-hero .tis-section-title,
.tis-services-d1-intro .tis-section-title { position: relative; padding-inline: 36px; }

.tis-section--intro.tis-about-hero .tis-section-title::before,
.tis-services-d1-intro .tis-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 72px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d19a27, #f3c965);
}

/* Allineamento unico per colonne Gutenberg */
.tis-site .wp-block-columns.tis-two-col,
.tis-site .wp-block-columns.tis-three-col,
.tis-site .wp-block-columns.tis-four-col,
.tis-site .wp-block-columns.tis-cert-grid--page {
  align-items: stretch;
  gap: clamp(22px, 3vw, 34px);
  margin-top: 0;
  margin-bottom: 0;
}

.tis-site .wp-block-columns.tis-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tis-site .wp-block-columns.tis-three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tis-site .wp-block-columns.tis-four-col { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tis-site .wp-block-columns.tis-two-col > .wp-block-column,
.tis-site .wp-block-columns.tis-three-col > .wp-block-column,
.tis-site .wp-block-columns.tis-four-col > .wp-block-column,
.tis-site .wp-block-columns.tis-cert-grid--page > .wp-block-column { min-width: 0; margin: 0; }

.tis-site .wp-block-columns.tis-two-col--visual { align-items: center; }

.tis-content-card {
  height: 100%;
  min-width: 0;
  padding: clamp(26px, 3vw, 38px);
  background: #fff;
  border: 1px solid var(--tis-border);
  border-radius: 22px;
  box-shadow: var(--tis-shadow);
}

.tis-content-card :where(h2) { margin: 0 0 16px; font-size: clamp(28px, 3vw, 42px); line-height: 1.08; }
.tis-content-card :where(h3) { margin: 0 0 12px; font-size: 23px; line-height: 1.15; }
.tis-content-card :where(p) { margin: 0 0 16px; }
.tis-content-card :where(p:last-child, ul:last-child, figure:last-child) { margin-bottom: 0; }
.tis-content-card--soft { background: linear-gradient(145deg, #f8fcff, #eef7ff); }
.tis-content-card--blue { color: #fff; background: linear-gradient(145deg, #052f63, #0875bd); border-color: transparent; }
.tis-content-card--blue :where(h2,h3,p,li,a) { color: #fff; }
.tis-content-card--strong { border-top: 5px solid var(--tis-blue-2); }

.tis-check-list { margin: 20px 0; padding: 0; display: grid; gap: 11px; list-style: none; }
.tis-check-list li { position: relative; margin: 0; padding-left: 27px; }
.tis-check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--tis-green); font-weight: 950; }
.tis-content-card--blue .tis-check-list li::before { color: #a9f3c2; }

.tis-premium-card { border-top: 5px solid var(--tis-blue-2); }
.tis-four-col--proof .tis-mini-proof { height: 100%; }

.tis-mini-proof {
  min-width: 0;
  height: 100%;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--tis-border);
  border-radius: 20px;
  box-shadow: var(--tis-shadow);
}

.tis-mini-proof :where(h3) { margin: 0 0 10px; font-size: 25px; }
.tis-mini-proof :where(p) { margin: 0; font-size: 14.5px; }

/* =========================================================
   PAGINA SERVIZI — DESIGN 1
========================================================= */

.tis-services-d1-intro {
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 25%, rgba(79,168,225,0.19) 0 118px, transparent 120px),
    radial-gradient(circle at 7% 82%, rgba(19,165,116,0.10) 0 95px, transparent 97px),
    linear-gradient(135deg, #f7fbff 0%, #edf7ff 54%, #e6f3ff 100%);
  border-color: #d7e8f6;
}

.tis-services-d1-intro .tis-section-title { width: min(100%, 940px); margin-bottom: 0; }
.tis-services-d1-intro .tis-section-title::before { background: linear-gradient(180deg, var(--tis-blue-2), var(--tis-mint)); }
.tis-services-d1-intro .tis-section-title :where(h2) { width: min(100%, 900px); }
.tis-services-d1-intro .tis-section-title > p:last-child { width: min(100%, 760px); }

.tis-services-d1-section { padding-block: clamp(42px, 5vw, 68px); }

.tis-services-d1-grid {
  width: 100%;
  max-width: var(--tis-wide);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 26px;
  margin: 0 auto;
}

.tis-service-d1-card {
  --d1-tone: var(--tis-blue-2);
  --d1-soft: #eaf5ff;
  flex: 0 1 calc((100% - 52px) / 3);
  width: calc((100% - 52px) / 3);
  min-width: 300px;
  max-width: 410px;
  min-height: 250px;
  display: grid;
  grid-template-columns: minmax(122px, 38%) minmax(0, 62%);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--tis-border);
  border-radius: 18px;
  box-shadow: var(--tis-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tis-service-d1-card:hover { transform: translateY(-5px); border-color: var(--d1-tone); box-shadow: var(--tis-shadow-strong); }
.tis-service-d1-card--green { --d1-tone: var(--tis-green); --d1-soft: #eaf8ef; }
.tis-service-d1-card--orange { --d1-tone: var(--tis-orange); --d1-soft: #fff1e8; }
.tis-service-d1-card--blue { --d1-tone: var(--tis-blue-2); --d1-soft: #eaf5ff; }

.tis-service-d1-card__image,
.tis-service-d1-card__image.wp-block-image {
  width: 100%;
  height: 100%;
  min-height: 250px;
  margin: 0;
  overflow: hidden;
  background: var(--d1-soft);
  border-radius: 17px 0 0 17px;
}

.tis-service-d1-card__image img { width: 100%; height: 100%; min-height: 250px; display: block; object-fit: cover; object-position: center; border-radius: 0; }

.tis-service-d1-card__content {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 20px;
}

.tis-service-d1-card__heading { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 11px; align-items: center; margin: 0 0 14px; }

.tis-service-d1-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--d1-tone);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(5,47,99,0.16);
}

.tis-service-d1-card__icon svg { width: 23px; height: 23px; }
.tis-service-d1-card__heading h3 { min-width: 0; margin: 0; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.12; letter-spacing: -0.025em; }
.tis-service-d1-card__text { margin: 0 0 18px; font-size: 14.5px; line-height: 1.56; }
.tis-service-d1-card__cta { margin: auto 0 0; line-height: 1.2; }
.tis-service-d1-card__link { display: inline-flex; align-items: center; gap: 5px; color: var(--d1-tone); font-size: 13.5px; font-weight: 900; text-decoration: none; }
.tis-service-d1-card__link:hover { color: var(--tis-blue); text-decoration: underline; text-underline-offset: 4px; }

/* =========================================================
   PAGINE SINGOLI SERVIZI / CHI SIAMO
========================================================= */

.tis-service-photo-stack,
.tis-about-photo-stack { min-width: 0; position: relative; padding: 0 48px 48px 0; }

.tis-service-main-image,
.tis-about-main-photo,
.tis-about-side-photo,
.tis-cert-image,
.tis-img-premium,
.tis-img-polaroid { margin: 0; }

.tis-service-main-image,
.tis-service-main-image.wp-block-image,
.tis-about-main-photo,
.tis-about-main-photo.wp-block-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
  border: 3px solid var(--tis-blue-2);
  outline: 4px solid #fff;
  border-radius: 26px;
  box-shadow: var(--tis-shadow-strong);
}

.tis-service-main-image img,
.tis-about-main-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }

.tis-service-secondary-image,
.tis-service-secondary-image.wp-block-image,
.tis-about-side-photo--offset,
.tis-about-side-photo--offset.wp-block-image {
  width: min(52%, 310px);
  height: 210px;
  position: absolute;
  right: 0;
  bottom: 0;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 20px;
  box-shadow: var(--tis-shadow-strong);
}

.tis-service-secondary-image img,
.tis-about-side-photo--offset img { width: 100%; height: 100%; display: block; object-fit: cover; }

.tis-about-visual-card { min-width: 0; padding: 16px; background: #fff; border: 1px solid var(--tis-border); border-radius: 26px; box-shadow: var(--tis-shadow); }
.tis-about-visual-card .tis-about-main-photo { height: 420px; border: 0; outline: 0; box-shadow: none; border-radius: 18px; }
.tis-photo-caption { margin: 14px 8px 4px; font-size: 14px; }

.tis-photo-row { gap: 24px; }
.tis-img-polaroid,
.tis-img-polaroid.wp-block-image { height: 310px; padding: 10px; overflow: hidden; background: #fff; border: 1px solid var(--tis-border); border-radius: 18px; box-shadow: var(--tis-shadow); }
.tis-img-polaroid img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 12px; }

/* =========================================================
   CERTIFICAZIONI
========================================================= */

.tis-cert-premium-section { overflow: hidden; background: linear-gradient(180deg, #f4f9ff, #fff); }
.tis-cert-grid--page { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tis-cert-grid--page .tis-cert-box { height: 100%; min-height: 360px; padding: clamp(28px, 3vw, 38px); }
.tis-cert-grid--page .tis-cert-logo-wrap { min-height: 130px; }
.tis-cert-grid--page .tis-cert-logo-wrap img { height: 105px; }
.tis-cert-grid--page .tis-cert-logo-wrap--text { font-size: clamp(36px, 5vw, 58px); }
.tis-cert-image,
.tis-cert-image.wp-block-group { min-width: 0; height: 100%; overflow: hidden; border-radius: 24px; box-shadow: var(--tis-shadow-strong); }
.tis-cert-image .wp-block-image { height: 100%; margin: 0; }
.tis-cert-image img { width: 100%; height: 100%; min-height: 430px; display: block; object-fit: cover; }

/* =========================================================
   GALLERY
========================================================= */

.tis-gallery-photo-section { background: linear-gradient(180deg, #f4f9ff, #fff); }
.tis-gallery-photo-section > .uagb-container-inner-blocks-wrap { width: min(1240px, calc(100% - (var(--tis-gutter) * 2))); max-width: 1240px; }

.tis-gallery-photo-grid {
  width: 100%;
  max-width: 1240px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0 auto;
}

.tis-gallery-photo,
.tis-gallery-photo.wp-block-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 3px solid var(--tis-blue-2);
  outline: 4px solid #fff;
  border-radius: 24px;
  box-shadow: var(--tis-shadow-strong);
}

.tis-gallery-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; border-radius: 19px; transition: transform 0.45s ease; }
.tis-gallery-photo:hover img { transform: scale(1.045); }

/* =========================================================
   CONTATTI / FAQ
========================================================= */

.tis-contact-action-card { border-top: 5px solid var(--tis-orange); }

.tis-faq-wrap { width: min(100%, 920px); margin-inline: auto; }
.tis-faq-wrap .tis-section-title { margin-bottom: 30px; }

.tis-faq-item {
  margin: 0 0 12px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--tis-border);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(5,47,99,0.05);
}

.tis-faq-item summary { color: var(--tis-blue); font-weight: 850; cursor: pointer; }
.tis-faq-item p { margin: 13px 0 0; }

/* =========================================================
   CTA FINALE
========================================================= */

.tis-cta-final {
  min-height: 410px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(62px, 7vw, 92px) 48px;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(4,35,77,0.98) 0%, rgba(5,71,125,0.94) 54%, rgba(5,91,151,0.70) 100%),
    var(--tis-cta-bg, url("../img/faro-calasetta-panoramico.webp"));
  background-size: cover;
  background-position: center;
}

.tis-cta-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) repeat(3, minmax(175px, 0.72fr)) minmax(210px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.tis-cta-panel > div:first-child { align-self: center; padding-right: 12px; }
.tis-cta-panel :where(h2) { margin: 0 0 14px; color: #fff; font-size: clamp(34px, 4vw, 54px); line-height: 1.03; }
.tis-cta-panel > div:first-child > p { margin: 0; color: rgba(255,255,255,0.82); }

.tis-contact-card {
  min-width: 0;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  color: #fff;
  background: #062e68;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  box-shadow: 0 22px 46px rgba(0,0,0,0.18);
  text-decoration: none;
}

.tis-contact-card svg { width: 32px; height: 32px; margin-bottom: 16px; }
.tis-contact-card strong { display: block; color: inherit; font-size: 20px; line-height: 1.25; }
.tis-contact-card small { display: block; margin-top: 10px; color: rgba(255,255,255,0.76); font-size: 13px; line-height: 1.45; }
.tis-contact-card--wa { background: linear-gradient(135deg, #18b947, #0d9632); }
.tis-contact-card--map { color: var(--tis-blue); background: #fff; border-color: #fff; }
.tis-contact-card--map small { color: #425c76; }

.tis-cta-photo { min-width: 0; min-height: 190px; overflow: hidden; border: 3px solid rgba(255,255,255,0.9); border-radius: 20px; box-shadow: 0 22px 46px rgba(0,0,0,0.18); }
.tis-cta-photo img { width: 100%; height: 100%; min-height: 190px; display: block; object-fit: cover; object-position: 38% center; }

.tis-cta-signature { width: max-content; max-width: 100%; margin: 28px auto 0; color: #fff; font-family: "Segoe Script", "Brush Script MT", cursive; font-size: clamp(24px, 3vw, 38px); line-height: 1.1; text-align: center; text-shadow: 0 4px 16px rgba(0,0,0,0.32); }
.tis-cta-signature span { color: #ffd27c; }

/* =========================================================
   CTA LATERALI
========================================================= */

.tis-floating-wa { display: none; }

.tis-side-cta {
  position: fixed;
  right: 18px;
  top: 50%;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
}

.tis-side-cta__item {
  width: 58px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  overflow: hidden;
  padding: 14px 16px;
  color: #fff;
  background: #062e68;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(5,47,99,0.20);
  text-decoration: none;
  transition: width 0.22s ease, transform 0.22s ease;
}

.tis-side-cta__item:hover { width: 142px; transform: translateX(-3px); }
.tis-side-cta__item--wa { background: #15ad3f; }
.tis-side-cta__item--map { color: var(--tis-blue); background: #fff; border: 1px solid var(--tis-border); }
.tis-side-cta__icon { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 28px; }
.tis-side-cta__icon svg { width: 27px; height: 27px; }
.tis-side-cta strong { opacity: 0; color: inherit; font-size: 13px; white-space: nowrap; transition: opacity 0.18s ease; }
.tis-side-cta__item:hover strong { opacity: 1; }

/* =========================================================
   FOOTER — v1.6.2
========================================================= */

.tis-footer {
  position: relative;
  overflow: hidden;
  padding: 72px 0 0;
  color: #fff;
  background:
    radial-gradient(circle at 10% 15%, rgba(8,117,189,0.30), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(18,163,74,0.16), transparent 24%),
    linear-gradient(135deg, #03162f 0%, #062a59 58%, #063d70 100%);
}

.tis-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--tis-orange), var(--tis-blue-2), var(--tis-green)); }
.tis-footer__glow { position: absolute; width: 420px; height: 420px; right: -170px; top: -230px; border: 1px solid rgba(255,255,255,0.10); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,0.025), 0 0 0 140px rgba(255,255,255,0.018); pointer-events: none; }

.tis-footer__main { position: relative; z-index: 1; display: grid; grid-template-columns: 1.22fr 1fr 0.86fr; gap: clamp(30px, 5vw, 72px); align-items: start; padding-bottom: 54px; }
.tis-footer__brand { min-width: 0; }
.tis-footer .tis-brand,
.tis-footer .custom-logo-link { width: fit-content; color: #fff; }
.tis-footer .custom-logo { width: auto; max-width: 225px; max-height: 80px; }
.tis-footer .tis-brand__mark { color: #fff; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }
.tis-footer .tis-brand__text strong { color: #fff; }
.tis-footer__tagline { width: min(100%, 440px); margin: 22px 0 12px; color: rgba(255,255,255,0.90); font-size: 15px; font-weight: 650; line-height: 1.7; }
.tis-footer__description { width: min(100%, 440px); margin: 0 0 24px; color: rgba(255,255,255,0.66); font-size: 13.5px; line-height: 1.72; }
.tis-footer__eyebrow { margin: 0 0 18px; color: #71c9ff; font-size: 12px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }

.tis-footer__social { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; }
.tis-footer__social a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 15px; color: #fff; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; font-size: 12px; font-weight: 800; text-decoration: none; transition: transform 0.2s ease, background 0.2s ease; }
.tis-footer__social a:hover { transform: translateY(-2px); background: rgba(255,255,255,0.13); }

.tis-footer__contact-card { display: grid; gap: 10px; padding: 25px; background: rgba(255,255,255,0.075); border: 1px solid rgba(255,255,255,0.14); border-radius: 24px; box-shadow: 0 22px 55px rgba(0,0,0,0.18); backdrop-filter: blur(9px); }
.tis-footer__contact-row { min-width: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; padding: 12px 13px; color: #fff; background: rgba(255,255,255,0.055); border-radius: 15px; text-decoration: none; }
.tis-footer__contact-row > span { grid-row: 1 / 3; width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--tis-blue-2), #07508b); border-radius: 13px; }
.tis-footer__contact-row:nth-of-type(2) > span { background: linear-gradient(135deg, #19b94a, #0a8b2e); }
.tis-footer__contact-row:nth-of-type(3) > span { color: var(--tis-blue); background: #fff; }
.tis-footer__contact-row svg { width: 23px; height: 23px; }
.tis-footer__contact-row strong { align-self: end; color: #fff; font-size: 14px; line-height: 1.2; }
.tis-footer__contact-row small { align-self: start; color: rgba(255,255,255,0.62); font-size: 11px; }

.tis-footer__nav { min-width: 0; }
.tis-footer__nav-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.tis-footer__nav-grid a { position: relative; padding: 9px 0 9px 14px; color: rgba(255,255,255,0.84); font-size: 14px; font-weight: 700; text-decoration: none; }
.tis-footer__nav-grid a::before { content: ""; width: 5px; height: 5px; position: absolute; left: 0; top: 50%; background: var(--tis-orange); border-radius: 50%; transform: translateY(-50%); }
.tis-footer__nav-grid a:hover { color: #fff; }

.tis-footer__bottom { position: relative; z-index: 1; min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; border-top: 1px solid rgba(255,255,255,0.13); }
.tis-footer__bottom > p { margin: 0; color: rgba(255,255,255,0.58); font-size: 12px; line-height: 1.55; }
.tis-footer__links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 14px; }
.tis-footer__links a { color: rgba(255,255,255,0.82); font-size: 12px; font-weight: 700; text-decoration: none; }
.tis-footer__links a:hover { color: #fff; }
.tis-footer__credit { margin: 0; }
.tis-footer__credit a { color: #fff; text-decoration: underline; text-decoration-color: var(--tis-orange); text-underline-offset: 4px; }

/* =========================================================
   ANIMAZIONI LEGGERE
========================================================= */

.tis-content-card,
.tis-service-card,
.tis-service-d1-card,
.tis-cert-box,
.tis-photo-card,
.tis-inner-page-shell .wp-block-image,
.tis-inner-page-shell .wp-block-column {
  opacity: 1;
  transform: none;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1180px) {
  .tis-header-actions { display: none; }
  .tis-services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tis-cert-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tis-cta-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tis-cta-panel > div:first-child { grid-column: 1 / -1; }
  .tis-cta-photo { min-height: 240px; }
}

@media (max-width: 1050px) {
  .admin-bar .tis-navwrap { top: 46px; }
  .tis-topbar__inner { justify-content: center; flex-wrap: wrap; padding-block: 7px; }
  .tis-menu-toggle { display: flex; margin-left: auto; }
  .tis-navwrap__inner { min-height: 76px; }
  .tis-main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 18px 34px rgba(5,47,99,0.12); }
  .tis-main-nav.is-open { display: block; }
  .tis-menu { display: block; padding: 10px var(--tis-gutter) 16px; }
  .tis-menu a { width: 100%; min-height: 46px; white-space: normal; }
  .tis-menu > li > a::after { display: none; }
  .tis-menu .sub-menu { min-width: 0; width: 100%; position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 3px solid #dcecff; border-radius: 0; padding: 0 0 0 12px; }
  .tis-menu .is-submenu-open > .sub-menu { display: block; transform: none; }
  .tis-about-grid { grid-template-columns: 1fr 1fr; }
  .tis-checklist { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tis-cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tis-site .wp-block-columns.tis-four-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tis-service-d1-card { flex-basis: calc((100% - 26px) / 2); width: calc((100% - 26px) / 2); max-width: 520px; }
  .tis-gallery-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tis-footer__main { grid-template-columns: 1fr 1fr; }
  .tis-footer__brand { grid-column: 1 / -1; }
  .tis-footer__bottom { align-items: flex-start; flex-direction: column; }
  .tis-footer__links { justify-content: flex-start; }
}

@media (max-width: 780px) {
  :root { --tis-gutter: 20px; }
  .tis-topbar span:nth-child(3) { display: none; }
  .tis-hero { min-height: auto; background-image: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.84)), var(--tis-hero-bg, url("../img/hero-mezzi.webp")); background-position: center; }
  .tis-hero__content { padding-block: 72px; }
  .tis-cert-card { position: static; margin: 0 var(--tis-gutter) 28px auto; }
  .tis-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tis-about-grid,
  .tis-site .wp-block-columns.tis-two-col { grid-template-columns: 1fr; }
  .tis-photo-card > img { height: 430px; }
  .tis-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tis-section--intro.tis-about-hero .tis-section-title,
  .tis-services-d1-intro .tis-section-title { padding-inline: 0; }
  .tis-section--intro.tis-about-hero .tis-section-title::before,
  .tis-services-d1-intro .tis-section-title::before { display: none; }
  .tis-service-d1-card { flex: 1 1 100%; width: 100%; max-width: 580px; }
  .tis-service-photo-stack,
  .tis-about-photo-stack { padding: 0 38px 38px 0; }
  .tis-service-main-image,
  .tis-about-main-photo { height: 430px; }
  .tis-site .wp-block-columns.tis-cert-grid--page { grid-template-columns: 1fr; }
  .tis-site .wp-block-columns.tis-three-col { grid-template-columns: 1fr; }
  .tis-img-polaroid,
  .tis-img-polaroid.wp-block-image { height: 340px; }
  .tis-side-cta { right: 10px; }
  .tis-side-cta__item { width: 52px; min-height: 52px; padding: 12px; border-radius: 16px; }
  .tis-side-cta__item:hover { width: 52px; transform: none; }
  .tis-side-cta strong { display: none; }
}

@media (max-width: 560px) {
  :root { --tis-gutter: 15px; }
  .tis-topbar { display: none; }
  .custom-logo { max-width: 220px; max-height: 54px; }
  .tis-brand__mark { width: 44px; height: 44px; flex-basis: 44px; }
  .tis-brand__text strong { font-size: 16px; }
  .tis-brand__text small { font-size: 10px; }
  .tis-hero h1 { font-size: clamp(39px, 12vw, 52px); }
  .tis-button-row,
  .wp-block-buttons { align-items: stretch; }
  .tis-button-row > *,
  .wp-block-buttons > .wp-block-button { width: 100%; }
  .tis-btn,
  .wp-block-button > .wp-block-button__link { width: 100%; }
  .tis-cert-card { max-width: calc(100% - 30px); margin-inline: 15px; }
  .tis-services-grid { grid-template-columns: 1fr; }
  .tis-cert-grid--home { grid-template-columns: 1fr; }
  .tis-service-card { min-height: 0; }
  .tis-service-card__image { height: 210px; }
  .tis-about-grid { gap: 26px; }
  .tis-photo-card > img { height: 360px; }
  .tis-year-badge { right: 12px; }
  .tis-checklist { grid-template-columns: 1fr; }
  .tis-stat { justify-content: flex-start; }
  .tis-cert-grid { grid-template-columns: 1fr; }
  .tis-site .wp-block-columns.tis-four-col { grid-template-columns: 1fr; }
  .tis-service-d1-card { display: flex; flex-direction: column; min-height: 0; }
  .tis-service-d1-card__image,
  .tis-service-d1-card__image.wp-block-image { height: 200px; min-height: 200px; border-radius: 17px 17px 0 0; }
  .tis-service-d1-card__image img { height: 200px; min-height: 200px; }
  .tis-service-d1-card__content { padding: 24px 22px; }
  .tis-service-photo-stack,
  .tis-about-photo-stack { padding: 0; }
  .tis-service-main-image,
  .tis-about-main-photo { height: 330px; }
  .tis-service-secondary-image,
  .tis-service-secondary-image.wp-block-image,
  .tis-about-side-photo--offset,
  .tis-about-side-photo--offset.wp-block-image { width: 46%; height: 145px; right: 12px; bottom: 12px; }
  .tis-gallery-photo-grid { grid-template-columns: 1fr; gap: 24px; }
  .tis-gallery-photo,
  .tis-gallery-photo.wp-block-image { border-radius: 20px; }
  .tis-cta-panel { grid-template-columns: 1fr; }
  .tis-cta-panel > div:first-child { grid-column: auto; }
  .tis-contact-card { min-height: 160px; }
  .tis-cta-photo { min-height: 230px; }
  .tis-footer { padding: 54px 0 90px; }
  .tis-footer__main { grid-template-columns: 1fr; gap: 30px; padding-bottom: 36px; }
  .tis-footer__brand { grid-column: auto; }
  .tis-footer__contact-card { padding: 19px; }
  .tis-footer__nav-grid { grid-template-columns: 1fr 1fr; }
  .tis-footer__bottom { min-height: 0; }
}
