:root {
  --bg: #0b0d13;
  --card: rgba(16, 21, 34, 0.88);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #e8ecf5;
  --muted: #7d8faf;
  --accent: #ff6d2d;
  --accent-soft: #ff8f5c;
  --accent-glow: rgba(255, 109, 45, 0.28);
}

* { box-sizing: border-box; }

html {
  background: #0b0d13;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    radial-gradient(circle at 14% 10%, rgba(61, 114, 255, 0.28) 0%, rgba(61, 114, 255, 0) 28%),
    radial-gradient(circle at 82% 14%, rgba(255, 109, 45, 0.22) 0%, rgba(255, 109, 45, 0) 26%),
    radial-gradient(circle at 80% 84%, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 34%),
    var(--bg);
  background-size: 60px 60px, 60px 60px, auto, auto, auto, auto;
  background-position: center, center, center, center, center, center;
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  display: grid;
  place-items: center;
}

.login-shell {
  width: 100%;
  max-width: 560px;
  padding: 1.25rem;
}

.intro-shell {
  max-width: 880px;
  padding: 1rem 1.2rem;
}

.login-card {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  padding: 1.15rem 1.2rem 1.2rem;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(61, 114, 255, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 109, 45, 0.1), transparent 30%);
  pointer-events: none;
}

.login-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.login-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 16px var(--accent-glow);
}

.login-topbar-note {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 109, 45, 0.28);
  background: rgba(255, 109, 45, 0.08);
  color: var(--accent-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.intro-shell .login-card {
  min-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  animation: pageFadeIn 0.55s ease-out both;
}

.intro-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 2.1rem;
  margin-bottom: 0.45rem;
}

.operator-mini-btn {
  display: inline-block;
  border-radius: 10px;
  border: 1px solid rgba(255, 109, 45, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(255, 109, 45, 0.14);
  color: #ffd2bf;
  font-weight: 700;
  padding: 0.42rem 0.68rem;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.operator-mini-btn:hover {
  background: rgba(255, 109, 45, 0.2);
  transform: translateY(-1px);
  border-color: rgba(255, 145, 95, 0.8);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
}

.logo-panel {
  width: 100%;
  height: 96px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 0.9rem;
}

.intro-logo {
  height: 136px;
  max-width: 520px;
  margin: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.85rem;
  background:
    radial-gradient(circle at 75% 26%, rgba(255, 109, 45, 0.2), transparent 44%),
    linear-gradient(120deg, #050505, #0f0f0f);
}

.brand-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08rem;
}

.brand-caf {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 2rem;
  line-height: 0.95;
  letter-spacing: 0.18em;
  color: #ffffff;
  font-weight: 800;
}

.brand-largo {
  color: var(--accent-soft);
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.15;
  max-width: 31ch;
}

.brand-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.32rem;
}

.brand-pill {
  border: 1px solid rgba(255, 109, 45, 0.7);
  border-radius: 999px;
  padding: 0.16rem 0.58rem;
  font-weight: 800;
  color: #ffb08e;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.brand-side-text {
  color: #ffffff;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
  line-height: 1;
}

.logo-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-fallback {
  font-family: Impact, "Trebuchet MS", sans-serif;
  color: var(--accent);
  font-size: 2rem;
}

h1 {
  margin: 1rem 0 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
}

.intro-shell h1 {
  font-size: 2rem;
  letter-spacing: 0.02em;
}

p {
  color: var(--muted);
  margin: 0.45rem 0 1rem;
  line-height: 1.65;
}

.hero-block {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 1rem;
  background:
    radial-gradient(circle at top right, rgba(50, 100, 255, 0.16), transparent 30%),
    linear-gradient(150deg, rgba(255, 109, 45, 0.16), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 34px rgba(0, 0, 0, 0.24);
  animation: riseIn 0.55s ease-out 0.06s both;
}

.hero-kicker {
  margin: 0 0 0.45rem;
  color: #ffd2bf;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28);
}

.hero-copy { margin-top: 0.5rem; }

.hero-subtitle {
  margin: 0.25rem 0 0.4rem;
  font-size: 1.04rem;
  color: #efefef;
}

.hero-note {
  margin: 0;
  color: #c6c6c6;
  font-size: 0.93rem;
}

label {
  display: block;
  color: var(--muted);
  margin-bottom: 0.82rem;
  font-size: 0.92rem;
  font-weight: 600;
}

input, button {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 11, 18, 0.85);
  color: var(--text);
  font: inherit;
  padding: 0.8rem 0.85rem;
}

input {
  margin-top: 0.42rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input:focus {
  border-color: rgba(255, 109, 45, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 109, 45, 0.12);
  outline: none;
}

button {
  margin-top: 0.35rem;
  border: none;
  background: linear-gradient(135deg, #ff6d2d, #ff8f5c);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 109, 45, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #ff7a42, #ff986d);
  box-shadow: 0 16px 34px rgba(255, 109, 45, 0.34);
}

.feedback {
  min-height: 1.2rem;
  margin-top: 0.8rem;
  color: #ffb290;
  font-size: 0.92rem;
}

a {
  color: #ffd0bd;
  text-decoration: none;
}

.back-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--muted);
}

.back-link:hover {
  color: #ffffff;
}

.prenota-cta {
  margin-top: 0.75rem;
  display: block;
  width: 100%;
  text-align: center;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 109, 45, 0.55);
  background: linear-gradient(135deg, #ff6d2d, #ff9d74);
  color: #101010;
  font-weight: 700;
  font-size: 1.05rem;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  align-items: stretch;
  margin-top: 0.35rem;
}

.intro-entry-grid {
  margin-top: 0.85rem;
  margin-bottom: 0.85rem;
}

.secondary-entry-row {
  margin: -0.2rem 0 0.9rem;
}

.single-entry-row {
  display: flex;
  margin: -0.2rem 0 0.9rem;
}

.single-entry-btn {
  width: calc(50% - 0.35rem);
}

.secondary-entry-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 109, 45, 0.52);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(255, 109, 45, 0.96), rgba(255, 157, 116, 0.9));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.secondary-entry-btn .entry-icon-svg {
  flex: 0 0 auto;
}

