/* =============================================
   tra NORD e SUD — Pizza al Taglio
   Palette: navy #1e3a68 | gold #c9a84c | cream #f7f4ef
   ============================================= */

:root {
  --navy: #1e3a68;
  --navy-dark: #152a4e;
  --navy-light: #2a5090;
  --gold: #c9a84c;
  --gold-light: #dfc06a;
  --gold-dark: #a88a35;
  --cream: #f7f4ef;
  --cream-dark: #ede8df;
  --white: #ffffff;
  --text: #2c2c2c;
  --text-muted: #5a5a5a;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Caveat', cursive;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;

  --shadow: 0 4px 24px rgba(30, 58, 104, 0.10);
  --shadow-lg: 0 8px 40px rgba(30, 58, 104, 0.15);
  --radius: 12px;
  --transition: 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.6) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(200,195,185,0.15) 0%, transparent 40%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-dark);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Tile border (maiolica pattern) ---- */
.tile-border {
  height: 28px;
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='28' viewBox='0 0 56 28'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M0 14 Q7 4 14 14 Q21 24 28 14 Q35 4 42 14 Q49 24 56 14'/%3E%3Cpath d='M0 14 Q7 24 14 14 Q21 4 28 14 Q35 24 42 14 Q49 4 56 14'/%3E%3Ccircle cx='14' cy='14' r='3' fill='%23c9a84c' stroke='none'/%3E%3Ccircle cx='42' cy='14' r='3' fill='%23c9a84c' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 56px 28px;
}

.tile-border--top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
}

/* ---- Header / Nav ---- */
.header {
  position: sticky;
  top: 28px;
  z-index: 100;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 58, 104, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem;
}

.nav__logo img {
  height: 56px;
  width: 56px;
  object-fit: contain;
}

.nav__menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav__link {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  padding: 4rem 0 5rem;
  text-align: center;
}

.hero__logo-wrap {
  margin-bottom: 1.5rem;
}

.hero__logo {
  max-width: 280px;
  width: min(280px, 70vw);
  margin: 0 auto;
  filter: drop-shadow(0 4px 16px rgba(30, 58, 104, 0.12));
}

.hero__tagline {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--navy);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.4;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn--primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--gold);
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- Sections ---- */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--white);
  box-shadow: inset 0 1px 0 rgba(30,58,104,0.06);
}

.section__title {
  font-family: var(--font-script);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section__subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ---- About ---- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.about__text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.about__text strong {
  color: var(--navy);
}

.about__highlight {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--gold);
  color: var(--white);
  font-weight: 600;
  border-radius: 50px;
  font-size: 0.95rem;
}

.about__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image img {
  width: 100%;
  object-fit: cover;
}

/* ---- Menu ---- */
.menu__category-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.menu__category-label span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 400;
}

.menu__drinks-col-title {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
  text-align: center;
}

.menu__drinks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.menu__drinks-grid .menu__list {
  max-width: none;
}

@media (max-width: 600px) {
  .menu__drinks-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.menu__tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.menu__tab {
  padding: 0.6rem 1.4rem;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}

.menu__tab:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  color: var(--white);
}

.menu__tab--active {
  background: var(--navy);
  color: var(--white);
}

.menu__list {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
}

.menu__item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px dashed rgba(30, 58, 104, 0.15);
}

.menu__item:last-child {
  border-bottom: none;
}

.menu__item-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
  font-weight: 700;
}

.menu__item-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.menu__price {
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 1.1rem;
  white-space: nowrap;
  padding-top: 0.15rem;
}

.menu__badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  width: 1.3rem;
  height: 1.3rem;
  line-height: 1.3rem;
  text-align: center;
  border-radius: 50%;
  vertical-align: middle;
  margin-left: 0.3rem;
}

.menu__note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 2rem;
  font-style: italic;
}

/* ---- Hours ---- */
.hours__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.hours__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--gold);
}

.hours__card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.hours__time {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.8;
}

.hours__card--closed {
  border-top-color: #ccc;
  opacity: 0.7;
}

.hours__card--closed .hours__time {
  color: var(--text-muted);
}

/* ---- Contact ---- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
  align-items: start;
}

.contact__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2.5rem;
  text-align: center;
}

.contact__item strong {
  display: block;
  color: var(--navy);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.contact__item p {
  font-size: 1.05rem;
}

.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 320px;
  border: 3px solid var(--navy);
}

.contact__map iframe {
  display: block;
  min-height: 320px;
}

/* ---- Footer ---- */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  padding-bottom: 2rem;
}

.footer .tile-border {
  margin-bottom: 2rem;
}

.footer__inner {
  text-align: center;
}

.footer__logo {
  margin: 0 auto 1rem;
  width: 90px;
  height: 90px;
  object-fit: contain;
  opacity: 0.95;
}

.footer__copy {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.footer__address {
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer a {
  color: var(--gold-light);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: calc(28px + 65px);
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    gap: 1.25rem;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.35s ease;
    pointer-events: none;
  }

  .nav__menu--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__toggle--open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle--open span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle--open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__image {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .hours__grid {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.5rem 0 3.5rem;
  }
}

@media (max-width: 480px) {
  .menu__item {
    flex-direction: column;
    gap: 0.3rem;
  }

  .menu__price {
    align-self: flex-start;
  }
}
