/* Home Italy - stile condiviso pagine pubbliche */

:root {
  --hi-primary: #0f1b2d;
  --hi-primary-2: #192a44;
  --hi-accent: #b30000;
  --hi-blue: #2a7ae2;
  --hi-soft: #f5f6f8;
  --hi-border: #e6e9ef;
  --hi-text: #162033;
  --hi-muted: #667085;
}

body {
  background: var(--hi-soft);
}

.hi-public-wrap {
  color: var(--hi-text);
}

.hi-hero {
  background: linear-gradient(135deg, rgba(15,27,45,0.97), rgba(179,0,0,0.84));
  color: #fff;
  border-radius: 22px;
  padding: 42px 32px;
  box-shadow: 0 20px 42px rgba(15, 27, 45, 0.24);
  position: relative;
  overflow: hidden;
}

.hi-hero::after {
  content: "";
  position: absolute;
  top: -110px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.085);
}

.hi-hero > * {
  position: relative;
  z-index: 1;
}

.hi-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  opacity: .82;
  margin-bottom: 10px;
}

.hi-hero-logo {
  width: min(100%, 230px);
  max-height: 230px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.22));
}

.hi-card {
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(15, 27, 45, .08);
  overflow: hidden;
}

.hi-card-soft {
  background: #fff;
  border: 1px solid var(--hi-border);
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(15, 27, 45, .06);
}

.hi-card-pad {
  padding: 26px;
}

.hi-card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #fff;
}

.hi-img-placeholder {
  width: 100%;
  height: 210px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef2f7, #ffffff);
  color: var(--hi-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  border: 1px dashed #cfd7e3;
}

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

@media (min-width: 768px) {
  .hi-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hi-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hi-stat {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  padding: 16px;
}

.hi-stat strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
}

.hi-section-title {
  color: var(--hi-primary);
  font-weight: 800;
}

.hi-muted {
  color: var(--hi-muted);
}

.hi-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
}

.hi-badge-success {
  background: #e8f7ef;
  color: #126b3c;
}

.hi-badge-warning {
  background: #fff4d6;
  color: #8a5a00;
}

.hi-badge-danger {
  background: #fde8e8;
  color: #9b1c1c;
}

.hi-badge-soft {
  background: #eef2f7;
  color: #344054;
}

.hi-filter {
  background: #fff;
  border: 0;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(15, 27, 45, .07);
}

.hi-link-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.hi-link-list li + li {
  margin-top: 8px;
}

.hi-mini-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(179,0,0,.10);
  color: var(--hi-accent);
  font-weight: 900;
}

.hi-callout {
  background: linear-gradient(135deg, rgba(15,27,45,.96), rgba(42,122,226,.82));
  color: #fff;
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 18px 34px rgba(15, 27, 45, .18);
}

.hi-rich-text p:last-child,
.hi-rich-text ul:last-child,
.hi-rich-text ol:last-child {
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  .hi-hero {
    padding: 30px 22px;
    border-radius: 18px;
  }

  .hi-card-pad {
    padding: 20px;
  }

  .hi-card-img,
  .hi-img-placeholder {
    height: 180px;
  }
}


/* Eventi Home Italy: poster e locandine leggibili senza tagli. */
.hi-event-card .hi-card-img {
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  padding: 8px;
}

.hi-event-detail-image .hi-card-img {
  height: auto;
  max-height: 620px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 12px 26px rgba(15, 27, 45, .08);
}

.hi-rich-text {
  white-space: normal;
  line-height: 1.7;
}

/* Fix evento: azioni pubbliche e locandine sempre intere/adattive. */
.hi-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
}

.hi-event-actions .btn {
  border-radius: 999px;
  font-weight: 700;
}

.hi-event-detail-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 320px;
  background: rgba(255,255,255,.96);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 12px 26px rgba(15, 27, 45, .12);
}

.hi-event-detail-image .hi-card-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 680px;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff;
  padding: 0;
  border-radius: 14px;
  box-shadow: none;
}

.hi-event-participate-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 560px;
  object-fit: contain !important;
  object-position: center !important;
  background: #fff;
  padding: 10px;
  border-radius: 18px 0 0 18px;
}

@media (max-width: 991.98px) {
  .hi-event-actions .btn,
  .hi-event-detail-hero .btn {
    width: 100%;
  }
  .hi-event-detail-image {
    min-height: 240px;
  }
  .hi-event-detail-image .hi-card-img,
  .hi-event-participate-image {
    max-height: 520px;
    border-radius: 18px 18px 0 0;
  }
}

/* HI_EVENTI_FORCE_BUTTONS_20260623 */
.hi-event-force-actions,
.hi-event-actions,
.hi-public-wrap .hi-event-force-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: .65rem !important;
  align-items: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 20 !important;
}

.hi-event-force-actions .btn,
.hi-event-main-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  white-space: normal !important;
}

.hi-event-card-force .hi-event-force-actions .btn {
  flex: 1 1 190px !important;
}

.hi-event-image-wrap-force .hi-card-img,
.hi-event-detail-image .hi-card-img,
.hi-event-full-poster .hi-card-img {
  width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #ffffff !important;
}

.hi-event-card-force .hi-card-img {
  height: 260px !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #ffffff !important;
  padding: .75rem !important;
}

.hi-participation-box-force {
  border: 2px solid rgba(179, 0, 0, .16) !important;
  box-shadow: 0 16px 38px rgba(15, 27, 45, .10) !important;
}

.hi-eyebrow-dark {
  color: #b30000 !important;
  background: rgba(179, 0, 0, .08) !important;
}

@media (max-width: 575.98px) {
  .hi-event-force-actions .btn,
  .hi-event-main-btn {
    width: 100% !important;
  }
}