.secondary-entry-btn .entry-title,
.secondary-entry-btn .entry-desc {
  display: block;
}

.secondary-entry-btn .entry-title {
  color: #111;
}

.secondary-entry-btn .entry-desc {
  margin-top: 0.14rem;
  color: rgba(16, 16, 16, 0.85);
}

.secondary-entry-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 145, 95, 0.88);
  box-shadow: 0 20px 40px rgba(255, 109, 45, 0.24);
}

.secondary-entry-btn.is-disabled,
.entry-btn.is-disabled {
  position: relative;
  opacity: 0.88;
}

.secondary-entry-btn.is-disabled:hover,
.entry-btn.is-disabled:hover {
  transform: none;
  box-shadow: none;
}

.section-divider {
  height: 1px;
  margin: 0.3rem 0 0.85rem;
  background: linear-gradient(
    90deg,
    rgba(255, 109, 45, 0),
    rgba(255, 109, 45, 0.5) 34%,
    rgba(110, 162, 200, 0.5) 66%,
    rgba(110, 162, 200, 0)
  );
  opacity: 0.92;
  animation: dividerGlow 2.7s ease-in-out infinite;
}

.info-block {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.82rem 0.86rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top right, rgba(110, 162, 200, 0.08), transparent 28%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.04), rgba(255, 109, 45, 0.06));
  margin-bottom: 0.75rem;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .secondary-entry-btn,
body.light-theme .secondary-entry-btn {
  border-color: rgba(168, 120, 88, 0.24);
  background:
    radial-gradient(circle at top right, rgba(110, 162, 200, 0.08), transparent 26%),
    linear-gradient(135deg, rgba(255, 250, 247, 0.98), rgba(255, 239, 228, 0.96));
  box-shadow: 0 18px 34px rgba(170, 122, 93, 0.14);
}

[data-theme="light"] .secondary-entry-btn .entry-title,
body.light-theme .secondary-entry-btn .entry-title {
  color: #2f1d14;
}

[data-theme="light"] .secondary-entry-btn .entry-desc,
body.light-theme .secondary-entry-btn .entry-desc {
  color: #7a6558;
}

[data-theme="light"] .secondary-entry-btn:hover,
body.light-theme .secondary-entry-btn:hover {
  border-color: rgba(255, 109, 45, 0.28);
  box-shadow: 0 18px 36px rgba(255, 109, 45, 0.16);
}

[data-theme="light"] .info-block,
body.light-theme .info-block {
  background:
    radial-gradient(circle at top right, rgba(110, 162, 200, 0.08), transparent 28%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(250, 241, 235, 0.98));
  box-shadow: 0 14px 28px rgba(170, 122, 93, 0.12);
}

.info-block h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.7rem;
}

.hours-grid div {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  padding: 0.42rem 0.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.18);
}

.hours-grid strong {
  display: block;
  font-size: 0.89rem;
}

.hours-grid span {
  display: block;
  margin-top: 0.16rem;
  color: #d2d2d2;
  font-size: 0.83rem;
}

