/* Panificio Celona - versione statica leggera stile Emergent */

:root {
  --crema: #fdfbf7;
  --crema-2: #faf4ea;
  --beige: #f3e7d8;
  --marrone: #4a3728;
  --marrone-2: #5b402e;
  --rosso: #8b1f24;
  --rosso-2: #a33236;
  --oro: #d9aa35;
  --oro-2: #edc258;
  --bianco: #ffffff;
  --testo: rgba(74, 55, 40, .78);
  --linea: rgba(74, 55, 40, .09);
  --ombra: 0 24px 70px rgba(74, 55, 40, .14);
  --ombra-soft: 0 12px 32px rgba(74, 55, 40, .08);
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--marrone);
  background: var(--crema);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
}

.section {
  padding: 108px 0;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: .98;
  color: var(--marrone);
  margin: 0;
  font-weight: 500;
}

h1 {
  font-size: clamp(4rem, 7.7vw, 7.6rem);
  letter-spacing: -.045em;
  color: var(--crema);
}

h2 {
  font-size: clamp(2.8rem, 4.4vw, 5rem);
  letter-spacing: -.035em;
}

h3 {
  font-size: 1.7rem;
}

em {
  color: var(--rosso);
  font-style: italic;
}

p {
  margin: 0 0 1rem;
}

.section-label {
  margin: 0 0 1.2rem;
  color: var(--rosso);
  text-transform: uppercase;
  letter-spacing: .35em;
  font-size: .82rem;
  font-weight: 800;
}

.gold-label {
  color: var(--oro);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 50px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  font-size: .96rem;
  box-shadow: var(--ombra-soft);
  transition: .22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(74, 55, 40, .16);
}

.btn-red {
  color: #fff;
  background: var(--rosso);
}

.btn-red:hover {
  background: var(--rosso-2);
}

.btn-gold {
  color: var(--marrone);
  background: var(--oro);
}

.btn-gold:hover {
  background: var(--oro-2);
}

.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
}

.btn-dark {
  color: #fff;
  background: var(--marrone);
}

.full {
  width: 100%;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: 84px;
  z-index: 50;
  background: rgba(253, 251, 247, .76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(74, 55, 40, .05);
  transition: .25s ease;
}

.site-header.scrolled {
  background: rgba(253, 251, 247, .94);
  box-shadow: 0 8px 30px rgba(74, 55, 40, .07);
}

.header-inner {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--marrone);
  color: var(--oro);
  box-shadow: var(--ombra-soft);
}

.brand-icon.small {
  width: 38px;
  height: 38px;
}

.brand-icon svg {
  width: 21px;
  height: 21px;
}

.brand-text strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 600;
}

.brand-text small,
.footer-brand small {
  display: block;
  margin-top: 3px;
  color: rgba(74, 55, 40, .48);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .72rem;
  font-weight: 800;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.desktop-nav a {
  color: rgba(74, 55, 40, .74);
  font-size: .95rem;
  font-weight: 700;
}

.desktop-nav a:hover {
  color: var(--rosso);
}

.header-call {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #fff;
  background: var(--rosso);
  border-radius: 999px;
  padding: .75rem 1.28rem;
  font-weight: 800;
  box-shadow: var(--ombra-soft);
}

.hamburger {
  display: none;
  border: 0;
  background: var(--marrone);
  width: 44px;
  height: 44px;
  border-radius: 999px;
}

.hamburger span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
}

/* Hero */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 15, 9, .72) 0%, rgba(24, 15, 9, .45) 36%, rgba(24, 15, 9, .08) 100%),
    linear-gradient(180deg, rgba(24, 15, 9, .10), rgba(24, 15, 9, .24));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  max-width: 1280px;
}

.hero-label {
  color: var(--oro);
  position: relative;
  padding-left: 48px;
}

.hero-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 33px;
  height: 1px;
  background: var(--oro);
}

