/* Uniun da giuventetgna Sagogn – one page
   Colours from the former site and the Beinvegni figure:
   yellow background, black robe, red guitar, grey menu. */

@font-face { font-family: "Amatic SC"; src: url("../fonts/amatic-sc-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --gelb: #feb101;
  --schwarz: #000;
  --rot: #d21f27;
  --weiss: #fff;
  --grau: #333;

  --hand: "Amatic SC", "Arial Narrow", sans-serif;
  --text: "Archivo", Arial, sans-serif;
  --bar-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--gelb);
  color: var(--schwarz);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 50; background: var(--weiss); padding: .4rem .8rem; }

.wrap { width: min(1100px, 100% - 2 * clamp(1.25rem, 5vw, 3rem)); margin: 0 auto; }

/* ---------- Bar ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--gelb);
  border-bottom: 3px solid var(--schwarz);
}
.bar .wrap {
  min-height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo img { width: 44px; height: auto; }
.logo span { font-weight: 600; font-size: .82rem; line-height: 1.15; }
.bar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.bar nav a {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.bar nav a:hover { color: var(--rot); }

@media (max-width: 760px) {
  :root { --bar-h: 108px; }
  .bar .wrap { flex-direction: column; align-items: flex-start; gap: .3rem; padding: .6rem 0 .5rem; }
  .logo img { width: 38px; }
  .bar nav { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .bar nav::-webkit-scrollbar { display: none; }
  .bar ul { gap: .85rem; }
  .bar nav a { font-size: 1.4rem; }
}

section { scroll-margin-top: var(--bar-h); }

/* ---------- Hero: the crest with the four labels from the old welcome picture ---------- */
.hero { padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem); text-align: center; }
.crest {
  display: grid;
  grid-template-columns: 1fr minmax(0, 340px) 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  gap: 0 clamp(1rem, 4vw, 3rem);
  max-width: 900px;
  margin: 0 auto;
}
.crest img { grid-column: 2; grid-row: 1 / 3; width: 100%; }
.tag {
  margin: 0;
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: .95;
}
.tag a { text-decoration: none; }
.tag a:hover { color: var(--rot); }
.tag.nw, .tag.sw { grid-column: 1; justify-self: end; text-align: right; }
.tag.ne, .tag.se { grid-column: 3; justify-self: start; text-align: left; }
.tag.nw, .tag.ne { grid-row: 1; align-self: end; margin-bottom: 1.5rem; }
.tag.sw, .tag.se { grid-row: 2; align-self: start; margin-top: 1.5rem; }
@media (max-width: 640px) {
  .crest { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; gap: .4rem 1rem; }
  .crest img { grid-column: 1 / -1; grid-row: 1; width: min(260px, 75%); margin: 0 auto 1rem; }
  .tag.nw, .tag.ne, .tag.sw, .tag.se { grid-row: auto; grid-column: auto; justify-self: center; text-align: center; margin: 0; }
}
.beinvegni {
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 7.5rem);
  line-height: 1;
  margin: 1.5rem 0 0;
  transform: rotate(-4deg);
}
.claim {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  max-width: 34ch;
  margin: 1.4rem auto 0;
}

/* ---------- Bands ---------- */
.band { padding: clamp(3.5rem, 9vw, 6rem) 0; }
.band.black  { background: var(--schwarz); color: var(--weiss); }
.band.yellow { background: var(--gelb);    color: var(--schwarz); border-top: 3px solid var(--schwarz); }
.band.white  { background: var(--weiss);   color: var(--schwarz); }
.band.red    { background: var(--rot);     color: var(--weiss); }

h2 {
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(3.6rem, 10vw, 6rem);
  line-height: .9;
  margin: 0 0 2rem;
}
.band.black h2 { color: var(--gelb); }
h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 .5rem; line-height: 1.35; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; max-width: 60ch; }

.button {
  display: inline-block;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  padding: .55rem 1.4rem .65rem;
  background: var(--schwarz);
  color: var(--gelb);
  text-decoration: none;
  border: 3px solid var(--schwarz);
}
.button:hover { background: var(--rot); border-color: var(--rot); color: var(--weiss); }
.button.yellow-btn { background: var(--gelb); color: var(--schwarz); border-color: var(--gelb); }
.button.yellow-btn:hover { background: var(--weiss); border-color: var(--weiss); color: var(--schwarz); }

/* ---------- Reservaziun ---------- */
.rentals { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 2rem 4rem; margin: 0 0 2.5rem; max-width: 60rem; }
.rentals h3 { font-family: var(--hand); font-size: 2.4rem; line-height: 1; margin: 0 0 .8rem; }
.rentals ul { list-style: none; padding: 0; margin: 0; }
.rentals li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .7rem 0; border-top: 2px solid var(--schwarz);
}
.rentals li:last-child { border-bottom: 2px solid var(--schwarz); }
.rentals small { font-size: .9em; }
.rentals .price { font-weight: 600; white-space: nowrap; text-align: right; }

/* ---------- Historia ---------- */
.era {
  display: grid;
  grid-template-columns: 10rem minmax(0, 62ch);
  gap: 0 2.5rem;
  padding: 2rem 0;
  border-top: 2px solid var(--schwarz);
}
.era .when {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 2.3rem;
  line-height: 1;
  color: var(--rot);
  margin: 0;
}
@media (max-width: 700px) { .era { grid-template-columns: 1fr; } .era .when { margin-bottom: .6rem; } }

/* ---------- Plaidin: word tiles ---------- */
.plaidin { text-align: center; }
.plaidin .lead { margin: 0 auto 2rem; }
.tiles { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; }
.tiles span {
  width: clamp(2.6rem, 9vw, 4.4rem);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-family: var(--text);
  font-weight: 600;
  font-size: clamp(1.4rem, 4.5vw, 2.3rem);
  line-height: 1;
}
.tiles .t0 { background: var(--gelb); color: var(--schwarz); }
.tiles .t1 { background: var(--rot);  color: var(--weiss); }
.tiles .t2 { background: transparent; color: var(--weiss); box-shadow: inset 0 0 0 3px var(--grau); }

/* ---------- Contact ---------- */
.person { max-width: 34rem; }
.person .role { font-family: var(--hand); font-weight: 700; font-size: 2rem; line-height: 1; margin: 0; }
.person .name { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 600; line-height: 1.15; margin: .3rem 0 1.4rem; }
.person dl { display: grid; grid-template-columns: 6rem 1fr; gap: .5rem 1.2rem; margin: 0; }
.person dt { font-weight: 600; }
.person dd { margin: 0; }


/* ---------- Footer ---------- */
.foot { background: var(--schwarz); color: var(--weiss); padding: 2rem 0; font-size: .95rem; border-top: 1px solid var(--grau); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; }
.foot p { margin: 0; }
.social { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.social a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--gelb); }
.social a:hover { color: var(--gelb); }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; border-top: 0; }
.notfound .logo { margin-bottom: 3rem; }
