/* ═══════════════════════════════════════════════════════
   TURATI CAFFÈ — Premium Identity
   Palette: White #FFFFFF · Black #0f0f0f · Red #c2002a · Green #004d23
   ═══════════════════════════════════════════════════════ */

:root {
  --red:        #c2002a;
  --red-light:  #e0003a;
  --green:      #004d23;
  --green-flag: #00a94f;
  --black:      #0f0f0f;
  --white:      #ffffff;
  --off-white:  #f7f5f2;
  --light-bg:   #e9e4dc;
  --text-dark:  #0f0f0f;
  --text-mid:   #2a2a2a;
  --text-muted: #999999;
  --gold:       #c9a54d;

  --font-serif:     'Playfair Display', Georgia, serif;
  --font-sans:      'Inter', 'Montserrat', Arial, sans-serif;
  --font-handwrite: 'Daniel', 'Caveat', cursive;

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

@font-face {
  font-family: 'Daniel';
  src: url('fonts/daniel.regular (1).otf') format('opentype');
  font-weight: normal; font-style: normal; font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── SCROLL ANIMATIONS ────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate { opacity: 0; }
.animate.visible {
  animation: fadeInUp 0.72s cubic-bezier(.22,.68,0,1.1) forwards;
}

.cards  .card.animate.visible:nth-child(2),
.pillars .pillar.animate.visible:nth-child(2),
.contact-grid .contact-item.animate.visible:nth-child(2) { animation-delay: 0.1s; }

.cards  .card.animate.visible:nth-child(3),
.pillars .pillar.animate.visible:nth-child(3),
.contact-grid .contact-item.animate.visible:nth-child(3) { animation-delay: 0.2s; }

.cards  .card.animate.visible:nth-child(4),
.pillars .pillar.animate.visible:nth-child(4) { animation-delay: 0.3s; }

/* ─── HERO PAGE-LOAD ANIMATIONS ────────────────────────── */
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero__eyebrow  { animation: heroReveal 0.9s ease 0.3s both; }
.hero__title    { animation: heroReveal 0.9s ease 0.55s both; }
.hero__tagline  { animation: heroReveal 0.9s ease 0.75s both; }
.hero__subtitle { animation: heroReveal 0.9s ease 0.95s both; }
.hero .btn      { animation: heroReveal 0.9s ease 1.15s both; }

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--black);
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
}
.navbar__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 14px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.navbar__logo img { height: 60px; width: auto; }
.navbar__links {
  display: flex; gap: 36px; flex: 1; justify-content: center;
}
.navbar__links a {
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); transition: color 0.2s;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
}
.navbar__links a:hover { color: var(--white); border-bottom-color: var(--red); }

/* ─── LANG SWITCHER ─────────────────────────────────────── */
.lang-switcher { display: flex; align-items: center; gap: 5px; }
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.35); padding: 4px 6px;
  transition: color 0.2s;
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active { color: var(--white); border-bottom: 1px solid var(--red); }
.lang-sep { color: rgba(255,255,255,0.12); font-size: 0.7rem; user-select: none; }

/* ─── HERO ──────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
  background: var(--black) url('images/turati-hero.png') center center / cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,0.74) 38%, rgba(0,0,0,0.16) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  max-width: 580px; padding: 140px 0 80px 9%;
}
.hero__eyebrow {
  font-size: 0.62rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 700; line-height: 1.05;
  color: var(--white); margin-bottom: 22px;
}
.hero__title em { font-style: italic; color: var(--gold); }
.hero__tagline {
  font-family: var(--font-handwrite);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  color: rgba(255,255,255,0.62); margin-bottom: 30px;
}
.hero__subtitle {
  font-size: 0.9rem; font-weight: 300;
  color: rgba(255,255,255,0.55); max-width: 420px;
  margin-bottom: 48px; line-height: 1.95; letter-spacing: 0.02em;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 13px 44px;
  font-family: var(--font-sans); font-size: 0.66rem;
  font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase;
  transition: all 0.3s ease;
}
.btn--red {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
}
.btn--red:hover { background: var(--red); border-color: var(--red); }

/* ─── FLAG STRIP ─────────────────────────────────────────── */
.flag-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 3px; }
.flag-strip__green { background: var(--green-flag); }
.flag-strip__white { background: var(--white); }
.flag-strip__red   { background: var(--red); }