.hero h1 {
  max-width: 680px;
}

.hero h1 em {
  color: var(--oro);
}

.hero-text {
  max-width: 665px;
  margin-top: 1.9rem;
  color: rgba(255, 255, 255, .88);
  font-size: 1.16rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.discover {
  display: inline-block;
  margin-top: 2.4rem;
  color: rgba(255, 255, 255, .66);
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: .86rem;
  font-weight: 800;
}

/* About */
.about-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(217, 170, 53, .05), transparent 28%),
    var(--crema);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 86px;
  align-items: center;
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--ombra);
  min-height: 520px;
}

.about-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 14, 8, .74), transparent 45%);
}

.about-image p {
  position: absolute;
  left: 30px;
  bottom: 24px;
  z-index: 2;
  color: #fff;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.72rem;
  font-style: italic;
}

.about-copy > p:not(.section-label) {
  color: var(--testo);
  max-width: 710px;
  font-size: 1.06rem;
  margin-bottom: 1.35rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 2.7rem;
}

.value-grid article {
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--ombra-soft);
}

.value-grid span {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(217, 170, 53, .14);
  color: var(--rosso);
  margin-bottom: .95rem;
}

.value-grid h3 {
  font-size: 1.25rem;
  margin-bottom: .45rem;
}

.value-grid p {
  color: rgba(74, 55, 40, .68);
  font-size: .9rem;
  margin: 0;
}

/* Products */
.products-section {
  background: var(--beige);
}

.section-title {
  margin-bottom: 3.7rem;
}

.section-title.centered {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: 3.7rem;
}

.section-title > p:not(.section-label) {
  color: var(--testo);
  font-size: 1.05rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.product-card {
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--linea);
  box-shadow: var(--ombra-soft);
  transition: .25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ombra);
}

.product-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.product-card div {
  padding: 22px;
}

.product-card h3 {
  margin-bottom: .65rem;
  font-size: 1.45rem;
}

.product-card p {
  color: rgba(74, 55, 40, .66);
  font-size: .92rem;
  margin: 0;
}

/* Offers */
.offers-section {
  background: var(--crema);
}

.offers-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 28px;
}

.offer-red {
  border-radius: 24px;
  padding: 42px;
  color: #fff;
  background: linear-gradient(135deg, #8b1f24 0%, #8f211f 58%, #6f1b1f 100%);
  box-shadow: var(--ombra);
}

.offer-pill {
  display: inline-flex;
  margin-bottom: 1.5rem;
  padding: .42rem .82rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  color: rgba(255, 255, 255, .76);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.offer-red h3 {
  color: #fff;
  font-size: clamp(2.3rem, 4.4vw, 4rem);
  line-height: .98;
  max-width: 780px;
  margin-bottom: 1.25rem;
}

.offer-red h3 em {
  color: var(--oro);
}

.offer-red > p:not(.offer-pill) {
  max-width: 735px;
  color: rgba(255, 255, 255, .82);
  margin-bottom: 1.4rem;
}

.offer-side {
  display: grid;
  gap: 24px;
}

.offer-side article {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--ombra-soft);
}

.offer-side article.beige {
  background: var(--beige);
}

.offer-side span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(217, 170, 53, .14);
  color: var(--rosso);
  margin-bottom: 1rem;
}

.offer-side h3 {
  font-size: 1.42rem;
  margin-bottom: .55rem;
}

.offer-side p {
  color: rgba(74, 55, 40, .68);
  margin: 0;
}

/* New place */
.new-place-section {
  padding: 116px 0;
  background:
    radial-gradient(circle at 24% 50%, rgba(255, 255, 255, .04), transparent 26%),
    var(--marrone);
  color: #fff;
  text-align: center;
}

.new-place-content {
  max-width: 850px;
}

.new-place-section h2 {
  color: #fff;
  margin-bottom: 1.55rem;
}

.new-place-section h2 em {
  color: var(--oro);
}

