/* Dora Travels — Strumenti (partner di viaggio affiliati) — brand blu, foglio dedicato */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/Manrope.woff2") format("woff2");
}
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --purple: #0189D4;
  --purple-dark: #004CA0;
  --purple-soft: #0175C2;
  --accent: #FE8502;
  --ink: #1E1B2E;
  --muted: #6B6680;
  --card: #FFFFFF;
  --line: rgba(1, 137, 212, 0.14);
  --bg-soft: #F3F8FC;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 12% -8%, #E7EDFF 0%, transparent 55%),
    radial-gradient(900px 600px at 112% 4%, #E4F1FB 0%, transparent 52%),
    linear-gradient(165deg, #FBFAFF 0%, #F3F0FB 100%);
  min-height: 100dvh;
  padding: 0 0 40px;
}
a { color: inherit; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* --- Header --- */
.tl-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; max-width: 1080px; margin: 0 auto;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  font-weight: 800; font-size: 18px; letter-spacing: -0.02em;
  text-decoration: none; color: var(--ink);
}
.brand .mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(145deg, var(--purple-soft), var(--purple-dark));
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 8px 20px rgba(1, 137, 212, 0.35);
}
.brand .mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tl-header-actions { display: flex; align-items: center; gap: 10px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 13.5px; color: var(--purple-dark);
  text-decoration: none; padding: 8px 14px; border-radius: 999px;
  background: rgba(1, 137, 212, 0.09);
  transition: background .15s;
}
.back-link:hover { background: rgba(1, 137, 212, 0.16); }
.webapp-nav-link { color: #fff; background: var(--accent); }
.webapp-nav-link:hover { background: var(--accent); opacity: 0.88; }

/* --- Hero --- */
.tl-hero { text-align: center; padding: 22px 20px 10px; }
.tl-hero h1 { font-size: clamp(28px, 6vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; }
.tl-hero h1 .grad { background: linear-gradient(115deg, var(--purple) 10%, var(--accent) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tl-hero p { margin: 12px auto 0; max-width: 560px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* --- Sezioni categoria --- */
.tl-section { margin: 30px auto 0; max-width: 1080px; }
.tl-section-title {
  font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink);
  margin-bottom: 12px;
}

/* --- Griglia tile brand --- */
.p-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 10px;
}
.p-tile {
  --tc1: #3A86FF; --tc2: #1D4ED8;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  aspect-ratio: 1 / 0.95;
  padding: 12px 6px;
  border-radius: 14px;
  text-decoration: none;
  background: linear-gradient(145deg, var(--tc1), var(--tc2));
  box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.p-tile:hover, .p-tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -6px rgba(0, 0, 0, 0.34);
}
.p-tile:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Colori per categoria (CSP-safe: niente style inline, style-src 'self') */
.p-tile--hotels { --tc1: #3A86FF; --tc2: #1D4ED8; }
.p-tile--flights { --tc1: #0096C7; --tc2: #023E8A; }
.p-tile--carRental { --tc1: #06A77D; --tc2: #047857; }
.p-tile--transfers { --tc1: #118AB2; --tc2: #073B4C; }
.p-tile--tours { --tc1: #EF476F; --tc2: #C2185B; }
.p-tile--trainsBuses { --tc1: #F4A261; --tc2: #E76F51; }
.p-tile--esim { --tc1: #00B4D8; --tc2: #0077B6; }
.p-tile--insurance { --tc1: #457B9D; --tc2: #1D3557; }
.p-tile--extra { --tc1: #6D597A; --tc2: #355070; }
.p-tile--amazon { --tc1: #FF9900; --tc2: #CC7000; }
.p-tile--apps { --tc1: #8D99AE; --tc2: #4A4E69; }
.p-emoji { font-size: 22px; line-height: 1; }
.p-name {
  font-size: 11px; font-weight: 700; color: #fff; text-align: center;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* --- Nota trasparenza affiliazione --- */
.tl-disclosure {
  max-width: 1080px; margin: 34px auto 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 12.5px; line-height: 1.6; color: var(--muted);
}
.tl-disclosure b { display: block; margin-bottom: 4px; font-size: 13.5px; color: var(--ink); }

/* --- Footer --- */
footer.tl-footer { margin-top: 40px; font-size: 12.5px; color: #9D98AE; text-align: center; padding: 0 20px; }
footer.tl-footer a { color: var(--purple); font-weight: 600; text-decoration: none; }

/* --- Responsive --- */
@media (max-width: 640px) {
  .tl-header { flex-wrap: wrap; }
  .p-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
}