/* ─── DIVIDER BAR ────────────────────────────────────────── */
.divider-text-bar {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 18px 32px; background: var(--black);
  border-top: 2px solid var(--red);
  color: rgba(255,255,255,0.35); font-size: 0.58rem; font-weight: 500;
  letter-spacing: 0.42em; text-transform: uppercase;
}
.divider-text-bar .dot { color: var(--red); opacity: 0.9; font-size: 0.5rem; }

/* ─── SECTIONS ───────────────────────────────────────────── */
.section { padding: 120px 0; position: relative; overflow: hidden; }
.section--white   { background: var(--white); }
.section--light   { background: var(--off-white); }
.section--lightbg { background: var(--light-bg); }

.section--white::before,
.section--lightbg::before,
.section--contact::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--noise);
  background-size: 300px 300px;
  pointer-events: none; z-index: 0;
}
.section > .container { position: relative; z-index: 1; }

.section--dark-accent { background: var(--black); }
.section--dark-accent .section__label { color: rgba(255,255,255,0.4); }
.section--dark-accent .section__title { color: var(--white); }
.section--dark-accent .pillar__text   { color: rgba(255,255,255,0.62); }

.section--contact {
  background: var(--off-white);
  border-top: 2px solid var(--red);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 56px; }

/* ─── LABELS & TITLES ────────────────────────────────────── */
.section__label {
  font-size: 0.6rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--red); margin-bottom: 20px; display: block;
}
.section__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 700; line-height: 1.12;
  color: var(--text-dark); margin-bottom: 36px;
}
.section__body {
  font-size: 0.96rem; font-weight: 300;
  color: var(--text-mid); line-height: 1.92;
  margin-bottom: 22px; letter-spacing: 0.01em;
}
.section__body strong { color: var(--text-dark); font-weight: 600; }
.section__body em { color: var(--red); font-style: italic; }

/* ─── READ MORE BUTTON ───────────────────────────────────── */
.read-more-btn {
  background: none; border: 1px solid var(--black);
  color: var(--black); padding: 11px 32px;
  font-family: var(--font-sans); font-size: 0.66rem;
  font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer; margin: 28px 0 0; display: inline-block;
  transition: background 0.28s, color 0.28s, border-color 0.28s;
}
.read-more-btn:hover {
  background: var(--red); color: var(--white); border-color: var(--red);
}
.about-extra { overflow: hidden; max-height: 0; transition: max-height 0.6s ease; }
.about-extra.expanded { max-height: 4000px; }
.story-heading {
  display: block; font-family: var(--font-serif);
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-dark); margin-top: 2.2em; margin-bottom: 0.5em;
}

/* ─── HELPERS ────────────────────────────────────────────── */
.center { text-align: center; }
.narrow { max-width: 620px; margin-left: auto; margin-right: auto; }

/* ─── TWO COLUMN — ASYMMETRIC ────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 56% 44%;
  gap: 96px; align-items: start;
}

/* DROP CAP on brand story first letter */
#about-body-1::first-letter {
  font-family: var(--font-serif);
  font-size: clamp(3.8rem, 6vw, 5.2rem);
  font-weight: 700; color: var(--red);
  float: left; line-height: 0.75;
  margin-right: 14px; margin-top: 8px;
}

/* ─── PRODUCT SHOWCASE ───────────────────────────────────── */
.product-showcase { overflow: hidden; }
.product-showcase img {
  width: 100%; height: auto; display: block;
  transition: transform 0.7s ease;
}
.product-showcase:hover img { transform: scale(1.02); }

/* ─── QUOTE BLOCK ────────────────────────────────────────── */
.quote-block {
  border-left: 1.5px solid var(--red);
  padding: 28px 36px; margin-top: 36px;
}
.quote-block::before { display: none; }
.quote-block blockquote {
  font-family: var(--font-serif); font-size: 1.3rem;
  font-style: italic; color: var(--text-dark);
  line-height: 1.62; margin-bottom: 18px;
}
.quote-block cite {
  font-size: 0.65rem; letter-spacing: 0.28em;
  color: var(--green); text-transform: uppercase; font-style: normal;
}