.new-place-section p:not(.section-label) {
  max-width: 740px;
  margin-inline: auto;
  color: rgba(255, 255, 255, .76);
  font-size: 1.06rem;
}

.social-mini {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.8rem;
}

.social-mini a {
  padding: .65rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .15);
  background: rgba(255, 255, 255, .10);
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  font-size: .88rem;
}

/* Location */
.location-section {
  background: var(--crema);
}

.location-grid {
  display: grid;
  grid-template-columns: .95fr 1fr;
  gap: 70px;
  align-items: center;
}

.location-grid > div > p:not(.section-label) {
  color: var(--testo);
  max-width: 590px;
  font-size: 1.05rem;
}

.info-list {
  display: grid;
  gap: 18px;
  margin-top: 2rem;
}

.info-list article {
  display: flex;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--ombra-soft);
}

.info-list span {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--rosso);
  background: rgba(217, 170, 53, .13);
  border-radius: 999px;
}

.info-list small {
  display: block;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: rgba(74, 55, 40, .45);
  font-size: .72rem;
  font-weight: 800;
}

.info-list strong {
  display: block;
  font-size: .98rem;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.5rem;
}

.map-card {
  overflow: hidden;
  height: 540px;
  border-radius: 22px;
  box-shadow: var(--ombra);
  border: 1px solid var(--linea);
}

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

/* Social */
.social-section {
  background: var(--beige);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.social-card {
  min-height: 210px;
  padding: 28px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--linea);
  box-shadow: var(--ombra-soft);
  transition: .23s ease;
}

.social-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ombra);
}

.social-card span {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  margin-bottom: 1.25rem;
}

.ig {
  background: linear-gradient(135deg, #feda75, #fa7e1e, #d62976);
}

.fb {
  background: #1877f2;
}

.wa {
  background: #25d366;
}

.mail {
  background: var(--marrone);
}

.social-card h3 {
  font-size: 1.35rem;
  margin-bottom: .1rem;
}

.social-card strong {
  display: block;
  color: var(--marrone);
  font-size: .93rem;
  margin-bottom: .7rem;
}

.social-card p {
  color: rgba(74, 55, 40, .66);
  font-size: .9rem;
  margin: 0;
}

/* Contact */
.contact-section {
  background: var(--crema);
}

.contact-container {
  max-width: 790px;
}

.contact-form {
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--linea);
  box-shadow: var(--ombra-soft);
  padding: 42px;
}

.contact-form label {
  display: block;
  margin-bottom: 1.25rem;
}

.contact-form label span {
  display: block;
  margin-bottom: .65rem;
  color: rgba(74, 55, 40, .65);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(74, 55, 40, .15);
  background: var(--crema);
  color: var(--marrone);
  border-radius: 16px;
  padding: 15px 18px;
  outline: 0;
  transition: .2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--oro);
  box-shadow: 0 0 0 3px rgba(217, 170, 53, .22);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  margin: 1rem 0 0;
  text-align: center;
  color: rgba(74, 55, 40, .44);
  font-size: .8rem;
}

/* Footer */
.footer {
  background: var(--marrone);
  color: #fff;
  padding: 58px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1fr 1fr;
  gap: 44px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1rem;
}

.footer-brand strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  line-height: 1;
}

.footer-brand small {
  color: rgba(255, 255, 255, .55);
}

.footer p {
  color: rgba(255, 255, 255, .72);
  margin: 0;
  max-width: 280px;
}

.footer strong {
  display: block;
  margin-bottom: 14px;
}

.footer a {
  display: block;
  color: rgba(255, 255, 255, .72);
  margin-bottom: 8px;
}

.footer a:hover {
  color: var(--oro);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .56);
  font-size: .82rem;
}

/* Floating */
.floating-actions {
  position: fixed;
  right: 24px;
  bottom: 26px;
  z-index: 45;
  display: grid;
  gap: 13px;
}

