/* Pagina iniziale: solo gli stili propri della home. Si carica dopo site.css (che resta il sistema di base). */

/* ===== Prima schermata: pannello app (#scarica) con il telefono disegnato ===== */
.home-hero { margin-top: 12px; }
.home-app {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center;
  padding: 56px 56px 48px;
}
.home-app h1 { font-size: 54px; font-weight: 700; line-height: 1.12; max-width: 17ch; }
.home-app h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--gold) 62%, var(--gold) 92%, transparent 92%); }
.home-app .app-sub { margin-top: 20px; font-size: 22px; line-height: 1.55; max-width: 34em; }
.home-app .stores { margin-top: 28px; gap: 14px; }
.home-app .store img { height: 72px; }
.home-app .free { font-size: 18px; }
.home-app .qr { max-width: 560px; }
.home-app .trust { max-width: 620px; }

.home-app-phone { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.home-app-phone .phone { width: 300px; padding: 12px; border-radius: 48px; }
.home-app-phone .phone::before { top: 22px; width: 72px; height: 7px; margin-left: -36px; }
.home-app-phone .screen { border-radius: 38px; }
.home-app-phone .scr-top { padding: 42px 16px 14px; }
.home-app-phone .scr-top img { width: 170px; }
.home-app-phone .scr-title { font-size: 17px; padding: 14px 14px 10px; }
.home-app-phone .scr-ev { grid-template-columns: 46px 1fr; gap: 10px; margin: 0 12px 8px; padding: 9px 10px; border-radius: 14px; }
.home-app-phone .scr-ev .d { font-size: 18px; border-radius: 9px; padding: 6px 0 5px; }
.home-app-phone .scr-ev .d small { font-size: 11px; margin-top: 2px; }
.home-app-phone .scr-ev b { font-size: 14.5px; }
.home-app-phone .scr-ev span { font-size: 13px; }
.phone-tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: var(--pill);
  background: #fff; border: 2px solid var(--panel-line); font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--ink);
}
.phone-tag .ic { color: var(--navy-2); }

/* ===== Blocchi generati: eventi in evidenza e città ===== */
.home-events, .home-towns { padding-top: 88px; }
.home-events-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 28px;
}
.home-events-head .section-title { margin-bottom: 0; }
.home-events-head .sub { margin-top: 10px; font-size: 20px; max-width: 58ch; }
.home-events-head .btn { flex: none; }
.home-events .ev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.town-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; }
.town-chips a {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 22px; border-radius: var(--pill);
  background: #fff; border: 2px solid var(--line); color: var(--ink); text-decoration: none;
  font-family: var(--font-head); font-weight: 500; font-size: 18px; line-height: 1.2;
  transition: border-color .15s ease, background-color .15s ease;
}
.town-chips a:hover { border-color: var(--steel); background: var(--bg-soft); }

/* ===== Come funziona ===== */
.home-how { margin-top: 88px; padding: 72px 0 80px; background: var(--bg-soft); }
.home-how .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.home-how .steps li {
  display: flex; flex-direction: column; gap: 14px; padding: 28px; background: #fff; border-radius: var(--radius);
  border: 2px solid var(--line);
}
.home-how .steps li::before { width: 56px; height: 56px; font-size: 26px; }
.home-how .steps b { font-size: 23px; margin-top: 0; }
.home-how .steps span { font-size: 19px; margin-top: 6px; }

/* ===== Cosa trovi nell'app ===== */
.home-feats { padding-top: 88px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feat { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feat-main { grid-column: span 2; background: var(--gold-soft); border-color: #f3d27a; }
.feat-main .kinds li { border-color: #f3d27a; }
.feat-ic {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--panel); color: var(--navy-2); font-size: 24px;
}
.feat-main .feat-ic { background: #fff; }
.feat h3 { margin-top: 16px; font-size: 24px; font-weight: 700; }
.feat p { margin-top: 8px; color: var(--ink-2); }
.zones { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.zones li { padding: 4px 14px; border-radius: var(--pill); background: var(--bg-soft); font-size: 17px; color: var(--ink); }

/* ===== Compagnia (vantaggio secondario): foto delle uscite ===== */
.home .company { margin-top: 88px; }
.outings-t { margin-top: 64px; font-size: 26px; font-weight: 700; }
.outings { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 20px 0 0; padding: 0; }
.outings li { background: #fff; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--line); }
.outings img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.outings span { display: block; padding: 14px 18px 16px; font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.3; }

/* ===== Video (si caricano da YouTube solo al click, vedi main.js) ===== */
.home-videos { padding-top: 88px; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; display: block; border-radius: var(--radius); }
.video-play img { width: 100%; height: 100%; object-fit: cover; }
.video-play .play {
  position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold); color: var(--navy); font-size: 36px;
  box-shadow: 0 12px 30px -8px rgba(13, 22, 36, .55); transition: transform .15s ease;
}
.video-play:hover .play { transform: scale(1.06); }
.video h3 { margin-top: 14px; font-size: 22px; font-weight: 600; }
.video-note { margin-top: 18px; font-size: 18px; color: var(--ink-2); }

/* ===== Tablet ===== */
@media (max-width: 1080px) {
  .home-app { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .home-app h1 { max-width: 20ch; }
  .home-events .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-how .steps { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .outings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Telefono ===== */
@media (max-width: 760px) {
  .home-hero { margin-top: 4px; }
  .home-app { padding: 28px 20px 32px; gap: 32px; }
  .home-app h1 { font-size: 34px; line-height: 1.18; }
  .home-app .app-sub { font-size: 19px; margin-top: 14px; }
  .home-app .stores { margin-top: 22px; }
  .home-app .store img { height: 58px; }
  .home-app-phone .phone { width: 260px; }
  .home-app-phone .scr-ev:nth-child(n+8) { display: none; }
  .phone-tag { font-size: 17px; }

  .home-events, .home-towns, .home-feats, .home-videos { padding-top: 64px; }
  .home-events-head { margin-bottom: 22px; }
  .home-events-head .sub { font-size: 18px; }
  .home-events-head .btn { width: 100%; }
  .home-events .ev-grid { grid-template-columns: 1fr; }
  .town-chips { gap: 10px; }
  .town-chips a { padding: 0 18px; }

  .home-how { margin-top: 64px; padding: 56px 0; }
  .home-how .steps li { padding: 22px 20px; flex-direction: row; align-items: flex-start; }
  .home-how .steps li::before { flex: none; width: 48px; height: 48px; font-size: 22px; }
  .home-how .steps b { font-size: 20px; margin-top: 8px; }
  .home-how .steps span { font-size: 18px; }

  .feat-grid { grid-template-columns: 1fr; gap: 16px; }
  .feat-main { grid-column: auto; }
  .feat { padding: 22px 20px; }
  .feat h3 { font-size: 22px; }

  .home .company { margin-top: 64px; }
  .company .row .btn { width: 100%; }
  .outings-t { margin-top: 48px; font-size: 23px; }
  .outings { gap: 12px; }
  .outings span { padding: 10px 12px 12px; font-size: 17px; }

  .video-grid { grid-template-columns: 1fr; gap: 28px; }
  .video-play .play { width: 72px; height: 72px; margin: -36px 0 0 -36px; font-size: 30px; }
  .video h3 { font-size: 20px; }
}
