/* ============================================================
   Bar Centrale Nprofilo Casacalenda — Styles
   Palette: Plum (#5B2C6F) + Amber (#D4A84B)
   Fonts: Cormorant Garamond (serif) + Lato (sans)
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --plum-50:  #f5f0f7;
  --plum-100: #ece0ef;
  --plum-200: #d8bfd8;
  --plum-400: #9b59b6;
  --plum-600: #7d3c98;
  --plum-700: #5B2C6F;
  --plum-800: #4a2359;
  --plum-900: #2e1538;

  --amber-50:  #fdf8ec;
  --amber-100: #f9edc8;
  --amber-200: #f2d99a;
  --amber-400: #D4A84B;
  --amber-500: #c49a38;
  --amber-600: #a67c2a;

  --cream: #faf8f5;
  --warm-gray: #6b6560;
  --dark: #1a1518;
  --white: #ffffff;

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Lato', system-ui, -apple-system, sans-serif;

  --max-width: 1200px;
  --header-height: 72px;
}

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

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--amber-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--plum-700);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber-500);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 20px;
  color: var(--dark);
}

.section-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--warm-gray);
  max-width: 560px;
}

.text-accent {
  color: var(--plum-700);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--amber-400);
  color: var(--dark);
  border-color: var(--amber-400);
}

.btn-primary:hover {
  background: var(--amber-500);
  border-color: var(--amber-500);
  color: var(--dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 168, 75, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(91, 44, 111, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(250, 248, 245, 0.97);
  box-shadow: 0 2px 20px rgba(91, 44, 111, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark);
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--amber-400);
  border: 1.5px solid var(--amber-400);
  border-radius: 4px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--dark);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-menu a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--amber-400);
  transition: width 0.25s ease;
}

.nav-menu a:hover {
  color: var(--plum-700);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--plum-700);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 0.85rem !important;
  letter-spacing: 0.04em !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--plum-800);
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--dark);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url('https://images.pexels.com/photos/157213/pexels-photo-157213.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1280')
    center center / cover no-repeat;
  z-index: 0;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(46, 21, 56, 0.72) 0%,
    rgba(46, 21, 56, 0.65) 50%,
    rgba(26, 21, 24, 0.80) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 0 24px;
  padding-top: var(--header-height);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-200);
  margin-bottom: 28px;
  padding: 8px 18px;
  border: 1px solid rgba(212, 168, 75, 0.35);
  border-radius: 100px;
  background: rgba(212, 168, 75, 0.08);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-subheadline {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.5);
  animation: scrollBounce 2s ease-in-out infinite;
  text-decoration: none;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- About ---------- */
.about {
  padding: 100px 0;
  background: var(--cream);
}

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

.about-image-wrap {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(91, 44, 111, 0.12);
}

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

.about-content {
  padding: 20px 0;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--warm-gray);
  margin-bottom: 18px;
}

.about-signature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--plum-100);
}

.signature-line {
  width: 48px;
  height: 2px;
  background: var(--amber-400);
  flex-shrink: 0;
}

.signature-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--plum-700);
}

/* ---------- Experience ---------- */
.experience {
  padding: 100px 0;
  background: var(--plum-900);
}

.experience .section-label {
  color: var(--amber-400);
}

.experience .section-title {
  color: var(--white);
}

.experience .section-title .text-accent {
  color: var(--amber-400);
}

.experience .section-lead {
  color: rgba(255, 255, 255, 0.6);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.exp-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 40px 32px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.exp-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-4px);
}

.exp-icon {
  margin-bottom: 24px;
}

.exp-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
}

.exp-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Offerings ---------- */
.offerings {
  padding: 100px 0;
  background: var(--cream);
}

.offerings-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.offerings-text {
  position: sticky;
  top: 120px;
}

.offerings-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.offering-col {
  background: var(--white);
  border: 1px solid var(--plum-100);
  border-radius: 8px;
  padding: 32px 28px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.offering-col:hover {
  box-shadow: 0 12px 40px rgba(91, 44, 111, 0.1);
  transform: translateY(-2px);
}

.offering-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--plum-700);
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--plum-100);
}

.offering-list {
  list-style: none;
}

.offering-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(91, 44, 111, 0.06);
}

.offering-list li:last-child {
  border-bottom: none;
}

.offering-item-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}

.offering-item-desc {
  font-size: 0.82rem;
  color: var(--warm-gray);
  text-align: right;
  line-height: 1.4;
}

/* ---------- Visit ---------- */
.visit {
  padding: 100px 0;
  background: var(--white);
}

.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.visit-address {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 1rem;
  color: var(--dark);
  margin: 28px 0;
}

.visit-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.visit-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.visit-contact-item:hover {
  color: var(--plum-700);
}

.visit-hours h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--plum-700);
  margin-bottom: 16px;
}

.visit-hours ul {
  list-style: none;
}

.visit-hours li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0;
  border-bottom: 1px solid var(--plum-50);
  font-size: 0.95rem;
  color: var(--warm-gray);
}

.visit-hours li span:first-child {
  color: var(--dark);
  font-weight: 500;
}

.visit-map {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.visit-map-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(91, 44, 111, 0.1);
}

.btn-map {
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* ---------- Contact ---------- */
.contact {
  padding: 100px 0;
  background: var(--plum-900);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact .section-label {
  color: var(--amber-400);
}

.contact .section-title {
  color: var(--white);
}

.contact .section-title .text-accent {
  color: var(--amber-400);
}

.contact .section-lead {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group-full {
  margin-bottom: 24px;
}

.form-group label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--amber-400);
  background: rgba(255, 255, 255, 0.1);
}

.form-group select option {
  background: var(--plum-800);
  color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 0.95rem;
  padding: 16px 28px;
}

.form-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-top: 0;
}

.form-note a {
  color: var(--amber-400);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--amber-200);
  background: rgba(212, 168, 75, 0.1);
  border: 1px solid rgba(212, 168, 75, 0.25);
  border-radius: 4px;
  padding: 14px 18px;
  margin-top: 16px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  padding: 56px 0 32px;
}

.footer-top {
  text-align: center;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand .logo-mark {
  color: var(--amber-400);
  border-color: var(--amber-400);
}

.footer-brand .logo-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-contact-small {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-contact-small a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}

.footer-contact-small a:hover {
  color: var(--amber-400);
}

/* ---------- Scroll Reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fallback: always visible if JS is disabled or prefers-reduced-motion */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .about-grid,
  .offerings-layout,
  .visit-grid,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .offerings-text {
    position: static;
  }

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

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    border-bottom: 1px solid transparent;
  }

  .nav-menu.open {
    max-height: 400px;
    padding: 16px 0;
    border-bottom: 1px solid var(--plum-100);
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 14px 28px;
    font-size: 1rem;
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-cta {
    margin: 8px 28px 16px;
    text-align: center;
    display: block !important;
  }

  .hero-headline {
    font-size: clamp(1.6rem, 7vw, 2.4rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .experience-grid,
  .offerings-columns {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .about,
  .experience,
  .offerings,
  .visit,
  .contact {
    padding: 72px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-badge {
    font-size: 0.7rem;
  }
}