/* ─── ITALY BADGE ────────────────────────────────────────── */
.italy-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 36px; padding: 10px 24px;
  border: 0.5px solid rgba(0,0,0,0.2);
  font-size: 0.63rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dark);
}
.flag-mini {
  display: flex; width: 20px; height: 13px; overflow: hidden;
  border: 0.5px solid rgba(0,0,0,0.1);
}
.flag-mini span { flex: 1; display: block; }
.flag-mini .g { background: var(--green-flag); }
.flag-mini .w { background: var(--white); }
.flag-mini .r { background: var(--red); }

/* ─── CARDS — #smak ──────────────────────────────────────── */
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 72px;
  border-top: 0.5px solid rgba(0,0,0,0.15);
  border-bottom: 0.5px solid rgba(0,0,0,0.1);
}
.card {
  padding: 44px 36px;
  border-right: 0.5px solid rgba(0,0,0,0.08);
  transition: background 0.25s;
}
.card:last-child { border-right: none; }
.card:hover { background: rgba(194,0,42,0.025); }
.card__title {
  font-family: var(--font-serif); font-size: 1.1rem; font-style: italic;
  color: var(--text-dark); font-weight: 600;
  margin-bottom: 18px; padding-bottom: 16px;
  border-bottom: 1px solid var(--red);
}
.card__desc {
  font-size: 0.87rem; font-weight: 300;
  color: var(--text-mid); line-height: 1.78;
}
.card__bar { height: 1.5px; background: rgba(0,0,0,0.08); margin-bottom: 18px; }
.card__fill { height: 100%; background: var(--red); }

/* ─── PRODUCT TABS ──────────────────────────────────────── */
.product-tabs {
  display: flex; align-items: stretch; justify-content: center;
  margin-top: 40px;
  border-bottom: 1px solid rgba(0,0,0,0.13);
}
.product-tab {
  background: none; border: none; cursor: pointer;
  padding: 20px 60px; display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: all 0.22s;
}
.ptab__name {
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600;
  color: var(--text-muted); transition: color 0.22s;
}
.ptab__sub {
  font-size: 0.58rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-muted); transition: color 0.22s;
}
.product-tab.active .ptab__name,
.product-tab.active .ptab__sub { color: var(--text-dark); }
.product-tab.active { border-bottom-color: var(--red); }
.product-tab:hover .ptab__name { color: var(--text-dark); }
.ptab__sep {
  width: 1px; background: rgba(0,0,0,0.12); margin: 14px 0;
}

/* ─── PRODUCT PANELS ─────────────────────────────────────── */
.product-panel { display: none; }
.product-panel.active { display: block; }
.product-panel .section__title { margin-top: 56px; }

/* ─── SPEC TABLE — Tradizione ────────────────────────────── */
.spec-table {
  max-width: 680px; margin: 40px auto 0;
  border-top: 0.5px solid rgba(0,0,0,0.15);
  list-style: none;
}
.spec-row {
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 15px 0;
  border-bottom: 0.5px solid rgba(0,0,0,0.08);
  align-items: baseline;
}
.spec-row dt {
  font-size: 0.62rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--red); font-weight: 500;
}
.spec-row dd {
  font-size: 0.9rem; font-weight: 400;
  color: var(--text-dark); margin: 0;
}
.spec-organo {
  max-width: 680px; margin: 40px auto 0;
  padding: 28px 36px;
  border-left: 1.5px solid var(--red);
  background: rgba(0,0,0,0.025);
}
.spec-organo .spec-label {
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--red); display: block; margin-bottom: 12px; font-weight: 500;
}
.spec-organo p {
  font-family: var(--font-serif); font-size: 1.08rem;
  font-style: italic; color: var(--text-dark); line-height: 1.7;
}

/* ─── PILLARS — #jakosc ──────────────────────────────────── */
.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 80px;
  border-top: 0.5px solid rgba(255,255,255,0.1);
}
.pillar {
  padding: 44px 36px;
  border-right: 0.5px solid rgba(255,255,255,0.06);
}
.pillar:last-child { border-right: none; }
.pillar__num {
  font-family: var(--font-serif); font-size: 3.5rem; font-weight: 700;
  color: var(--red); line-height: 1; margin-bottom: 20px; display: block;
}
.pillar__title {
  font-family: var(--font-serif); font-size: 1.15rem;
  color: var(--white); margin-bottom: 14px;
  padding-bottom: 14px; border-bottom: 0.5px solid rgba(255,255,255,0.1);
}
.pillar__text {
  font-size: 0.87rem; font-weight: 300;
  color: rgba(255,255,255,0.62); line-height: 1.85;
}

