/* Da Angelo — master brand polish (under italian-viva.css) v19 */

/* ── HTML wordmark (header / loader / footer / modal) ── */
/* Display: Cinzel · Caption: PIZZERIA · TRATTORIA (Figtree) */

.logo-mark {
  --logo-ink: #f7f5f1;
  --logo-muted: rgba(247, 245, 241, 0.55);
  --logo-flag-g: #009246;
  --logo-flag-w: #f7f5f1;
  --logo-flag-r: #ce2b37;
  --logo-box: #0a0a0a;
  --logo-tricolore: linear-gradient(
    90deg,
    var(--logo-flag-g) 0 33.33%,
    var(--logo-flag-w) 33.33% 66.66%,
    var(--logo-flag-r) 66.66% 100%
  );
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
  text-decoration: none;
  color: var(--logo-ink);
  user-select: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.logo-mark__name {
  display: block;
  font-family: Cinzel, "Times New Roman", Times, serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--logo-ink);
  white-space: nowrap;
  padding-left: 0; /* natural Cinzel — no optical pad hack */
}

.logo-mark__flag {
  display: block;
  width: 72%;
  max-width: 5.25rem;
  height: 1.5px;
  margin: 0.42em auto 0.36em;
  border-radius: 0;
  background: var(--logo-tricolore);
}

.logo-mark__caption {
  display: block;
  font-family: Figtree, "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 245, 241, 0.88);
  white-space: nowrap;
  padding-left: 0.06em;
}

/* Shared Notturno plate — charcoal fill + tricolore frame bars */
.logo-mark--header,
.logo-mark--footer {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  background: var(--logo-box);
  box-shadow:
    0 0 0 1px rgba(247, 245, 241, 0.1),
    0 6px 18px rgba(0, 0, 0, 0.35);
}

.logo-mark--header::before,
.logo-mark--header::after,
.logo-mark--footer::before,
.logo-mark--footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 2;
  pointer-events: none;
  background: var(--logo-tricolore);
}

.logo-mark--header::before,
.logo-mark--footer::before {
  top: 0;
}

.logo-mark--header::after,
.logo-mark--footer::after {
  bottom: 0;
}

/* Header — chain door-sign plate (~166×57 scaled) with soft LED pulse on frame only */
.logo-mark--header {
  width: max-content;
  max-width: min(236px, 58vw);
  min-height: 0;
  padding: 0.58rem 0.88rem 0.52rem;
  border-radius: 2px;
  animation: logoMarkPlateGlow 4.2s ease-in-out infinite;
}

.logo-mark--header::before,
.logo-mark--header::after {
  box-shadow:
    0 0 5px rgba(0, 146, 70, 0.48),
    0 0 4px rgba(247, 245, 241, 0.32),
    0 0 6px rgba(206, 43, 55, 0.4);
  animation: logoMarkLedPulse 2.8s ease-in-out infinite;
}

.logo-mark--header::after {
  animation-delay: 0.45s;
}

.logo-mark--header .logo-mark__name {
  position: relative;
  z-index: 1;
  font-size: clamp(1.08rem, 2.1vw, 1.32rem);
  font-weight: 600;
  letter-spacing: 0;
  padding-left: 0;
}

.logo-mark--header .logo-mark__flag {
  position: relative;
  z-index: 1;
  width: 66%;
  max-width: 4.75rem;
  height: 1.75px;
  margin: 0.36em auto 0.3em;
  opacity: 0.94;
  box-shadow:
    0 0 3px rgba(0, 146, 70, 0.32),
    0 0 3px rgba(206, 43, 55, 0.26);
  animation: logoMarkLedPulse 2.8s ease-in-out infinite;
  animation-delay: 0.22s;
}

.logo-mark--header .logo-mark__caption {
  position: relative;
  z-index: 1;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding-left: 0.05em;
  color: rgba(247, 245, 241, 0.9);
  -webkit-text-stroke: 0;
}

/* Soft professional LED breathe — brighter intro pulse, no gold / no rainbow */
@keyframes logoMarkLedPulse {
  0%, 100% {
    opacity: 0.62;
    filter: brightness(0.9);
    box-shadow:
      0 0 2px rgba(0, 146, 70, 0.28),
      0 0 2px rgba(247, 245, 241, 0.16),
      0 0 3px rgba(206, 43, 55, 0.22);
  }
  50% {
    opacity: 1;
    filter: brightness(1.22);
    box-shadow:
      0 0 7px rgba(0, 146, 70, 0.68),
      0 0 6px rgba(247, 245, 241, 0.42),
      0 0 10px rgba(206, 43, 55, 0.55);
  }
}

@keyframes logoMarkPlateGlow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(247, 245, 241, 0.1),
      0 6px 18px rgba(0, 0, 0, 0.35),
      0 0 14px rgba(0, 146, 70, 0.06),
      0 0 18px rgba(206, 43, 55, 0.05);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(247, 245, 241, 0.14),
      0 8px 22px rgba(0, 0, 0, 0.4),
      0 0 22px rgba(0, 146, 70, 0.14),
      0 0 26px rgba(206, 43, 55, 0.12);
  }
}

