/* ============================================================
   TILEOR — landing 2026
   Caricato dal tema TILEor 2026 (non serve più il CSS aggiuntivo).
   Tutte le regole sono limitate ai contenitori .tl e .tlh.
   ============================================================ */

/* La hero usa lo stesso carattere della landing e va a tutta larghezza */
.tlh {
  --tlh-font: "Inter Tight", system-ui, sans-serif;
  width: 100vw; left: 50%; margin-left: -50vw;
}

.tl {
  --tl-ground: #ECEBE7;
  --tl-ground-2: #E2E0DA;
  --tl-ink: #141414;
  --tl-body: #2E2D2A;
  --tl-muted: #5A5852;
  --tl-line: #CFCCC4;
  --tl-accent: #7A5C24;
  --tl-dark: #141414;
  --tl-dark-line: #3A3936;
  --tl-dark-muted: #A9A6A0;
  --tl-gold: #C9A66B;
  font-family: "Inter Tight", system-ui, -apple-system, sans-serif;
  color: var(--tl-ink);
  background: var(--tl-ground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
.tl *, .tl *::before, .tl *::after { box-sizing: border-box; }
.tl h2, .tl h3, .tl p, .tl ol, .tl ul { margin: 0; padding: 0; }
.tl ol, .tl ul { list-style: none; }
.tl a { color: inherit; }
.tl svg { flex: none; }

/* Larghezza piena anche dentro un tema a colonna stretta */
.tl-full {
  width: 100vw; position: relative; left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
}
.tl-wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.tl-mono { font-family: "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .05em; text-transform: uppercase; }
.tl-section { padding: 128px 0; }
.tl-head { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: baseline; margin-bottom: 56px; }
.tl-kicker { flex: 0 1 240px; font-size: 13px; color: var(--tl-accent); }
.tl-h2 {
  flex: 999 1 560px; font-size: clamp(34px, 4.4vw, 60px); font-weight: 400;
  line-height: 1.06; letter-spacing: -.035em; color: inherit;
}

/* Numeri */
.tl-stats { border-top: 1px solid var(--tl-line); border-bottom: 1px solid var(--tl-line); }
.tl-stats .tl-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tl-stat { padding: 40px 24px; border-right: 1px solid var(--tl-line); }
.tl-stat:first-child { padding-left: 0; }
.tl-stat:last-child { border-right: 0; }
.tl-stat b { display: block; font-size: 64px; font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.tl-stat span { display: block; font-size: 12px; color: var(--tl-muted); margin-top: 14px; }

/* Studio */
.tl-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; font-size: 18px; line-height: 1.6; color: var(--tl-body); }
.tl-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 72px; border-top: 1px solid var(--tl-ink); }
.tl-channel { padding: 24px 24px 0 0; }
.tl-channel small { font-size: 12px; color: var(--tl-muted); }
.tl-channel h3 { font-size: 24px; font-weight: 400; letter-spacing: -.02em; margin-top: 10px; color: inherit; }
.tl-channel p { font-size: 15px; color: var(--tl-muted); margin-top: 8px; }
.tl-studio-body { flex: 999 1 560px; min-width: 0; }
.tl-studio-body .tl-h2 { max-width: 960px; margin-bottom: 56px; }

/* Metodo */
.tl-metodo { background: var(--tl-ground-2); }
.tl-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 3px; background: var(--tl-line); padding: 3px; }
.tl-step { background: var(--tl-ground); padding: 36px 28px 44px; min-height: 260px; display: flex; flex-direction: column; gap: 16px; }
.tl-step small { font-size: 12px; color: var(--tl-muted); }
.tl-step h3 { font-size: 28px; font-weight: 400; letter-spacing: -.02em; color: inherit; }
.tl-step p { font-size: 16px; line-height: 1.55; color: var(--tl-body); }

/* Mandanti */
.tl-brands { border-bottom: 1px solid var(--tl-line); }
.tl-brand {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px; padding: 28px 0;
  border-top: 1px solid var(--tl-line); text-decoration: none; color: var(--tl-ink);
  transition: padding .25s ease, background .25s ease;
}
.tl-brand:hover, .tl-brand:focus-visible { padding-left: 16px; background: #E4E2DC; color: var(--tl-ink); }
.tl-brand-n { flex: 0 0 56px; font-size: 12px; color: var(--tl-muted); }
.tl-brand-name { flex: 1 1 360px; font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -.03em; line-height: 1.1; }
.tl-brand-cat { flex: 1 1 260px; font-size: 16px; color: var(--tl-muted); }
.tl-brand svg { transition: transform .25s ease; }
.tl-brand:hover svg { transform: translate(4px, -4px); }

/* Sezioni scure */
.tl-dark { background: var(--tl-dark); color: var(--tl-ground); }
.tl-dark .tl-kicker { color: var(--tl-gold); }
.tl-regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 3px; background: var(--tl-dark-line); padding: 3px; margin-top: 16px; }
.tl-region { background: var(--tl-dark); padding: 40px 32px; }
.tl-region h3 { font-size: 32px; font-weight: 400; letter-spacing: -.02em; color: inherit; }
.tl-region p { font-size: 13px; color: var(--tl-dark-muted); margin-top: 24px; line-height: 2; }

/* Instagram */
.tl-ig-head { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }
.tl-ig-head .tl-h2 { margin-top: 20px; }
.tl-ig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 3px; }
.tl-ig-tile { display: block; aspect-ratio: 1 / 1; position: relative; overflow: hidden; }
.tl-ig-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-ig-tile::after {
  content: ""; position: absolute; inset: 0; background: rgba(20,20,20,.5); opacity: 0; transition: opacity .2s;
}
.tl-ig-tile:hover::after { opacity: 1; }

