/* ═══════════════════════════════════════════════════════
   KRIS SRL RESTAURI — stylesheet
   Colori: navy #1A2E4A · giallo #F5C118 · bianco #FFFFFF
═══════════════════════════════════════════════════════ */

:root {
  --navy:   #1A2E4A;
  --navy2:  #0F1E30;
  --yellow: #F5C118;
  --yellow2:#D4A800;
  --white:  #FFFFFF;
  --cream:  #F7F5F0;
  --grey:   #6B7280;
  --grey-l: #E5E7EB;
  --text:   #1F2937;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Reveal animation ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s ease;
}
.btn--primary {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
}
.btn--primary:hover {
  background: var(--yellow2);
  border-color: var(--yellow2);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
}
.btn--full { width: 100%; justify-content: center; }

/* ── Section typography ───────────────────────────── */
.section-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-title em {
  font-style: normal;
  color: var(--yellow);
}
.section-sub {
  font-size: 1rem;
  color: var(--grey);
  max-width: 560px;
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: 56px;
}

/* ══════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo-img { height: 44px; object-fit: contain; }
.nav__logo-img--light { display: none; }
.nav.scrolled .nav__logo-img--dark,
.nav__logo-img--dark { display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--white);
  opacity: .85;
  transition: opacity .2s;
}
.nav__links a:hover { opacity: 1; }
.nav__cta {
  background: var(--yellow) !important;
  color: var(--navy) !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700 !important;
  opacity: 1 !important;
}
.nav__cta:hover { background: var(--yellow2) !important; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .3s;
}
.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--navy2);
  padding: 16px 24px 24px;
}
.nav__mobile.open { display: flex; }
.nav__mob-link {
  color: var(--white);
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(245,193,24,.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(245,193,24,.04) 0%, transparent 60%);
}
/* Brick pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 30px,
    rgba(255,255,255,.015) 30px,
    rgba(255,255,255,.015) 31px
  ),
  repeating-linear-gradient(
    90deg,
    transparent,
    transparent 60px,
    rgba(255,255,255,.015) 60px,
    rgba(255,255,255,.015) 61px
  );
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 140px 24px 100px;
  max-width: 760px;
}
.hero__label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero__title em {
  font-style: normal;
  color: var(--yellow);
}
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,.7);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero__scroll span {
  display: block;
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--yellow));
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%,100% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

/* ══════════════════════════════════════════════════
   STATS
══════════════════════════════════════════════════ */
.stats {
  background: var(--navy2);
  padding: 60px 0;
  border-top: 1px solid rgba(245,193,24,.15);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  text-align: center;
  padding: 20px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.stat:last-child { border-right: none; }
.stat__n {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__n.static {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}
.stat__label {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════
   SERVIZI
══════════════════════════════════════════════════ */
.servizi {
  padding: 100px 0;
  background: var(--white);
}
.servizi__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.servizio {
  padding: 40px 36px;
  border: 1px solid var(--grey-l);
  transition: all .3s ease;
  cursor: default;
}
.servizio:hover {
  background: var(--navy);
  border-color: var(--navy);
}
.servizio:hover h3,
.servizio:hover p { color: var(--white); }
.servizio:hover .servizio__icon { color: var(--yellow); }
.servizio__icon {
  width: 48px;
  height: 48px;
  color: var(--navy);
  margin-bottom: 20px;
  transition: color .3s;
}
.servizio h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  transition: color .3s;
}
.servizio p {
  font-size: .9rem;
  color: var(--grey);
  line-height: 1.65;
  transition: color .3s;
}

/* ══════════════════════════════════════════════════
   CHI SIAMO
══════════════════════════════════════════════════ */
.chisiamo {
  padding: 100px 0;
  background: var(--cream);
}
.chisiamo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.chisiamo__img-wrap {
  aspect-ratio: 4/5;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.chisiamo__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: white;
  font-size: .85rem;
  opacity: .5;
}
.chisiamo__visual { position: relative; }
.chisiamo__badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--yellow);
  color: var(--navy);
  padding: 20px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}
.chisiamo__badge strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
}
.chisiamo__badge span {
  font-size: .8rem;
  font-weight: 500;
}
.chisiamo__text p {
  color: var(--grey);
  margin-bottom: 16px;
  font-size: .97rem;
  line-height: 1.75;
}
.chisiamo__valori {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 32px;
}
.valore {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
}
.valore__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   LAVORI / PORTFOLIO
══════════════════════════════════════════════════ */
.lavori {
  padding: 100px 0;
  background: var(--white);
}
.lavori__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 32px;
}
.lavoro-placeholder {
  aspect-ratio: 4/3;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .3s;
  border: 2px dashed rgba(245,193,24,.2);
}
.lavoro-placeholder:hover { background: var(--navy2); border-color: rgba(245,193,24,.5); }
.lavoro-ph__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.4);
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Quando ci sono foto reali */
.lavoro-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}
.lavoro-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .5s ease;
}
.lavoro-item:hover img { transform: scale(1.04); }

/* Instagram feed Elfsight */
.instagram-feed {
  margin-bottom: 40px;
  min-height: 300px;
}

