/* ==========================================================
   Sagra del Calamaro 2026 — Cassolnovo
   Palette ricalcata dalla locandina: rosso bandiera + blu
   ========================================================== */

:root {
  --red:       #e3231c;
  --red-dk:    #b31810;
  --blue:      #1a3a8f;
  --blue-dk:   #0f255e;
  --bg:        #ffffff;
  --cream:     #fdfaf3;
  --ink:       #14213d;
  --muted:     #5b6473;
  --gold:      #f1a738;
  --whatsapp:  #25d366;
  --shadow:    0 12px 28px rgba(15, 37, 94, .14);
  --radius:    18px;
  --maxw:      1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a   { color: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
  position: relative;
}

/* ===========================================================
   HERO
   =========================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: right center;
}
.hero__photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg, #fff 0%, #fff 38%, rgba(255,255,255,.92) 48%, rgba(255,255,255,0) 70%);
}

@media (max-width: 720px) {
  .hero__photo {
    display: none !important;
  }
  .hero {
    background: #fff !important;
  }
  .hero__inner {
    padding: 36px 20px 48px;
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 22px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.hero__text {
  max-width: 560px;
}

.hero__del {
  font-family: 'Caveat', cursive;
  color: var(--blue);
  font-size: clamp(32px, 6vw, 44px);
  margin: 8px 0 8px 20px;
  transform: rotate(-6deg);
  display: block;
  line-height: 1;
}

.hero__title {
  font-family: 'Bungee', sans-serif;
  font-weight: 800;
  margin: 0;
  line-height: .92;
  letter-spacing: 1px;
}
.t-year {
  display: block;
  color: var(--red);
  font-size: clamp(32px, 7vw, 60px);
  letter-spacing: 6px;
  margin-top: -2px;
  opacity: .85;
}
.t-del {
  display: block;
  color: var(--ink);
  font-size: clamp(28px, 6vw, 52px);
  margin-top: -2px;
  letter-spacing: 4px;
  opacity: .75;
}
.t-red {
  display: block;
  color: var(--red);
  font-size: clamp(56px, 14vw, 120px);
  text-shadow: 3px 3px 0 rgba(0,0,0,.04);
}
.t-blue {
  display: block;
  color: var(--blue);
  font-size: clamp(42px, 11vw, 96px);
  margin-top: -4px;
  text-shadow: 3px 3px 0 rgba(0,0,0,.04);
  position: relative;
  white-space: nowrap;
}

.hero__sub {
  font-family: 'Bungee', sans-serif;
  color: var(--blue);
  font-size: clamp(22px, 5vw, 34px);
  margin: 12px 0 18px;
}

/* Brushstroke banner with pin */
.banner-pin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  padding: 12px 22px 12px 16px;
  font-family: 'Bungee', sans-serif;
  font-size: clamp(15px, 3.5vw, 20px);
  letter-spacing: .5px;
  position: relative;
  clip-path: polygon(
    2% 18%, 6% 8%, 14% 4%, 22% 10%, 32% 6%, 44% 12%, 56% 6%, 68% 12%, 80% 6%, 90% 14%, 98% 22%,
    98% 78%, 92% 92%, 82% 96%, 70% 90%, 58% 96%, 46% 90%, 34% 96%, 22% 90%, 12% 96%, 4% 86%, 2% 78%
  );
  margin-bottom: 24px;
}
.banner-pin em {
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  opacity: .95;
  font-size: .85em;
  margin-left: 6px;
}

/* Date card */
.dates-card {
  background: #fff;
  border: 2px solid rgba(26, 58, 143, .12);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  max-width: 520px;
}
.dates-card__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
}
.dates-card__icon {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: #fff;
}
.dates-card__icon--cal   { background: var(--red); }
.dates-card__icon--clock { background: var(--blue); }

.dates-card__big {
  font-family: 'Bungee', sans-serif;
  font-size: clamp(28px, 6vw, 42px);
  color: var(--blue);
  line-height: 1;
}
.dates-card__big span { color: var(--red); margin-left: 6px; }