/* ─── GREEN BANNER ───────────────────────────────────────── */
.green-banner {
  background: var(--green); color: var(--white);
  padding: 72px 48px; text-align: center;
  border-top: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
}
.green-banner h3 {
  font-family: var(--font-handwrite);
  font-size: clamp(1.8rem, 3vw, 2.9rem); font-weight: 400; margin-bottom: 12px;
}
.green-banner p { font-size: 0.84rem; font-weight: 300; opacity: 0.78; letter-spacing: 0.1em; }

/* ─── CONTACT ────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; margin-top: 72px;
  border: 1px solid rgba(0,0,0,0.12);
}
.contact-item {
  text-align: center; padding: 56px 32px;
  border-right: 1px solid rgba(0,0,0,0.1);
  transition: background 0.22s;
}
.contact-item:last-child { border-right: none; }
.contact-item:hover { background: rgba(194,0,42,0.04); }
.contact-item__icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin: 0 auto 22px;
  border: 1px solid var(--red); border-radius: 50%;
  color: var(--red);
}
.contact-item__icon svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.contact-item h4 {
  font-family: var(--font-serif); font-size: 0.78rem;
  color: var(--text-dark); margin-bottom: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.contact-item p { font-size: 0.88rem; font-weight: 300; color: var(--text-mid); line-height: 1.78; }
.contact-item a { color: var(--red); transition: color 0.2s; }
.contact-item a:hover { color: var(--text-dark); }

/* ─── BRAND INFO BAR ─────────────────────────────────────── */
.brand-info-bar {
  margin-top: 56px; padding: 24px 48px;
  border-top: 0.5px solid rgba(0,0,0,0.08);
}
.brand-info-bar__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: 6px 28px;
  font-size: 0.73rem; font-weight: 300;
  color: var(--text-muted); letter-spacing: 0.05em;
}
.brand-info-bar__name { font-weight: 500; color: var(--text-dark); letter-spacing: 0.08em; }
.brand-info-sep { color: var(--red); opacity: 0.35; font-size: 0.9rem; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--black); padding: 72px 32px 56px;
  text-align: center; border-top: 1px solid rgba(255,255,255,0.05);
}
.footer__inner { max-width: 680px; margin: 0 auto; }
.footer__logo { margin-bottom: 28px; }
.footer__logo img { height: 68px; width: auto; margin: 0 auto; }
.footer__copy { font-size: 0.7rem; color: rgba(255,255,255,0.2); letter-spacing: 0.12em; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cards   { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .card:nth-child(2)   { border-right: none; }
  .card:nth-child(3)   { border-top: 0.5px solid rgba(0,0,0,0.08); }
  .card:nth-child(4)   { border-top: 0.5px solid rgba(0,0,0,0.08); border-right: none; }
  .pillar:nth-child(2) { border-right: none; }
  .pillar:nth-child(3) { border-top: 0.5px solid rgba(255,255,255,0.06); }
  .pillar:nth-child(4) { border-top: 0.5px solid rgba(255,255,255,0.06); border-right: none; }
}
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; gap: 56px; }
  .hero__content { padding: 140px 32px 80px; max-width: 100%; }
  .navbar__links { gap: 18px; }
  .container { padding: 0 28px; }
  .green-banner { padding: 44px 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-item { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.1); }
  .contact-item:last-child { border-bottom: none; }
}
@media (max-width: 640px) {
  .navbar__links { display: none; }
  .hero__title { font-size: 2.6rem; }
  .navbar__inner { padding: 12px 20px; }
  .navbar__logo img { height: 48px; }
  .cards   { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .card   { border-right: none; border-top: none; border-bottom: 0.5px solid rgba(0,0,0,0.08); }
  .pillar { border-right: none; border-top: none; border-bottom: 0.5px solid rgba(255,255,255,0.06); }
  .card:nth-child(3), .card:nth-child(4) { border-top: none; }
  .pillar:nth-child(3), .pillar:nth-child(4) { border-top: none; }
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
}