.map-block p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #d7d7d7;
}

.map-wrap {
  border: 1px solid rgba(255, 109, 45, 0.55);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 2px rgba(110, 162, 200, 0.32);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

.map-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.55rem;
  min-height: 42px;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 109, 45, 0.5);
  background: linear-gradient(135deg, #ff6d2d, #ff9d74);
  color: #101010;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.map-open-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 109, 45, 0.24);
}

.contact-block p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #d7d7d7;
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 48px;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(255, 109, 45, 0.5);
  background: linear-gradient(135deg, #ff6d2d, #ff9d74);
  color: #101010;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(255, 109, 45, 0.25);
}

.entry-btn {
  min-height: 210px;
  border-radius: 16px;
  border: 1px solid rgba(255, 109, 45, 0.55);
  background: linear-gradient(135deg, #ff6d2d, #ff9d74);
  color: #101010;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 1.15rem 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: riseIn 0.5s ease-out both;
}

.entry-btn::before,
.contact-btn::before,
.map-open-btn::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -35%;
  width: 46%;
  height: 320%;
  transform: rotate(18deg);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.34),
    rgba(255, 255, 255, 0)
  );
  opacity: 0;
  pointer-events: none;
}

.entry-btn:nth-child(1) {
  animation-delay: 0.12s;
}

.entry-btn:nth-child(2) {
  animation-delay: 0.18s;
}

.entry-btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 30px rgba(255, 109, 45, 0.24);
  border-color: rgba(255, 189, 165, 0.9);
}

.entry-btn:hover::before,
.contact-btn:hover::before,
.map-open-btn:hover::before {
  opacity: 1;
  animation: shineSweep 0.78s ease;
}

.entry-btn::after {
  content: "";
  position: absolute;
  top: -26px;
  right: -38px;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.entry-btn span {
  max-width: 22ch;
  line-height: 1.2;
}

.entry-icon-svg {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.entry-icon-svg svg {
  width: 23px;
  height: 23px;
  stroke: #111;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.entry-title {
  font-size: 1.2rem;
  line-height: 1.15;
}

.entry-desc {
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(16, 16, 16, 0.85);
}

.entry-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
  padding: 0.24rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 16, 16, 0.18);
  background: rgba(16, 16, 16, 0.12);
  color: rgba(16, 16, 16, 0.82);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.secondary-entry-btn .entry-badge {
  border-color: rgba(16, 16, 16, 0.18);
  background: rgba(16, 16, 16, 0.12);
  color: rgba(16, 16, 16, 0.82);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: auto;
}

.trust-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)),
    radial-gradient(circle at top right, rgba(110, 162, 200, 0.07), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 109, 45, 0.06));
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  animation: riseIn 0.46s ease-out both;
}

.trust-item:nth-child(1) {
  animation-delay: 0.2s;
}

.trust-item:nth-child(2) {
  animation-delay: 0.24s;
}

.trust-item:nth-child(3) {
  animation-delay: 0.28s;
}

.trust-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 109, 45, 0.45);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 109, 45, 0.12));
}

.trust-item strong {
  display: block;
  font-size: 0.92rem;
}

.trust-item span {
  display: block;
  margin-top: 0.25rem;
  color: #c9c9c9;
  font-size: 0.82rem;
  line-height: 1.3;
}

.back-link {
  display: inline-block;
  margin-top: 0.75rem;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dividerGlow {
  0%, 100% {
    opacity: 0.68;
  }
  50% {
    opacity: 1;
  }
}

@keyframes shineSweep {
  from {
    transform: translateX(-42px) rotate(18deg);
  }
  to {
    transform: translateX(430px) rotate(18deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-shell .login-card,
  .hero-block,
  .entry-btn,
  .trust-item,
  .section-divider {
    animation: none !important;
    transition: none !important;
  }
  .entry-btn::before,
  .contact-btn::before,
  .map-open-btn::before {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .intro-logo {
    height: auto;
    min-height: 122px;
  }
  .brand-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }
  .brand-caf {
    font-size: 2.45rem;
  }
  .brand-side {
    align-items: flex-start;
  }
  .brand-side-text {
    text-align: left;
  }
  .entry-grid {
    grid-template-columns: 1fr;
  }
  .single-entry-row {
    display: block;
  }
  .single-entry-btn {
    width: 100%;
  }
  .hours-grid {
    grid-template-columns: 1fr;
  }
  .contact-actions {
    grid-template-columns: 1fr;
  }
  .entry-btn {
    min-height: 170px;
  }
  .trust-row {
    grid-template-columns: 1fr;
  }
}