.dates-card__hours p {
  margin: 0;
  font-size: 14px;
  letter-spacing: .4px;
  color: var(--blue);
  text-transform: uppercase;
}
.dates-card__hours .hl {
  color: var(--red);
  font-weight: 700;
  font-size: 17px;
  text-transform: none;
  letter-spacing: 0;
  margin-top: 2px;
}
.dates-card__divider {
  border-top: 1px dashed rgba(20, 33, 61, .2);
  margin: 8px 8px 8px 84px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.hero__cta {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 999px;
  letter-spacing: .3px;
  box-shadow: 0 10px 24px rgba(227, 35, 28, .35);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.hero__cta:hover {
  transform: translateY(-2px);
  background: var(--red-dk);
  box-shadow: 0 14px 28px rgba(179, 24, 16, .4);
}

/* ===========================================================
   SECTION generica
   =========================================================== */

.section {
  padding: 56px 0;
  position: relative;
}

/* ===========================================================
   MENU — banner blu a pennellata stile locandina
   =========================================================== */

/* ===========================================================
   MENU
   =========================================================== */

.menu {
  background: var(--cream);
  padding: 72px 0 64px;
}

.menu__title {
  font-family: 'Bungee', sans-serif;
  text-align: center;
  color: var(--blue);
  font-size: clamp(22px, 4vw, 32px);
  letter-spacing: 1px;
  margin: 0 0 40px;
  position: relative;
}
.menu__title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin: 12px auto 0;
}

.menu-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 800px) {
  .menu-list { grid-template-columns: 1fr; }
}

.menu-item {
  background: var(--blue);
  border-radius: 20px;
  padding: 32px 28px 36px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.menu-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 37, 94, .22);
}

.menu-item__label {
  font-family: 'Bungee', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.15);
  padding-bottom: 12px;
}

.menu-item__dishes {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.menu-item__dishes li {
  color: #fff;
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 500;
  line-height: 1.35;
  padding-left: 18px;
  position: relative;
}
.menu-item__dishes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

.weather-strip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 14px;
  padding: 14px 26px;
  box-shadow: var(--shadow);
}
.weather-strip__icon {
  width: 48px; height: 48px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.weather-strip__text { line-height: 1.2; }
.weather-strip__text .small {
  display: block;
  font-size: 12px;
  letter-spacing: .8px;
  color: var(--muted);
}
.weather-strip__text strong {
  display: block;
  font-family: 'Bungee', sans-serif;
  color: var(--blue);
  font-size: 17px;
  letter-spacing: .5px;
}

/* ===========================================================
   PRENOTAZIONE
   =========================================================== */

.book {
  background: var(--blue-dk);
  color: #fff;
  padding: 80px 0 96px;
  position: relative;
}

.book__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 14px 22px;
  max-width: 520px;
  margin: 0 auto 40px;
  box-shadow: var(--shadow);
}
.book__phone {
  width: 44px; height: 44px;
  background: var(--gold);
  color: var(--blue-dk);
  border-radius: 50%;
  display: grid; place-items: center;
}
.book__header h2 {
  margin: 0;
  font-family: 'Bungee', sans-serif;
  color: #fff;
  font-size: clamp(18px, 4vw, 24px);
  letter-spacing: .5px;
  text-transform: uppercase;
}

.contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .contacts { grid-template-columns: 1fr; }
}

.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-decoration: none;
  color: #fff;
  border: 2px solid transparent;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.contact:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.1);
}
.contact__icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--blue-dk);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact__text { line-height: 1.2; }
.contact__text strong {
  display: block;
  font-family: 'Bungee', sans-serif;
  font-size: 16px;
  color: #fff;
  letter-spacing: .5px;
}
.contact__text span {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  font-variant-numeric: tabular-nums;
}

.map-wrap {
  text-align: center;
  margin-top: 48px;
}
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--blue-dk);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  transition: background .15s ease, transform .15s ease;
}
.map-link:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

/* ===========================================================
   FOOTER + FAB
   =========================================================== */

.footer {
  background: var(--blue-dk);
  color: #fff;
  padding: 26px 0;
  text-align: center;
}
.footer p { margin: 4px 0; }
.footer__small { opacity: .75; font-size: 14px; }

.fab {
  position: fixed;
  right: 18px; bottom: 18px;
  width: 58px; height: 58px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .45);
  text-decoration: none;
  z-index: 10;
  transition: transform .15s ease;
}
.fab:hover { transform: scale(1.08); }

/* ===========================================================
   RESPONSIVE
   =========================================================== */

@media (min-width: 900px) {
  .hero__inner { padding: 64px 22px 80px; }
  .menu__brushstroke { top: 56px; height: 130px; }
}

@media (max-width: 540px) {
  .section { padding: 48px 0; }
  .dates-card__divider { margin-left: 70px; }
  .dates-card__icon { width: 48px; height: 48px; border-radius: 12px; }
  .dates-card__icon svg { width: 30px; height: 30px; }
  .menu-item__icon { width: 54px; height: 54px; }
  .menu-item__icon svg { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