/* Texture provvisorie dei riquadri Instagram (finché non si mettono le foto) */
.tl-tex-marmo { background-color: #E6E3DD; background-image: linear-gradient(115deg, transparent 46%, rgba(110,104,94,.38) 46.6%, transparent 47.8%), linear-gradient(142deg, transparent 61%, rgba(110,104,94,.22) 61.4%, transparent 62.3%); }
.tl-tex-legno { background-color: #9C7652; background-image: repeating-linear-gradient(90deg, rgba(40,24,10,.10) 0 1px, transparent 1px 7px, rgba(255,240,220,.06) 7px 9px, transparent 9px 19px); }
.tl-tex-pietra { background-color: #8C8880; background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1.6px), radial-gradient(rgba(0,0,0,.12) 1px, transparent 1.6px); background-size: 7px 7px, 11px 11px; }
.tl-tex-grafite { background-color: #2A2927; background-image: linear-gradient(125deg, transparent 40%, rgba(255,255,255,.09) 40.4%, transparent 41.4%); }
.tl-tex-terrazzo { background-color: #D8D3C8; background-image: radial-gradient(#7C756A 1.7px, transparent 2.2px), radial-gradient(#A9875F 1.3px, transparent 1.8px); background-size: 23px 19px, 17px 29px; }
.tl-tex-cemento { background-color: #B6B3AC; background-image: radial-gradient(circle at 28% 38%, rgba(255,255,255,.16), transparent 42%); }

/* Pulsanti */
.tl-btn {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 28px;
  font-size: 15px; font-weight: 500; text-decoration: none; border: 1px solid var(--tl-ink);
  background: transparent; color: var(--tl-ink); cursor: pointer; font-family: inherit; transition: background .2s, color .2s;
}
.tl-btn:hover { background: var(--tl-ink); color: var(--tl-ground); }

/* Contatti */
.tl-contact { padding-bottom: 0; }
.tl-contact-grid { display: flex; flex-wrap: wrap; gap: 72px; }
.tl-contact-info { flex: 1 1 380px; min-width: 0; }
.tl-contact-info .tl-kicker { display: block; }
.tl-contact-info h2 { font-size: clamp(40px, 5.4vw, 76px); font-weight: 400; letter-spacing: -.04em; line-height: 1; margin-top: 20px; color: inherit; }
.tl-contact-info > p { font-size: 18px; line-height: 1.6; color: #C4C1BB; margin-top: 32px; max-width: 440px; }
.tl-contact-list { margin-top: 56px; display: flex; flex-direction: column; gap: 28px; }
.tl-contact-list small { display: block; font-size: 12px; color: var(--tl-dark-muted); }
.tl-contact-list a { color: var(--tl-ground); font-size: 26px; text-decoration: none; letter-spacing: -.01em; display: inline-block; padding: 6px 0; }
.tl-contact-list a:hover { color: var(--tl-gold); }
.tl-contact-list address { font-style: normal; font-size: 18px; line-height: 1.55; margin-top: 6px; }
.tl-form { flex: 1.4 1 520px; min-width: 0; }

/* Modulo Contact Form 7 dentro .tl-form */
.tl-form .wpcf7 form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.tl-form .wpcf7 form > p, .tl-form .tl-f { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.tl-form .tl-f-wide, .tl-form .tl-f-end, .tl-form .wpcf7-response-output { grid-column: 1 / -1; }
.tl-form label { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--tl-dark-muted); }
.tl-form input[type="text"], .tl-form input[type="email"], .tl-form input[type="tel"], .tl-form select, .tl-form textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--tl-ground); background: transparent;
  border: 0; border-bottom: 1px solid #55534F; border-radius: 0; padding: 12px 0; min-height: 44px; outline: none; box-shadow: none;
}
.tl-form select option { color: var(--tl-ink); }
.tl-form input:focus, .tl-form select:focus, .tl-form textarea:focus { border-bottom-color: var(--tl-gold); }
.tl-form ::placeholder { color: #7D7A74; }
.tl-form .wpcf7-acceptance label, .tl-form .wpcf7-acceptance .wpcf7-list-item-label {
  font-family: inherit; text-transform: none; letter-spacing: 0; font-size: 14px; line-height: 1.5; color: #C4C1BB;
}
.tl-form .wpcf7-list-item { margin: 0; }
.tl-form .wpcf7-acceptance input { width: 20px; height: 20px; accent-color: var(--tl-gold); margin: 0 10px 0 0; vertical-align: middle; }
.tl-form .tl-f-end { display: flex; flex-direction: row; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.tl-form input[type="submit"] {
  min-height: 52px; padding: 0 32px; border: 0; background: var(--tl-ground); color: var(--tl-ink);
  font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; border-radius: 0;
}
.tl-form input[type="submit"]:hover { background: #fff; }
.tl-form .wpcf7-not-valid-tip { color: #F0A58E; font-size: 13px; margin-top: 6px; }
.tl-form .wpcf7-response-output { margin: 0 !important; padding: 14px 16px !important; border: 1px solid var(--tl-dark-line) !important; color: var(--tl-ground); }
.tl-form .wpcf7-spinner { margin: 0 12px; }

.tl-footer { margin-top: 128px; border-top: 1px solid var(--tl-dark-line); padding: 32px 0 40px; display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; }
.tl-footer-logo {
  display: block; width: 182px; height: 48px;
  background: url("logo-light.svg") left center / contain no-repeat;
  font-size: 0; color: transparent; overflow: hidden; /* il testo resta per gli screen reader */
}
.tl-footer-logo b, .tl-footer-logo span { font-size: 1px; }
.tl-footer small { font-size: 11px; color: var(--tl-dark-muted); }
.tl-footer nav { display: flex; gap: 24px; align-items: center; }
.tl-footer nav a { color: #C4C1BB; font-size: 11px; padding: 12px 0; display: inline-flex; }
.tl-footer nav a:hover { color: var(--tl-ground); }

.tl a:focus-visible, .tl input:focus-visible, .tl select:focus-visible, .tl textarea:focus-visible { outline: 2px solid var(--tl-gold); outline-offset: 3px; }

@media (max-width: 640px) {
  .tl-wrap { padding: 0 16px; }
  .tl-section { padding: 88px 0; }
  .tl-stat { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--tl-line); }
  .tl-stat:last-child { border-bottom: 0; }
  .tl-contact-list a { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .tl-brand, .tl-brand svg, .tl-ig-tile::after { transition: none; }
}

/* 1.3 — foto dalle mandanti ([tileor_foto]) */
.tl-photos { padding: 0 0 128px; }
.tl-brand .tlf--marchio { margin-left: auto; }
.tl-brand .tlf--marchio .tlf-tile img { filter: saturate(.85); transition: filter .3s, transform 1.2s; }
.tl-brand:hover .tlf--marchio .tlf-tile img { filter: none; }
.tl-ig-grid-real { margin-top: 0; }
@media (max-width: 760px) { .tl-photos { padding-bottom: 80px; } .tl-brand .tlf--marchio { margin-left: 0; } }
