/* =========================
   RESET & BASE
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f3f4f6;
  --card: #ffffff;
  --text-main: #111827;
  --text-soft: #6b7280;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --radius-card: 18px;
  --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
}

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-main);
}

/* CONTENITORE PRINCIPALE */

.app {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 16px 32px;
}

/* =========================
   HOME PAGE
   ========================= */

.home-header {
  margin-top: 8px;
  margin-bottom: 18px;
}

.home-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 6px;
}

.home-subtitle {
  font-size: 0.95rem;
  color: var(--text-soft);
  max-width: 30rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 12px 4px 10px;
}

/* GRIGLIA CARD 2 COLONNE */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* CARD HOME */

.card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 14px 10px 14px 12px;
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.card-icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.card-title {
  font-size: 0.98rem;
  font-weight: 700;
}

.card-text {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 2px;
}

/* MOBILE: UNA COLONNA SOTTO I 380PX */

@media (max-width: 380px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   HEADER PAGINE INTERNE
   (sport, ristoranti, numeri utili, ecc.)
   ========================= */

/* HEADER NUOVO */
.top-header {
    background: #0f1b33;
    padding: 22px 18px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    margin-bottom: 20px;
}

.top-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-logo {
    width: 85px;
    height: auto;
    border-radius: 12px;
}

.top-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.top-title {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 600;
}

.top-sub {
    color: #d0d7e4;
    font-size: 0.9rem;
}

.top-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.top-btn {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.top-btn.wa {
    background: #00b461;
}

.top-btn.host {
    background: #008cff;
}

/* RESPONSIVE */
@media (max-width: 430px) {
    .top-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .top-actions {
        flex-direction: row;
    }

    .top-logo {
        width: 78px;
    }
}


/* PULSANTI WHATSAPP NELLA TESTATA */

.pill-button {
  border-radius: 999px;
  padding: 6px 12px;
  border: none;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.12s ease, transform 0.12s ease,
    box-shadow 0.12s ease;
}

.pill-button.wa-navetta {
  background: #16a34a;
  color: #ecfdf5;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.35);
}

.pill-button.wa-host {
  background: #15803d;
  color: #f0fdf4;
  box-shadow: 0 4px 10px rgba(21, 128, 61, 0.3);
}

.pill-button:hover {
  transform: translateY(-1px);
}

/* TITOLO PAGINA INTERNA */

.page {
  margin-top: 4px;
}

.page-header-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.back-link {
  color: var(--accent);
  font-size: 0.85rem;
  text-decoration: none;
}

.back-link::before {
  content: "← ";
}

.page-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-left: auto;
}

.page-subtitle {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 4px 0 10px;
}

/* =========================
   BLOCCHI / LISTE INTERNE
   (ristoranti, sport, numeri utili, monumenti, ecc.)
   ========================= */

.item {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 14px 14px 12px;
  margin-bottom: 10px;
}

.item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.item-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.item-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.item-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.item-meta {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.item-text {
  font-size: 0.85rem;
  color: var(--text-main);
  margin: 4px 0 10px;
}

/* RIGHE BOTTONI SOTTO */

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* =========================
   TASTO BLU "APRI IN MAPS"
   (usalo ovunque: ristoranti, sport, monumenti, bancomat, farmacie, ecc.)
   ========================= */

.btn-primary,
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
  border: none;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease,
    box-shadow 0.12s ease;
}

.btn-primary span,
.btn span {
  font-size: 1rem;
}

.btn-primary:hover,
.btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.45);
}

/* PULSANTE SECONDARIO (ES. CHIAMA, QR, SITO) */

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

/* LISTE SEMPLICI (REGOLAMENTO, FAQ, ECC.) */

.text-block {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 14px 14px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-main);
}

.text-block h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.text-block p + p {
  margin-top: 6px;
}

.text-block ul {
  margin-top: 4px;
  padding-left: 18px;
}

.text-block li {
  margin-bottom: 3px;
}

/* QR CODE WIFI / RECENSIONI */

.qr-box {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.qr-box img {
  width: 180px;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

/* FOOTER PICCOLO */

.footer-note {
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--text-soft);
  text-align: center;
}

/* HEADER GRANDE */
.big-header {
    padding: 18px 16px !important;
}

.big-logo img {
    width: 75px !important;
    height: auto;
}

.header-text {
    margin-left: 12px;
}

.big-title {
    font-size: 22px !important;
    font-weight: 700;
}

.big-sub {
    font-size: 15px !important;
    color: #d8d8d8;
}

/* HEADER COMPATTO + LOGO GRANDE RETTANGOLARE */
.slim-header {
    padding: 10px 16px !important;
    min-height: 95px;
    display: flex;
    align-items: center;
}

/* LOGO RETTANGOLARE GRANDE */
.logo-rect img {
    width: 120px !important;   /* Aumenta o riduci se vuoi */
    height: auto;
    display: block;
}

/* Testi accanto al logo */
.header-text {
    margin-left: 16px;
}

.big-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.big-sub {
    font-size: 15px;
    color: #d3d3d3;
}

/* ----- HEADER NUOVO ----- */
.top-header {
    background: #0e1a2b;
    padding: 16px 18px;
    border-radius: 0 0 30px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    color: white;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 70px;
    height: auto;
    border-radius: 12px;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.header-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.header-sub {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 2px;
}

.header-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wa-btn {
    background: #0dbf41;
    padding: 6px 14px;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
}

/* Immagini grandi per la pagina Monumenti */
.item-photo img,
.monumento-img {
  width: 100%;
  height: 230px;        /* aumenta/diminuisci se le vuoi ancora più grandi */
  border-radius: 18px;
  object-fit: cover;
  display: block;
  margin-bottom: 12px;
}

.top-actions {
    display: none !important;
}

.back-link {
    display: none !important;
}

.no-smoke-clip {
  font-size: 42px;
  text-align: center;
  margin-bottom: 8px;
  color: #d9534f; /* rosso elegante */
}

.bottom-host-info {
  text-align: center;
  font-size: 15px;
  margin-top: 25px;
  margin-bottom: 10px;
  opacity: 0.8;
  font-weight: 600;
}

.bottom-host-info a {
  color: #25d366;
  text-decoration: none;
}

.bottom-host-info a:hover {
  text-decoration: underline;
}

.btn-wa-footer {
  display: block;
  width: fit-content;
  margin: 30px auto 10px auto;
  background: #25D366;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: 0.2s ease-in-out;
}

.btn-wa-footer:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}