.lavori__note {
  text-align: center;
  color: var(--grey);
  font-size: .9rem;
}
.lavori__note a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* ══════════════════════════════════════════════════
   CONTATTI
══════════════════════════════════════════════════ */
.contatti {
  padding: 100px 0;
  background: var(--cream);
}
.contatti__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contatti__info p {
  color: var(--grey);
  margin-bottom: 32px;
  font-size: .97rem;
  line-height: 1.75;
}
.contatti__items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contatti__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--navy);
  font-size: .95rem;
  line-height: 1.5;
}
.contatti__item svg { flex-shrink: 0; margin-top: 2px; color: var(--yellow); }

/* Form */
.contatti__form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--grey-l);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note {
  font-size: .78rem;
  color: var(--grey);
  margin-top: 10px;
  text-align: center;
}
.form-success {
  display: none;
  background: #D1FAE5;
  color: #065F46;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  margin-top: 12px;
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer {
  background: var(--navy2);
  color: rgba(255,255,255,.6);
  padding: 60px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__logo {
  height: 42px;
  object-fit: contain;
  margin-bottom: 16px;
}
.footer__brand p {
  font-size: .85rem;
  line-height: 1.65;
  max-width: 240px;
}
.footer__col h4 {
  font-size: .8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer__col a,
.footer__col span {
  display: block;
  font-size: .85rem;
  margin-bottom: 10px;
  transition: color .2s;
  line-height: 1.5;
}
.footer__col a:hover { color: var(--yellow); }
.footer__bottom {
  padding: 20px 0;
  text-align: center;
  font-size: .78rem;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .servizi__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.08); }

  .servizi__grid { grid-template-columns: 1fr; }
  .servizio { padding: 32px 24px; }

  .chisiamo__grid { grid-template-columns: 1fr; gap: 48px; }
  .chisiamo__badge { right: 0; bottom: -16px; }

  .lavori__grid { grid-template-columns: 1fr 1fr; }

  .contatti__grid { grid-template-columns: 1fr; gap: 40px; }
  .contatti__form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 24px; }

  .chisiamo__valori { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════
   COOKIE BANNER & MODAL
══════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--navy2);
  border-top: 2px solid var(--yellow);
  padding: 20px 24px;
  transform: translateY(100%);
  transition: transform .4s ease;
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cookie-banner__text { flex: 1; min-width: 260px; }
.cookie-banner__text strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 4px;
}
.cookie-banner__text p {
  color: rgba(255,255,255,.65);
  font-size: .83rem;
  line-height: 1.55;
  margin: 0;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.cookie-btn--accept {
  background: var(--yellow);
  color: var(--navy);
  border-color: var(--yellow);
}
.cookie-btn--accept:hover { background: var(--yellow2); border-color: var(--yellow2); }
.cookie-btn--reject {
  background: transparent;
  color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.25);
}
.cookie-btn--reject:hover { border-color: rgba(255,255,255,.6); color: var(--white); }
.cookie-btn--settings {
  background: transparent;
  color: rgba(255,255,255,.5);
  border-color: transparent;
  text-decoration: underline;
  padding-left: 0;
}
.cookie-btn--settings:hover { color: var(--white); }

/* Modal */
.cookie-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 10000;
}
.cookie-overlay.visible { display: block; }
.cookie-modal {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
  width: 90%;
  max-width: 520px;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.cookie-modal.visible { display: block; }
.cookie-modal__head {
  background: var(--navy);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal__head h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}
.cookie-modal__close {
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  transition: color .2s;
}
.cookie-modal__close:hover { color: var(--white); }
.cookie-modal__body { padding: 8px 0; }
.cookie-pref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--grey-l);
}
.cookie-pref:last-child { border-bottom: none; }
.cookie-pref__info { flex: 1; }
.cookie-pref__info strong {
  display: block;
  font-size: .9rem;
  color: var(--navy);
  margin-bottom: 2px;
}
.cookie-pref__info p {
  font-size: .8rem;
  color: var(--grey);
  line-height: 1.4;
  margin: 0;
}
/* Toggle switch */
.cookie-toggle {
  flex-shrink: 0;
  position: relative;
  cursor: pointer;
}
.cookie-toggle input { display: none; }
.cookie-toggle__slider {
  display: block;
  width: 44px;
  height: 24px;
  background: var(--grey-l);
  border-radius: 24px;
  transition: background .25s;
  position: relative;
}
.cookie-toggle__slider::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: var(--white);
  border-radius: 50%;
  transition: transform .25s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.cookie-toggle input:checked + .cookie-toggle__slider { background: var(--yellow); }
.cookie-toggle input:checked + .cookie-toggle__slider::after { transform: translateX(20px); }
.cookie-toggle--locked {
  font-size: .75rem;
  color: var(--grey);
  font-weight: 600;
  letter-spacing: .03em;
  cursor: default;
}
.cookie-modal__foot {
  padding: 16px 24px;
  background: var(--cream);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-link {
  font-size: .8rem;
  color: var(--grey);
  text-decoration: underline;
  transition: color .2s;
}
.cookie-link:hover { color: var(--navy); }
.cookie-modal__foot .cookie-btn--accept { margin-left: auto; }

@media (max-width: 480px) {
  .lavori__grid { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
}