@keyframes logoMarkPlateGlowLoader {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(247, 245, 241, 0.1),
      0 14px 40px rgba(0, 0, 0, 0.45),
      0 0 28px rgba(0, 146, 70, 0.1),
      0 0 34px rgba(206, 43, 55, 0.08);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(247, 245, 241, 0.16),
      0 18px 48px rgba(0, 0, 0, 0.5),
      0 0 42px rgba(0, 146, 70, 0.2),
      0 0 48px rgba(206, 43, 55, 0.16);
  }
}

/* Header power-on after loader exits */
body.is-loaded .logo-mark--header {
  animation:
    logoMarkHeaderBoot 1.1s cubic-bezier(0.22, 1, 0.36, 1) both,
    logoMarkPlateGlow 4.2s ease-in-out 1.1s infinite;
}

body.is-loaded .logo-mark--header::before,
body.is-loaded .logo-mark--header::after {
  animation:
    logoMarkBarIgnite 0.7s ease both,
    logoMarkLedPulse 2.8s ease-in-out 0.75s infinite;
}

body.is-loaded .logo-mark--header::after {
  animation-delay: 0.18s, 1.05s;
}

body.is-loaded .logo-mark--header .logo-mark__name {
  animation: logoMarkNameBoot 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

body.is-loaded .logo-mark--header .logo-mark__flag {
  animation:
    logoMarkFlagIgnite 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both,
    logoMarkLedPulse 2.8s ease-in-out 1s infinite;
}

body.is-loaded .logo-mark--header .logo-mark__caption {
  animation: logoMarkCaptionBoot 0.7s ease 0.42s both;
}

@keyframes logoMarkHeaderBoot {
  from {
    opacity: 0.55;
    transform: scale(0.96);
    filter: brightness(0.85);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes logoMarkBarIgnite {
  0% { opacity: 0; filter: brightness(0.6); }
  40% { opacity: 1; filter: brightness(1.45); }
  100% { opacity: 1; filter: brightness(1); }
}

@keyframes logoMarkNameBoot {
  from {
    opacity: 0;
    letter-spacing: 0.1em;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    letter-spacing: 0.08em;
    transform: none;
  }
}

@keyframes logoMarkFlagIgnite {
  from {
    transform: scaleX(0.15);
    opacity: 0.35;
  }
  to {
    transform: scaleX(1);
    opacity: 0.94;
  }
}

@keyframes logoMarkCaptionBoot {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Kill any leftover LED chrome on the logo link (old img wrappers) */
.logo-link .logo-led--header,
.logo-link .logo-led__aura,
.logo-link .logo-led__strip,
.logo-link .logo-led__shine {
  display: none !important;
  animation: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.logo-link:hover .logo-mark--header {
  box-shadow:
    0 0 0 1px rgba(247, 245, 241, 0.16),
    0 8px 22px rgba(0, 0, 0, 0.4);
}

.logo-link:hover .logo-mark__name {
  color: #fff;
}

.logo-link:hover .logo-mark__flag {
  opacity: 1;
}

.logo-link:hover .logo-mark__caption {
  color: rgba(247, 245, 241, 0.98);
}

/* Loader — hero scale of the same mark, Notturno plate + soft LED */
.logo-mark--hero,
.logo-mark--loader {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  max-width: min(300px, 82vw);
  padding: 1.05rem 1.55rem 0.95rem;
  border-radius: 2px;
  background: #0a0a0a;
  box-shadow:
    0 0 0 1px rgba(247, 245, 241, 0.1),
    0 14px 40px rgba(0, 0, 0, 0.45);
  animation: logoMarkPlateGlowLoader 3.6s ease-in-out infinite;
}

.logo-mark--hero::before,
.logo-mark--hero::after,
.logo-mark--loader::before,
.logo-mark--loader::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 2;
  pointer-events: none;
  background: var(--logo-tricolore);
  box-shadow:
    0 0 5px rgba(0, 146, 70, 0.48),
    0 0 4px rgba(247, 245, 241, 0.32),
    0 0 6px rgba(206, 43, 55, 0.4);
  animation: logoMarkLedPulse 2.6s ease-in-out infinite;
}

.logo-mark--hero::before,
.logo-mark--loader::before { top: 0; }

.logo-mark--hero::after,
.logo-mark--loader::after {
  bottom: 0;
  animation-delay: 0.5s;
}

.logo-mark--hero .logo-mark__name,
.logo-mark--loader .logo-mark__name {
  position: relative;
  z-index: 1;
  font-size: clamp(1.5rem, 5.4vw, 2.05rem);
  letter-spacing: 0.08em;
  font-weight: 600;
  padding-left: 0.08em;
}

.logo-mark--hero .logo-mark__flag,
.logo-mark--loader .logo-mark__flag {
  position: relative;
  z-index: 1;
  width: 68%;
  max-width: 6.75rem;
  height: 2px;
  margin: 0.5em auto 0.38em;
  opacity: 0.96;
  box-shadow:
    0 0 4px rgba(0, 146, 70, 0.38),
    0 0 3px rgba(247, 245, 241, 0.22),
    0 0 5px rgba(206, 43, 55, 0.32);
  animation: logoMarkLedPulse 2.6s ease-in-out infinite;
  animation-delay: 0.22s;
}

.logo-mark--hero .logo-mark__claim,
.logo-mark--loader .logo-mark__claim {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 0 0.48em;
  font-family: Figtree, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: none;
  color: rgba(247, 245, 241, 0.82);
}

.logo-mark--hero .logo-mark__caption,
.logo-mark--loader .logo-mark__caption {
  position: relative;
  z-index: 1;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: rgba(247, 245, 241, 0.58);
}

/* Footer — same plate, static / quieter (no pulse) */
.logo-mark--footer {
  align-items: flex-start;
  max-width: 188px;
  padding: 0.5rem 0.7rem 0.46rem;
  border-radius: 2px;
}

.logo-mark--footer::before,
.logo-mark--footer::after {
  opacity: 0.85;
  box-shadow:
    0 0 3px rgba(0, 146, 70, 0.22),
    0 0 3px rgba(206, 43, 55, 0.18);
  animation: none;
}

.logo-mark--footer .logo-mark__name {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding-left: 0.08em;
  opacity: 0.94;
}

.logo-mark--footer .logo-mark__flag {
  position: relative;
  z-index: 1;
  margin-left: 0;
  margin-right: auto;
  width: 3.75rem;
  max-width: 3.75rem;
  height: 1.5px;
  margin-top: 0.32em;
  margin-bottom: 0.26em;
  opacity: 0.88;
  animation: none;
}

.logo-mark--footer .logo-mark__caption {
  position: relative;
  z-index: 1;
  padding-left: 0.05em;
  font-size: 0.36rem;
  letter-spacing: 0.045em;
  color: rgba(247, 245, 241, 0.48);
}

/* Menu modal */
.logo-mark--menu {
  max-width: 260px;
  margin: 0 auto;
}

.logo-mark--menu .logo-mark__name {
  font-size: clamp(1.25rem, 3.2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0;
  padding-left: 0;
}

.logo-mark--menu .logo-mark__flag {
  width: 68%;
  max-width: 5.75rem;
  height: 1.5px;
}

.logo-mark--menu .logo-mark__caption {
  font-size: 0.5rem;
  letter-spacing: 0.07em;
}

/* Fallback if an <img> logo is still used somewhere */
.logo-led--header .logo-img,
img.menu-panel__logo {
  height: auto !important;
  width: auto !important;
  max-width: min(200px, 72vw);
  filter: none !important;
}

.site-loader__logo-img {
  width: min(240px, 72vw) !important;
  height: auto !important;
  filter: none !important;
}

.site-logo--menu,
.modal-head__logo {
  filter: none;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.2rem) !important;
}

.fade {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.32s ease, transform 0.32s ease;
}

.fade.show {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fade {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .logo-mark--header,
  .logo-mark--header::before,
  .logo-mark--header::after,
  .logo-mark--header .logo-mark__name,
  .logo-mark--header .logo-mark__flag,
  .logo-mark--header .logo-mark__caption,
  .logo-mark--hero,
  .logo-mark--hero::before,
  .logo-mark--hero::after,
  .logo-mark--hero .logo-mark__flag,
  .logo-mark--loader,
  .logo-mark--loader::before,
  .logo-mark--loader::after,
  .logo-mark--loader .logo-mark__flag,
  body.is-loaded .logo-mark--header,
  body.is-loaded .logo-mark--header::before,
  body.is-loaded .logo-mark--header::after,
  body.is-loaded .logo-mark--header .logo-mark__name,
  body.is-loaded .logo-mark--header .logo-mark__flag,
  body.is-loaded .logo-mark--header .logo-mark__caption {
    animation: none !important;
    filter: none !important;
    opacity: 0.92 !important;
    transform: none !important;
    box-shadow:
      0 0 3px rgba(0, 146, 70, 0.28),
      0 0 2px rgba(247, 245, 241, 0.18),
      0 0 3px rgba(206, 43, 55, 0.22) !important;
  }

  .logo-mark--header,
  .logo-mark--hero,
  .logo-mark--loader {
    box-shadow:
      0 0 0 1px rgba(247, 245, 241, 0.1),
      0 6px 18px rgba(0, 0, 0, 0.35) !important;
    opacity: 1 !important;
  }
}

.btn {
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease !important;
}

.btn:hover { transform: translateY(-3px); }

/* Marquee loop keyframes — track owns the animation in italian-viva */
@keyframes daMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
