:root {
  --avis-red: #e30613;
  --avis-blue: #0075bf;
  --avis-pink: #ee768c;
  --avis-pink-dark: #e2566f;
  --avis-azure: #80b2e0;
  --azure-soft: #ecf6ff;
  --ink: #1a1a2e;
  --muted: #5a6473;
  --bg: #ffffff;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eef0f3;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.brand-place {
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  padding-left: 14px;
  border-left: 2px solid #e6e8ec;
}

/* WIP main */
.wip {
  flex: 1;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 85% 15%, var(--azure-soft) 0%, rgba(236, 246, 255, 0) 45%),
    radial-gradient(circle at 10% 90%, #fdeef1 0%, rgba(253, 238, 241, 0) 45%),
    #ffffff;
}

.wip-inner {
  text-align: center;
  padding: 96px 24px;
}

.wip-badge {
  display: inline-block;
  background: var(--avis-pink);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.wip h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--ink);
}

.wip-text {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 32px;
}

.wip-progress {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--avis-blue);
  font-weight: 700;
}

/* ===== Pagina contenuto (benvenuti) ===== */
.page-hero {
  background:
    radial-gradient(circle at 80% 0%, var(--azure-soft) 0%, rgba(236, 246, 255, 0) 55%),
    radial-gradient(circle at 0% 100%, #fdeef1 0%, rgba(253, 238, 241, 0) 55%),
    #ffffff;
  padding: 64px 0 48px;
  text-align: center;
  border-bottom: 1px solid #eef0f3;
}

.anniv-badge {
  display: inline-block;
  background: var(--avis-blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.page-hero h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 auto 16px;
  max-width: 820px;
  color: var(--ink);
}

.page-hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--avis-red);
  font-weight: 600;
  max-width: 680px;
  margin: 0 auto;
}

.content {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.content p {
  font-size: 1.05rem;
  color: #2c3340;
  margin: 0 0 20px;
}

.content .lead {
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 500;
}

.content h2 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  color: var(--avis-blue);
  margin: 48px 0 18px;
  line-height: 1.25;
}

/* Media (video / immagine) */
.media-block {
  margin: 36px 0;
}

.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px dashed #c7d4e2;
  border-radius: 16px;
  background: var(--azure-soft);
  color: var(--avis-blue);
}

.media-placeholder.media-image {
  aspect-ratio: 3 / 2;
  background: #fdeef1;
  border-color: #f0c3cd;
  color: var(--avis-pink-dark);
}

.media-icon { font-size: 2.4rem; line-height: 1; }
.media-label { font-weight: 600; letter-spacing: 0.5px; }

.media-block figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 10px;
}

.media-block video,
.media-block img {
  width: 100%;
  height: auto;            /* mantiene le proporzioni */
  border-radius: 16px;
  display: block;
}

/* Foto storica: thumbnail cliccabile */
.photo-figure { text-align: center; }

.photo-thumb {
  position: relative;
  display: inline-block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
}

.photo-thumb img {
  width: auto;
  max-width: 100%;
  max-height: 460px;       /* dimensione "anteprima", proporzioni intatte */
  height: auto;
  border-radius: 16px;
  transition: transform .3s ease;
}

.photo-thumb:hover img { transform: scale(1.03); }

.photo-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 117, 191, 0.92);
  color: #fff;
  border-radius: 10px;
  font-size: 1.2rem;
  line-height: 1;
  pointer-events: none;
}

.photo-thumb:focus-visible {
  outline: 3px solid var(--avis-pink);
  outline-offset: 3px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox[hidden] { display: none; }

.lightbox-img {
  max-width: 95vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 20px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
}

/* Embed video responsive (YouTube) 16:9 */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Liste */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.feature-list li {
  position: relative;
  padding: 10px 0 10px 34px;
  font-size: 1.05rem;
  color: #2c3340;
  border-bottom: 1px solid #f0f2f5;
}

.feature-list li:last-child { border-bottom: none; }

.feature-list li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 19px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--avis-red);
}

/* Box evidenziato */
.highlight-box {
  background: var(--avis-blue);
  color: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  text-align: center;
  margin: 48px 0 36px;
}

.highlight-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 18px;
}

.highlight-box p {
  color: #fff;
  opacity: 0.95;
  font-size: 1.05rem;
  margin: 0 0 12px;
}

.highlight-box p:last-child { margin-bottom: 0; }

.signature {
  text-align: right;
  font-style: italic;
  font-weight: 600;
  color: var(--ink) !important;
}

/* Footer */
.site-footer {
  background: var(--avis-blue);
  color: #fff;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding: 44px 24px 32px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-col { flex: 1 1 240px; min-width: 0; }

.footer-logo {
  height: 42px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

.footer-org {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
}

.footer-title {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #cfe6f7;
}

.footer-addr { margin: 0 0 8px; font-size: 0.95rem; line-height: 1.55; opacity: 0.95; }
.footer-pi { margin: 0; font-size: 0.85rem; opacity: 0.8; }

.footer-contacts { list-style: none; margin: 0; padding: 0; }

.footer-contacts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.footer-contacts svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  stroke: #cfe6f7;
}

.footer-contacts a {
  color: #fff;
  text-decoration: none;
  word-break: break-word;
}

.footer-contacts a:hover { text-decoration: underline; }

.footer-tag {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  align-self: center;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-bottom p {
  text-align: center;
  margin: 0;
  padding: 16px 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .footer-inner { gap: 28px; padding: 36px 24px 24px; }
}
