/* ==========================================================================
   PapaKotas — estilos
   Cores tiradas do logótipo e do cartaz: verde-floresta, amarelo, verde-folha,
   laranja do pôr do sol.
   ========================================================================== */

@font-face {
  font-family: "Lilita One";
  src: url("../fonts/lilita-one-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lilita One";
  src: url("../fonts/lilita-one-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --forest: #223f35;
  --forest-deep: #182d26;
  --mustard: #e3bb3c;
  --leaf: #2f8a3d;
  --sun: #ee7d3a;
  --coral: #de5b53;
  --paper: #f7f7f3;
  --sand: #efece1;
  --ink: #16231d;
  --muted: #4a5a52;

  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(18px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: .005em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--mustard); color: var(--ink); padding: 10px 16px; font-weight: 700; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- Barra de topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px var(--gutter);
  background: var(--forest-deep);
  color: #fff;
  border-bottom: 3px solid var(--mustard);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 1.5rem; }
.brand img { border-radius: 10px; background: var(--paper); }
.menu { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.menu a { text-decoration: none; font-weight: 600; font-size: .98rem; padding: 6px 2px; border-bottom: 3px solid transparent; }
.menu a:hover { border-bottom-color: var(--mustard); }
.menu .menu-fb { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 2px solid var(--mustard); border-radius: 50%; color: var(--mustard); }
.menu .menu-fb:hover { background: var(--mustard); color: var(--forest-deep); }
.menu-btn { display: none; font: inherit; font-weight: 700; color: #fff; background: transparent; border: 2px solid var(--mustard); border-radius: 999px; padding: 6px 16px; cursor: pointer; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 24px;
  font-family: var(--body); font-weight: 800; font-size: 1.02rem; text-decoration: none;
  border: 3px solid transparent; border-radius: 999px; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sun { background: var(--sun); color: var(--ink); border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn-sun:hover { background: #f58d4d; }
.btn-line { color: #fff; border-color: #fff; }
.btn-line:hover { background: #fff; color: var(--forest-deep); }
.btn-line-dark { color: var(--forest-deep); border-color: var(--forest-deep); }
.btn-line-dark:hover { background: var(--forest-deep); color: #fff; }
.btn-dark { background: var(--forest); color: #fff; }
.btn-dark:hover { background: var(--forest-deep); }
.btn-small { min-height: 42px; padding: 6px 18px; font-size: .95rem; }

/* ---------- Início ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% 15%, rgba(238,125,58,.35), transparent 70%),
    var(--forest);
  color: #fff;
  padding: clamp(40px, 7vw, 88px) 0 clamp(110px, 14vw, 170px);
  overflow: hidden;
}
.hero-inner {
  width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto;
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(24px, 5vw, 64px);
}
.hero-place { font-weight: 700; color: var(--mustard); font-size: 1.1rem; margin-bottom: .7em; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); text-wrap: balance; }
.hero-lema { font-size: clamp(1.15rem, 2vw, 1.45rem); margin: .9em 0 1.6em; max-width: 30ch; color: #eaf2ec; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-logo {
  justify-self: center; width: min(100%, 440px);
  background: var(--paper); border-radius: 36px; padding: 14px;
  transform: rotate(-3deg);
  box-shadow: 0 10px 0 var(--mustard), 0 24px 50px rgba(0,0,0,.35);
}
.hero-logo img { border-radius: 24px; width: 100%; }

.ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(70px, 10vw, 130px); display: block; }
.ridge-fill { fill: var(--paper); }
.ridge-line { fill: none; stroke: var(--mustard); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* Entrada única da página */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  .hero-text > :nth-child(2) { animation-delay: .08s; }
  .hero-text > :nth-child(3) { animation-delay: .16s; }
  .hero-text > :nth-child(4) { animation-delay: .24s; }
  .hero-logo { animation: stick .7s cubic-bezier(.2,.8,.3,1.15) .15s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  @keyframes stick { from { opacity: 0; transform: rotate(-9deg) scale(.9); } }
}

/* ---------- Secções ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section h2 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin-bottom: .35em; }
.section-lead { max-width: 56ch; color: var(--muted); font-size: 1.12rem; margin-bottom: 2em; }

/* ---------- Próximo passeio ---------- */
.next { padding-top: clamp(24px, 4vw, 48px); }
.event { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: clamp(24px, 5vw, 60px); align-items: start; }
.event-noposter { grid-template-columns: 1fr; max-width: 760px; }
.event-poster {
  position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 14px; transform: rotate(1.5deg);
  box-shadow: 0 8px 0 var(--forest), 0 22px 40px rgba(22,35,29,.25);
  transition: transform .2s ease;
}
.event-poster:hover { transform: rotate(0deg) scale(1.01); }
.event-poster img { border-radius: 14px; width: 100%; }
.event-poster .zoom { position: absolute; right: 12px; bottom: 12px; background: var(--forest-deep); color: #fff; font-weight: 700; font-size: .85rem; padding: 6px 12px; border-radius: 999px; }

.when {
  display: inline-block; font-family: var(--display); font-size: 1.15rem;
  background: var(--mustard); color: var(--ink); padding: 4px 16px 5px; border-radius: 999px; margin-bottom: 14px;
  border: 3px solid var(--ink);
}
.when.today { background: var(--coral); color: #fff; }
.newdate { display: inline-block; margin-left: 8px; font-weight: 800; font-size: .9rem; color: var(--coral); }
.event h3 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.event .sub { font-family: var(--display); font-size: 1.35rem; color: var(--leaf); margin: .2em 0 .6em; }
.event .date-line { font-size: 1.2rem; font-weight: 800; margin-bottom: 1.2em; }

.facts { display: grid; grid-template-columns: 9.5rem 1fr; gap: 10px 20px; margin: 0 0 1.4em; padding: 1.1em 0; border-block: 3px dashed #c9cdb9; }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; }
.routes { display: flex; flex-wrap: wrap; gap: 10px; }
.route { display: inline-flex; align-items: baseline; gap: 6px; background: var(--sand); border: 2px solid var(--forest); border-radius: 12px; padding: 4px 14px; }
.route b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.1; color: var(--forest); }
.prices { list-style: none; margin: 0; padding: 0; }
.prices li { display: flex; gap: 12px; align-items: baseline; }
.prices b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; min-width: 3.2rem; color: var(--coral); }
.highlight { background: var(--forest); color: #fff; border-radius: 14px; padding: 14px 18px; margin-bottom: 1.4em; border-left: 8px solid var(--mustard); }
.event-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.event-empty { max-width: 52ch; font-size: 1.15rem; }

/* ---------- Calendário ---------- */
.calendar { background: var(--sand); }
.cal-layout { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.cal-month { background: #fff; border: 3px solid var(--forest); border-radius: 18px; padding: 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h3 { font-size: 1.5rem; text-transform: capitalize; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--forest); background: #fff; color: var(--forest); font-size: 1.2rem; font-weight: 800; cursor: pointer; }
.cal-nav:hover { background: var(--forest); color: #fff; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow { font-size: .8rem; font-weight: 800; color: var(--muted); padding: 4px 0; }
.cal-day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; font-weight: 600; border: 0; background: transparent; color: var(--ink); font-family: inherit; font-size: 1rem; }
.cal-day.blank { visibility: hidden; }
.cal-day.today { outline: 2px solid var(--forest); outline-offset: -2px; }
.cal-day.has-event { background: var(--sun); color: var(--ink); font-weight: 800; cursor: pointer; border: 2px solid var(--ink); }
.cal-day.has-event:hover { background: var(--mustard); }
.cal-legend { margin: 12px 2px 0; font-size: .9rem; color: var(--muted); }

.cal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cal-item { display: grid; grid-template-columns: 74px 1fr; gap: 18px; align-items: center; padding: 14px 18px 14px 14px; background: #fff; border-radius: 16px; border: 3px solid transparent; }
.cal-item.flash { border-color: var(--sun); }
.cal-item.past { opacity: .72; }
.cal-date { text-align: center; background: var(--forest); color: #fff; border-radius: 12px; padding: 8px 4px 6px; line-height: 1; }
.cal-date b { display: block; font-family: var(--display); font-weight: 400; font-size: 2rem; }
.cal-date span { font-size: .85rem; font-weight: 700; text-transform: lowercase; }
.cal-item h4 { margin: 0 0 2px; font-size: 1.15rem; font-weight: 800; line-height: 1.25; }
.cal-item p { margin: 0; color: var(--muted); font-size: .98rem; }
.cal-item .tag { display: inline-block; margin-left: 6px; font-size: .78rem; font-weight: 800; padding: 1px 10px; border-radius: 999px; background: var(--mustard); color: var(--ink); vertical-align: middle; }
.cal-item.past .tag { background: #d5d8cc; }
.cal-note { background: transparent; border: 3px dashed #bdbfa8; text-align: left; padding: 16px 18px; border-radius: 16px; color: var(--muted); }

/* ---------- Galeria ---------- */
.gal-grid { list-style: none; margin: 0 0 2em; padding: 0; columns: 3 280px; column-gap: 22px; }
.gal-item { break-inside: avoid; margin: 0 0 22px; background: #fff; padding: 8px 8px 12px; border-radius: 6px; box-shadow: 0 6px 18px rgba(22,35,29,.16); }
.gal-item:nth-child(3n+1) { transform: rotate(-1deg); }
.gal-item:nth-child(3n+2) { transform: rotate(.8deg); }
.gal-item button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 3px; overflow: hidden; }
.gal-item img { width: 100%; height: auto; transition: transform .3s ease; }
.gal-item button:hover img { transform: scale(1.04); }
.gal-item figcaption { font-family: var(--display); font-size: 1.15rem; color: var(--forest); margin-top: 8px; padding-inline: 2px; }
.gal-empty { aspect-ratio: 4 / 3; display: grid; place-content: center; text-align: center; gap: 4px; border-radius: 12px; border: 3px dashed #b4b8a0; background: repeating-linear-gradient(135deg, #f3f1e6 0 14px, #ebe8da 14px 28px); color: var(--muted); font-weight: 700; padding: 10px; }
.gal-empty svg { margin-inline: auto; }
.gal-more { margin: 0; }

/* ---------- Álbuns dos eventos ---------- */
.albums { background: var(--sand); }
.alb-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.alb-card { display: flex; flex-direction: column; background: #fff; border: 3px solid var(--forest); border-radius: 18px; overflow: hidden; }
.alb-cover { aspect-ratio: 16 / 9; background: var(--forest); overflow: hidden; }
.alb-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.alb-nocover { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #2a4a3f 0 14px, #223f35 14px 28px); }
.alb-cover .alb-logo { width: 120px; height: 120px; object-fit: contain; border-radius: 22px; background: var(--paper); transform: rotate(-3deg); box-shadow: 0 5px 0 var(--mustard); }
.alb-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px 20px; }
.alb-body h3 { font-size: 1.5rem; }
.alb-meta { margin: 0; color: var(--muted); font-size: .98rem; }
.alb-soon { margin: 8px 0 0; font-weight: 700; color: var(--forest); background: var(--mustard); border-radius: 10px; padding: 6px 12px; }
.alb-body .btn { margin-top: 8px; }

/* ---------- A equipa ---------- */
.about { background: var(--forest); color: #fff; position: relative; }
.about h2 { color: var(--mustard); }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.about-copy .big { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; margin-bottom: .8em; }
.about-copy p { max-width: 58ch; color: #e6efe9; }
.about-words { margin: 0; display: grid; gap: 22px; }
.about-words div { padding-left: 20px; border-left: 8px solid var(--mustard); }
.about-words dt { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; }
.about-words div:nth-child(2) { border-left-color: var(--leaf); }
.about-words div:nth-child(3) { border-left-color: var(--sun); }
.about-words dd { margin: 4px 0 0; color: #d9e6de; max-width: 34ch; }
.sponsors { margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 3px dashed rgba(255,255,255,.3); }
.sponsors h3 { font-size: 1.4rem; margin-bottom: 14px; color: var(--mustard); }
.sponsors-strip { background: #fff; border-radius: 16px; padding: 14px 18px; overflow-x: auto; max-width: 100%; width: fit-content; }
.sponsors-strip img { width: 648px; max-width: none; height: auto; }

/* ---------- Contactos ---------- */
.contact { background: var(--sun); color: var(--ink); }
.contact .section-lead { color: #2c2a22; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact .btn-sun { background: var(--forest-deep); color: #fff; border-color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.contact .btn-sun:hover { background: var(--forest); }
.contact .btn-line-dark { border-color: var(--ink); color: var(--ink); }
.contact .btn-line-dark:hover { background: var(--ink); color: #fff; }

.contact-address { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0 0 4px; font-weight: 700; }
.contact-address span { user-select: all; overflow-wrap: anywhere; }
.copy-btn { font: inherit; font-weight: 800; font-size: .92rem; color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 16px; min-height: 36px; cursor: pointer; }
.copy-btn:hover { background: var(--ink); color: #fff; }

/* ---------- Rodapé ---------- */
.footer { background: var(--forest-deep); color: #dce8e0; padding: 32px 0; }
.footer-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer img { border-radius: 14px; background: var(--paper); }
.footer p { margin: 0; line-height: 1.45; }
.footer .copy { opacity: .75; font-size: .92rem; }
.to-top { margin-left: auto; font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Janela de imagem ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; color: #fff; }
.lightbox::backdrop { background: rgba(10, 20, 15, .88); }
.lightbox img { max-width: 94vw; max-height: 82vh; width: auto; height: auto; margin-inline: auto; border-radius: 10px; }
.lightbox p { text-align: center; margin: 10px 0 0; }
.lb-close { position: absolute; right: 0; top: -48px; font: inherit; font-weight: 800; background: var(--mustard); color: var(--ink); border: 0; border-radius: 999px; padding: 8px 18px; cursor: pointer; }

/* ---------- Ecrãs pequenos ---------- */
@media (max-width: 860px) {
  .hero-inner, .event, .cal-layout, .about-grid { grid-template-columns: 1fr; }
  .hero-logo { width: min(78%, 340px); order: -1; }
  .hero { padding-top: 32px; }
  .event-poster { max-width: 440px; margin-inline: auto; }
  .menu-btn { display: inline-block; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--forest-deep); border-bottom: 3px solid var(--mustard); padding: 8px var(--gutter) 16px;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 2px; border-bottom: 1px solid rgba(255,255,255,.15); }
  .menu .menu-fb { width: 44px; height: 44px; margin-top: 12px; border-bottom: 2px solid var(--mustard); }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  .cal-item { grid-template-columns: 62px 1fr; gap: 12px; }
  .to-top { margin-left: 0; }
  .hero-actions .btn, .contact-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
