/* ── INFORMAZIONI PAGE (informazioni.html) ── */

/* min-width removed – responsive layout handled in responsive.css */

/* Hero – informazioni specifico */
.hero {
  height: 90vh;
  min-height: 90vh;
  gap: var(--sp-s);
  text-align: center;
}
.hero__bg img { object-position: center 30%; }
.hero__bg::after { background: rgba(51, 46, 44, 0.50); }
.hero__content { position: relative; }
.hero__eyebrow { margin-bottom: var(--sp-s); }
.hero__title { margin-bottom: var(--sp-s); }
.hero__sub {
  font-size: 16px;
  color: var(--text-on-dark-secondary);
  line-height: 24px;
}
.hero__location-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color .2s ease;
}
.hero__location-link:hover { color: var(--text-on-dark-primary); }

/* ── CONTENT WRAPPER ── */
.content-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--sp-s);
}

/* ── SECTIONS ── */
.section {
  border-bottom: 1px solid var(--border);
  padding: var(--sp-l) 0;
  scroll-margin-top: calc(var(--navbar-height) + var(--sp-s));
}
.section:last-child { border-bottom: none; }
#contatti.section { border-bottom: 1px solid var(--border); }
.section-anchor {
  display: block;
  height: 0;
  scroll-margin-top: calc(var(--navbar-height) + var(--sp-s));
  visibility: hidden;
}
.section__header { margin-bottom: var(--sp-m); }
.section__title {
  font-family: var(--font-label);
  font-size: var(--label-l-size);
  font-weight: 600;
  line-height: var(--label-l-line-height);
  color: var(--text-primary);
  margin-bottom: var(--sp-xs);
}
.section__subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 24px;
}

/* ── COME ARRIVARE ── */
.map-img {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-s);
  overflow: hidden;
  margin-bottom: var(--sp-m);
}
.map-img img    { width: 100%; height: 100%; object-fit: cover; }
.map-img iframe { width: 100%; height: 100%; border: none; display: block; }

.transport-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-m);
}
.transport-item:last-child { margin-bottom: 0; }
.transport-item__icon { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.transport-item__title {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-primary);
}
.transport-item__desc {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
}
.transport-item__desc ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 4px;
}
.transport-item__desc li {
  margin-bottom: 2px;
  white-space: pre-line;
}

/* ── CHECK-IN GRID ── */
.checkin-grid,
.wifi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-s);
}
.checkin-grid .full-col { grid-column: 1 / -1; }

.info-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-xs);
}
.info-row__icon { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.info-row__title { font-size: 16px; line-height: 24px; color: var(--text-primary); }
.info-row__desc  { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.info-row__desc[data-rw="checkin-instructions"] { white-space: pre-line; }
.info-row__desc ul {
  padding-left: 20px;
  list-style: disc;
  margin-top: 4px;
}
.info-row__desc li { margin-bottom: 2px; }

/* Warning banner */
.warning-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-m);
  background: var(--warning-bg);
  border-radius: var(--radius-s);
  padding: var(--sp-m);
  grid-column: 1 / -1;
}
.warning-banner__icon {
  width: 48px;
  height: 48px;
  background: var(--warning-icon-bg);
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* Icona su sfondo ambra → bianca */
.warning-banner__icon img { width: 24px; height: 24px; filter: brightness(0) invert(1); }
.warning-banner__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--warning-text);
  line-height: 24px;
}
.warning-banner__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 20px;
}

/* ── REGOLE GRID ── */
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--sp-s);
  row-gap: var(--sp-s);
}
.rules-grid .info-row {
  align-items: center;
}
.rules-grid .info-row__icon {
  margin-top: 0;
}

/* ── SMALTIMENTO RIFIUTI ── */
.waste-section .section__title {
  margin-bottom: var(--sp-xs);
}
.waste-section .section__subtitle {
  margin-bottom: var(--sp-m);
}
.waste-map {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: var(--radius-s);
  background: var(--bg);
  margin-bottom: var(--sp-m);
  position: relative;
}
.waste-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.waste-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-s);
}
.waste-info {
  min-width: 0;
}
.waste-info__label {
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: var(--sp-xs);
}
.waste-info__text,
.waste-links {
  font-size: 16px;
  line-height: 24px;
  color: var(--text-primary);
}
.waste-links {
  list-style: disc;
  padding-left: 24px;
}
.waste-links a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.waste-links a:hover {
  color: var(--brand);
}