.floating-actions a,
.floating-actions button {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 1.3rem;
  box-shadow: var(--ombra-soft);
}

.float-wa {
  background: #25d366;
}

.float-phone {
  background: var(--rosso);
}

.float-top {
  background: var(--marrone);
}

.mobile-bottom {
  display: none;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 22px;
  z-index: 60;
  max-width: 880px;
  margin: auto;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--linea);
  border-radius: 22px;
  box-shadow: var(--ombra);
  padding: 18px;
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
}

.cookie-banner p {
  color: rgba(74, 55, 40, .68);
  margin: .15rem 0 0;
  font-size: .9rem;
}

.cookie-banner button {
  border: 0;
  border-radius: 999px;
  padding: .75rem 1rem;
  font-weight: 800;
}

#cookieReject {
  background: var(--beige);
  color: var(--marrone);
}

#cookieAccept {
  background: var(--rosso);
  color: #fff;
}

.toast {
  position: fixed;
  left: 50%;
  top: 18px;
  z-index: 80;
  transform: translate(-50%, -120%);
  background: #fff;
  color: var(--marrone);
  border: 1px solid var(--linea);
  box-shadow: var(--ombra);
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 800;
  transition: .3s ease;
}

.toast.show {
  transform: translate(-50%, 0);
}

/* Responsive */
@media (max-width: 1100px) {
  .desktop-nav,
  .header-call {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .mobile-nav {
    position: fixed;
    top: 84px;
    left: 16px;
    right: 16px;
    z-index: 51;
    display: grid;
    gap: 4px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(253, 251, 247, .98);
    border: 1px solid var(--linea);
    box-shadow: var(--ombra);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: .22s ease;
  }

  .mobile-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-nav a {
    padding: 13px 14px;
    border-radius: 14px;
    font-weight: 800;
  }

  .mobile-nav a:hover {
    background: var(--beige);
  }

  .mobile-call {
    color: #fff !important;
    background: var(--rosso);
    text-align: center;
    justify-content: center;
  }

  .about-grid,
  .location-grid,
  .offers-grid {
    grid-template-columns: 1fr;
  }

  .products-grid,
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 700px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding: 74px 0;
  }

  .site-header,
  .header-inner {
    height: 72px;
  }

  .mobile-nav {
    top: 72px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: 1.32rem;
  }

  .brand-text small {
    font-size: .62rem;
  }

  .hero {
    min-height: 100svh;
    align-items: end;
    padding-bottom: 80px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(24, 15, 9, .20), rgba(24, 15, 9, .78)),
      linear-gradient(90deg, rgba(24, 15, 9, .60), rgba(24, 15, 9, .16));
  }

  .hero h1 {
    font-size: clamp(3.1rem, 15vw, 4.6rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-buttons {
    display: grid;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .discover {
    display: none;
  }

  .about-image,
  .about-image img {
    min-height: auto;
    height: 420px;
  }

  .value-grid,
  .products-grid,
  .social-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .offer-red {
    padding: 28px;
  }

  .new-place-section {
    padding: 82px 0;
  }

  .map-card {
    height: 390px;
  }

  .location-actions {
    display: grid;
  }

  .location-actions .btn {
    width: 100%;
  }

  .contact-form {
    padding: 24px;
  }

  .footer {
    padding-bottom: 92px;
  }

  .footer-bottom {
    display: grid;
  }

  .floating-actions {
    display: none;
  }

  .mobile-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    height: 72px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: rgba(253, 251, 247, .96);
    border-top: 1px solid var(--linea);
    backdrop-filter: blur(18px);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .mobile-bottom a,
  .mobile-bottom button {
    border: 0;
    background: transparent;
    color: var(--marrone);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-weight: 800;
  }

  .mobile-bottom span {
    font-size: .68rem;
  }

  .cookie-banner {
    display: none !important;
  }
}
