/* ============================================================
   Conero Sea — progetto-ue.php
   Scheda dell'operazione cofinanziata dall'Unione europea.
   Le parti condivise con il footer (targa, fascia loghi, banda)
   stanno in assets/css/style.css.
   ============================================================ */

/* ── Targa loghi sotto l'hero ────────────────────────────── */
.ue-plate-sec {
  padding: clamp(2.6rem, 6vw, 4.5rem) clamp(1.2rem, 5vw, 4rem) 0;
  text-align: center;
}

.ue-plate-note {
  max-width: 700px;
  margin: clamp(1.4rem, 3vw, 2rem) auto 0;
  font-size: .78rem;
  line-height: 2;
  font-weight: 300;
  color: var(--txt-muted);
}

.ue-plate-note strong {
  font-weight: 400;
  color: rgba(255, 255, 255, .78);
}

/* ── Racconto dell'operazione ────────────────────────────── */
.ue-story-sec { overflow: clip; }

.ue-story-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.ue-story-visual {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.ue-story-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ue-story-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 45%, rgba(5, 5, 31, .75) 100%);
}

.ue-story-content {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ue-story-p {
  font-size: .84rem;
  line-height: 2.05;
  font-weight: 300;
  color: var(--txt-body);
  margin-bottom: 1.2rem;
}

.ue-story-p:last-child { margin-bottom: 0; }

.ue-story-p strong {
  font-weight: 400;
  color: rgba(255, 255, 255, .92);
}

@media (max-width: 900px) {
  .ue-story-grid { grid-template-columns: 1fr; }
  .ue-story-visual { min-height: 300px; }
}

/* ── Finalita' e risultati ───────────────────────────────── */
.ue-panels-sec {
  padding: clamp(3.5rem, 8vw, 8rem) clamp(1.2rem, 5vw, 4rem);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(31, 31, 128, .14) 0%, transparent 58%),
    var(--deep);
  border-top: 1px solid var(--gbr);
  border-bottom: 1px solid var(--gbr);
  overflow: clip;
}

.ue-panels {
  max-width: 1150px;
  margin: clamp(2rem, 4vw, 3.2rem) auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.6vw, 2rem);
}

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

.ue-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.8rem, 3.4vw, 2.8rem);
  background: rgba(14, 14, 72, .22);
  border: 1px solid var(--gbr);
  transition: background .35s, border-color .35s;
}

.ue-panel:hover {
  background: rgba(31, 31, 128, .2);
  border-color: rgba(82, 82, 204, .2);
}

.ue-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform .5s;
}

.ue-panel:hover::before { transform: scaleX(1); }

.ue-panel-h {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.1;
  color: var(--txt-h);
  margin-bottom: 1.6rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--gbr);
}

.ue-ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.ue-ol li {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: .1rem 1rem;
  align-items: start;
}

.ue-ol li::before {
  content: attr(data-n);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--gold2);
  opacity: .55;
}

.ue-ol span {
  font-size: .8rem;
  line-height: 1.95;
  font-weight: 300;
  color: var(--txt-body);
}

/* ── Numeri dell'operazione (compaiono solo se valorizzati) ─ */
.ue-figs {
  max-width: 1000px;
  margin: 0 auto clamp(2.4rem, 5vw, 3.6rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--gbr);
  border-bottom: 1px solid var(--gbr);
}

.ue-fig {
  text-align: center;
  padding: clamp(1.8rem, 3.6vw, 2.8rem) 1rem;
  border-right: 1px solid var(--gbr);
  background: var(--ink);
}

.ue-fig:last-child { border-right: none; }

.ue-fig-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  font-weight: 300;
  line-height: 1;
  color: var(--gold2);
  margin-bottom: .6rem;
}

.ue-fig-lbl {
  font-size: .53rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  line-height: 1.8;
}

@media (max-width: 640px) {
  .ue-fig { border-right: none; border-bottom: 1px solid var(--gbr); }
  .ue-fig:last-child { border-bottom: none; }
}

/* ── Tabella dati dell'operazione ────────────────────────── */
.ue-tbl {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--gbr);
}

.ue-tbl-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 2fr;
  gap: .4rem 2.5rem;
  padding: 1.05rem .2rem;
  border-bottom: 1px solid var(--gbr);
  transition: background .3s;
}

.ue-tbl-row:hover { background: rgba(255, 255, 255, .02); }

@media (max-width: 620px) {
  .ue-tbl-row { grid-template-columns: 1fr; gap: .3rem; padding: .9rem .2rem; }
}

.ue-tbl-k {
  font-size: .54rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold2);
  opacity: .8;
  padding-top: .35rem;
}

.ue-tbl-v {
  font-size: .84rem;
  line-height: 1.85;
  font-weight: 300;
  color: var(--txt-h);
}

.ue-tbl-v strong {
  font-weight: 400;
  color: var(--gold3);
}

/* ── Nota legale di chiusura ─────────────────────────────── */
.ue-legal {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(1.3rem, 3vw, 1.9rem) clamp(1.2rem, 3vw, 2rem);
  background: var(--gb);
  border: 1px solid var(--gbr);
  border-radius: 3px;
  font-size: .72rem;
  line-height: 2;
  font-weight: 300;
  color: var(--txt-muted);
}

.ue-legal a {
  color: var(--gold2);
  border-bottom: 1px solid rgba(235, 190, 66, .3);
  transition: color .3s, border-color .3s;
}

.ue-legal a:hover { color: var(--gold3); border-bottom-color: var(--gold3); }

.ue-legal code,
.ue-todo code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em;
  color: var(--gold3);
}

@media (max-width: 860px) {
  /* neutralizza la regola globale a{min-height:44px;display:inline-flex}
     sui link in linea dentro la nota legale */
  .ue-legal a { min-height: unset; display: inline; }
}

/* ── Avviso ai redattori: solo con ?ue-check e solo se mancano dati ── */
.ue-todo {
  max-width: 900px;
  margin: 0 auto clamp(1.8rem, 4vw, 2.6rem);
  padding: 1rem 1.3rem;
  background: rgba(235, 190, 66, .09);
  border-left: 2px solid var(--gold2);
  border-radius: 2px;
  font-size: .74rem;
  line-height: 1.9;
  font-weight: 300;
  color: var(--txt-body);
  text-align: left;
}

.ue-todo strong { color: var(--gold3); font-weight: 500; }

/* ── Leggibilita' su schermo piccolo ─────────────────────── */
@media (max-width: 700px) {
  /* i testi dell'informativa obbligatoria restano leggibili anche sul
     telefono: qui la misura conta piu' della compattezza */
  .ue-plate-note { font-size: .8rem; }
  .ue-legal      { font-size: .78rem; line-height: 1.95; }
  .ue-ol span    { font-size: .82rem; }
  .ue-tbl-k      { font-size: .58rem; }
}