/* ── ATTIVITÀ / PLACES ── */
.sub-section { margin-bottom: var(--sp-m); }
.sub-section:last-child { margin-bottom: 0; }
.sub-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: var(--sp-s);
}

/* Food grid – 2 colonne */
.food-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xs);
}
.place-card {
  background: var(--bg);
  border-radius: var(--radius-s);
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: var(--sp-s);
  padding: var(--sp-s);
  text-decoration: none;
  color: inherit;
  transition: background .2s;
}
a.place-card:hover { background: #eee8e7; }
.place-card__body  { flex: 1; min-width: 0; }
.place-card__arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(45%) sepia(7%) saturate(519%) hue-rotate(336deg) brightness(93%) contrast(86%);
}
.place-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 24px;
}
.place-card__tag {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 20px;
}

/* Sites grid – 2 colonne */
.sites-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xs);
}
.site-card {
  background: var(--bg);
  border-radius: var(--radius-s);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  transition: background .2s;
}
a.site-card:hover { background: #eee8e7; }
.site-card__thumb {
  width: 56px;
  min-height: 56px;
  height: auto;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--brand);
}
.site-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.92) contrast(.96);
}
.site-card__thumb--fallback,
.event-card__thumb--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-card__thumb--fallback::before,
.event-card__thumb--fallback::before {
  content: attr(data-initial);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}
.site-card__body {
  flex: 1;
  min-width: 0;
  padding: var(--sp-s);
  display: flex;
  align-items: center;
}
.site-card__arrow {
  width: 24px;
  height: 24px;
  align-self: center;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: var(--sp-s);
  display: block;
  filter: brightness(0) saturate(100%) invert(45%) sepia(7%) saturate(519%) hue-rotate(336deg) brightness(93%) contrast(86%);
}
.site-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 24px;
}

/* Events grid – lista verticale */
.events-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-m);
}
.event-card {
  background: var(--bg);
  border-radius: var(--radius-s);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  transition: background .2s;
}
a.event-card:hover { background: #eee8e7; }
.event-card__thumb {
  width: 56px;
  min-height: 56px;
  height: auto;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--brand);
}
.event-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.92) contrast(.96);
}
.event-card__body {
  flex: 1;
  min-width: 0;
  padding: var(--sp-s);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 24px;
}
.event-card__place {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 20px;
  margin-top: 2px;
}
.event-card__arrow {
  width: 24px;
  height: 24px;
  align-self: center;
  flex-shrink: 0;
  margin-left: auto;
  margin-right: var(--sp-s);
  display: block;
  filter: brightness(0) saturate(100%) invert(45%) sepia(7%) saturate(519%) hue-rotate(336deg) brightness(93%) contrast(86%);
}

/* Loading state per le attività */
.activities-loading {
  font-size: 14px;
  color: var(--text-secondary);
  padding: var(--sp-m) 0;
  text-align: center;
}
.activities-error {
  font-size: 14px;
  color: #c0392b;
  padding: var(--sp-m) 0;
}

/* Event link */
.event-link {
  display: flex;
  align-items: center;
  gap: var(--sp-m);
  background: var(--bg);
  border-radius: var(--radius-s);
  padding: var(--sp-m);
  text-decoration: none;
  transition: background .2s;
}
.event-link:hover { background: #eee8e7; }
.event-link__icon {
  width: 48px;
  height: 48px;
  background: var(--brand);
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.event-link__icon-letter {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.event-link__text { flex: 1; min-width: 0; }
.event-link__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 24px;
}
.event-link__url {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.event-link__arrow { width: 24px; height: 24px; flex-shrink: 0; }

/* ── CONTATTI ── */
.contact-cards {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-radius: var(--radius-s);
  overflow: hidden;
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-s);
  padding: var(--sp-s);
  border-bottom: 2px solid #fff;
}
.contact-card:last-child { border-bottom: none; }
.contact-card__icon {
  width: 40px;
  height: 40px;
  background: var(--brand);
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
/* Icone su sfondo brand (scuro) → bianche */
.contact-card__icon img { width: 24px; height: 24px; filter: brightness(0) invert(1); }
.contact-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 24px;
}
.contact-card__phone {
  font-size: 16px;
  color: var(--brand);
  line-height: 24px;
  text-decoration: none;
}
.contact-card__phone:hover { text-decoration: underline; }
.contact-card__sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 20px;
}

/* ── FOOTER (allineato alla larghezza della navbar) ── */
.footer { padding: var(--sp-xl) max(var(--sp-s), calc((100vw - 1280px) / 2 + var(--sp-s))); }
