/* Filippini Trasporti — foglio di stile principale */
:root {
  --red: #DD183B;
  --red-dark: #B31230;
  --ink: #0F172A;
  --ink-soft: #3A3A3A;
  --cream: #FFF7F4;
  --peach: #FFEDE6;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .10);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .18);
  --wrap: 1180px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); text-align: center; }
.section-sub { text-align: center; color: var(--ink-soft); margin: .6rem 0 2.2rem; }
section { padding: 72px 0; }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 8px 16px; z-index: 999;
}
.skip:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .25s, box-shadow .25s;
  background: transparent;
}
.site-header.scrolled { background: rgba(255,255,255,.96); box-shadow: 0 2px 18px rgba(15,23,42,.12); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.12rem; color: #fff; letter-spacing: -.02em; white-space: nowrap; }
.brand em { font-style: normal; color: var(--red); }
.brand img { height: 34px; width: auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.scrolled .brand { color: var(--ink); }
.main-nav { display: flex; gap: 22px; margin-left: auto; white-space: nowrap; }
.main-nav a { text-decoration: none; color: #fff; font-weight: 600; font-size: .95rem; text-shadow: 0 1px 4px rgba(0,0,0,.35); }
.scrolled .main-nav a { color: var(--ink); text-shadow: none; }
.main-nav a:hover { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; gap: 2px; background: rgba(255,255,255,.16); border-radius: 999px; padding: 3px; backdrop-filter: blur(4px); }
.scrolled .lang { background: #f1f2f6; }
.lang a { text-decoration: none; color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 8px; border-radius: 999px; }
.scrolled .lang a { color: var(--ink-soft); }
.lang a.active, .lang a:hover { background: var(--red); color: #fff; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 700; border-radius: 999px; padding: 13px 26px; font-size: .98rem;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(221,24,59,.35); }
.btn-solid:hover { background: var(--red-dark); }
.btn-ghost { border: 2px solid rgba(255,255,255,.85); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-light { background: #fff; color: var(--ink); }
.btn-wa { background: #25D366; color: #fff; }
.btn-call { padding: 9px 18px; font-size: .88rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; padding: 0; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url("../img/trasporti-ticino-lago-maggiore.jpg") center/cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,24,.55) 0%, rgba(10,12,24,.30) 45%, rgba(10,12,24,.62) 100%);
}
.hero-content { position: relative; z-index: 2; text-align: center; color: #fff; padding-top: 70px; }
.kicker {
  text-transform: uppercase; letter-spacing: .35em; font-size: .8rem; font-weight: 700;
  color: var(--peach); margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.4rem); font-weight: 800; letter-spacing: -.03em;
  text-shadow: 0 4px 24px rgba(0,0,0,.45);
}
.hero-sub { font-size: clamp(1.02rem, 2.4vw, 1.5rem); font-style: italic; margin: 1rem auto 2rem; max-width: 640px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 90px; background: linear-gradient(180deg, transparent, var(--white)); z-index: 1; }

/* ---------- Stats ---------- */
.stats { padding: 22px 0 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stat {
  text-align: center; padding: 26px 16px; border-radius: var(--radius);
  background: var(--cream); border: 1px solid var(--peach);
}
.stat strong { display: block; font-size: 1.5rem; color: var(--red); letter-spacing: -.02em; }
.stat span { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Quote ---------- */
.quote-section { text-align: center; padding-bottom: 40px; }
.quote-mark { margin: 0 auto 18px; opacity: .35; width: 37px; }
blockquote p { font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
blockquote cite { display: block; margin-top: 16px; color: var(--red); font-style: normal; font-weight: 700; }

/* ---------- Services ---------- */
.services { background: var(--cream); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card img { height: 240px; width: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 26px; }
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Offer / Why ---------- */
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.offer h2 { text-align: left; font-size: 1.6rem; margin-bottom: 1.1rem; }
.checklist { list-style: none; }
.checklist li {
  padding-left: 34px; position: relative; margin-bottom: .8rem; color: var(--ink-soft);
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff;
  font-size: .8rem; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.checklist strong { color: var(--ink); }

/* ---------- About ---------- */
.about { background: var(--ink); color: #fff; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about h2 { text-align: left; }
.about p { margin: 1rem 0 1.6rem; color: #d7dbe6; }
.about strong { color: #fff; }
.about-logo { background: #fff; padding: 14px 20px; border-radius: var(--radius); width: 280px; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ---------- Gallery ---------- */
.carousel-outer { position: relative; }
.carousel {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 2px 18px; scrollbar-width: thin;
}
.slide { flex: 0 0 auto; width: min(420px, 78vw); scroll-snap-align: center; }
.slide img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.car-btn {
  position: absolute; top: 50%; transform: translateY(-60%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1;
  box-shadow: var(--shadow); transition: background .15s;
}
.car-btn:hover { background: var(--red); color: #fff; }
.car-btn.prev { left: 8px; }
.car-btn.next { right: 8px; }

/* ---------- Contact ---------- */
.contact {
  position: relative; color: var(--ink); text-align: center;
  background: linear-gradient(rgba(255,247,244,.88), rgba(255,247,244,.92)), url("../img/contatti-montagne-ticino.jpg") center/cover no-repeat;
  padding: 96px 0;
}
.contact h2 { font-size: clamp(2rem, 5vw, 3rem); }
.contact p { max-width: 560px; margin: 1rem auto 2rem; color: var(--ink-soft); }
.contact-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 2.2rem; }
.contact .btn-light { box-shadow: var(--shadow); }
address { font-style: normal; color: var(--ink-soft); line-height: 1.9; }
address a { color: var(--red); font-weight: 700; text-decoration: none; }
address a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #aeb4c2; text-align: center; padding: 44px 0; font-size: .9rem; }
.footer-inner img { margin: 0 auto 14px; background: #fff; border-radius: 10px; padding: 8px 14px; }
.footer-inner p { margin: .3rem 0; }
.footer-langs a { color: #d7dbe6; text-decoration: none; margin: 0 4px; }
.footer-langs a:hover { color: #fff; text-decoration: underline; }
.footer-privacy { color: #8a91a3; text-decoration: none; font-size: .82rem; }
.footer-privacy:hover { color: #fff; text-decoration: underline; }

/* ---------- Banner cookie ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  display: none; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  max-width: 720px; margin: 0 auto; padding: 16px 22px;
  background: var(--ink); color: #e6e9f2; border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(15,23,42,.4); font-size: .92rem;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; flex: 1 1 320px; }
.cookie-banner a { color: #ffd1bf; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions button {
  cursor: pointer; border-radius: 999px; padding: 9px 20px; font-weight: 700;
  font-size: .88rem; border: none; transition: transform .15s;
}
.cookie-actions button:hover { transform: translateY(-1px); }
#ck-yes { background: var(--red); color: #fff; }
#ck-no { background: transparent; color: #cfd4e2; border: 1px solid #4a5268; }

/* ---------- Pagina privacy ---------- */
.privacy-main { padding: 60px 22px 70px; }
.privacy-main h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1.4rem; }
.privacy-main h2 { text-align: left; font-size: 1.15rem; margin: 1.6rem 0 .4rem; }
.privacy-main p { color: var(--ink-soft); }
.privacy-main a { color: var(--red); }
.privacy-back { text-decoration: none; font-weight: 700; }
.privacy-page .site-footer { margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards, .stats-grid { grid-template-columns: 1fr 1fr; }
  .offer-grid, .about-grid { grid-template-columns: 1fr; }
  .card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0; padding: 10px 0 14px;
    box-shadow: 0 16px 30px rgba(15,23,42,.15);
  }
  .main-nav.open { display: flex; }
  .main-nav a { color: var(--ink) !important; text-shadow: none; padding: 12px 26px; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; background: none; border: none;
    cursor: pointer; padding: 6px;
  }
  .nav-toggle span { width: 24px; height: 3px; border-radius: 2px; background: #fff; transition: background .2s; }
  .scrolled .nav-toggle span { background: var(--ink); }
  .site-header.menu-open { background: #fff; }
  .site-header.menu-open .brand { color: var(--ink); }
  .site-header.menu-open .nav-toggle span { background: var(--ink); }
  .site-header.menu-open .lang a { color: var(--ink-soft); }
}
@media (max-width: 700px) {
  section { padding: 54px 0; }
  .btn-call span { display: none; }
  .btn-call { padding: 10px 12px; }
  .header-inner { gap: 10px; padding: 0 12px; }
  .header-actions { gap: 8px; }
  .lang a { padding: 4px 6px; font-size: .68rem; }
}
@media (max-width: 460px) {
  .brand span { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card:last-child { grid-column: auto; }
  .hero { min-height: 86vh; }
}
