/* =============================================
   Hotel La Vignetta Milano — Stylesheet
   ============================================= */

:root {
  --gold:    #c19b76;
  --dark:    #2a2a2a;
  --grey:    #666;
  --light:   #f7f5f2;
  --white:   #ffffff;
  --border:  #e0dbd5;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', serif;
  color: var(--dark);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

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

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: normal; letter-spacing: .04em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p  { font-family: -apple-system, 'Segoe UI', sans-serif; color: var(--grey); }

.section-title {
  text-align: center;
  margin-bottom: .5rem;
}
.section-subtitle {
  text-align: center;
  font-family: -apple-system, sans-serif;
  color: var(--grey);
  margin-bottom: 3rem;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.gold-line {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: .8rem auto 1.2rem;
}

/* --- Container --- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  font-family: -apple-system, sans-serif;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all .25s ease;
  cursor: pointer;
  border: none;
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: #a8845f; }
.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover { background: var(--gold); color: var(--white); }
.btn-white {
  background: var(--white);
  color: var(--dark);
}
.btn-white:hover { background: var(--light); }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(30,30,30,.97);
  height: var(--header-h);
  backdrop-filter: blur(4px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
}
.logo { display: flex; flex-direction: column; gap: 1px; }
.logo-fallback {
  color: var(--gold);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-style: italic;
  letter-spacing: .06em;
  line-height: 1.2;
}
.logo-tagline {
  color: var(--white);
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .7;
}
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  color: rgba(255,255,255,.8);
  font-family: -apple-system, sans-serif;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.lang-switch {
  border: 1px solid rgba(255,255,255,.4);
  padding: .25rem .6rem;
  border-radius: 2px;
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all .3s;
}

/* ===== HERO SLIDER ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  margin-top: var(--header-h);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}
.slide.active { opacity: 1; }
.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.5) 100%);
}
.hero-content {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--white);
  z-index: 2;
  width: 90%;
  max-width: 700px;
}
.hero-content h1 { margin-bottom: .5rem; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero-content p {
  color: rgba(255,255,255,.85);
  font-family: -apple-system, sans-serif;
  margin-bottom: 1.8rem;
  font-size: 1.05rem;
}
.slider-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.slider-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .3s;
}
.slider-dots button.active { background: var(--white); }

/* ===== SECTIONS ===== */
section { padding: 80px 0; }
section.bg-light { background: var(--light); }

/* ===== INTRO STRIP ===== */
.intro-strip {
  background: var(--dark);
  color: var(--white);
  padding: 36px 0;
}
.intro-strip .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
  text-align: center;
}
.intro-item h3 { color: var(--gold); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.intro-item p { color: rgba(255,255,255,.6); font-size: .85rem; font-family: -apple-system, sans-serif; }

/* ===== ABOUT SPLIT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-img img { width: 100%; height: 480px; object-fit: cover; }
.about-text h2 { margin-bottom: .5rem; }
.about-text p { margin-bottom: 1.2rem; }

/* ===== ROOMS GRID ===== */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.room-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow .3s;
}
.room-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.room-card-img {
  height: 240px;
  overflow: hidden;
}
.room-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.room-card:hover .room-card-img img { transform: scale(1.04); }
.room-card-body { padding: 24px; }
.room-card-body h3 { margin-bottom: .4rem; }
.room-card-body p { font-size: .9rem; margin-bottom: 1rem; }
.room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.2rem;
}
.room-meta span {
  font-family: -apple-system, sans-serif;
  font-size: .75rem;
  letter-spacing: .05em;
  color: var(--grey);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 2px;
}

/* ===== SERVICES GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
  text-align: center;
}
.service-item { padding: 24px 16px; }
.service-icon {
  font-size: 2.2rem;
  margin-bottom: .8rem;
  line-height: 1;
}
.service-item h3 { font-size: 1rem; margin-bottom: .4rem; letter-spacing: .04em; }
.service-item p { font-size: .875rem; }

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 8px;
}
.gallery-grid .wide  { grid-column: span 2; }
.gallery-grid .tall  { grid-row: span 2; }
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .3s;
  cursor: pointer;
}
.gallery-grid img:hover { opacity: .88; }

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 64px 24px;
}
.cta-band h2 { margin-bottom: .5rem; }
.cta-band p { color: rgba(255,255,255,.65); margin-bottom: 2rem; font-family: -apple-system, sans-serif; }
.cta-band .btn-gold { margin: 0 .5rem; }
.cta-band .btn-outline { border-color: rgba(255,255,255,.4); color: rgba(255,255,255,.8); }
.cta-band .btn-outline:hover { border-color: var(--white); color: var(--white); background: transparent; }

/* ===== MAP + CONTACT ===== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.map-placeholder {
  height: 400px;
  background: var(--light);
  border: 1px solid var(--border);
  overflow: hidden;
}
.map-placeholder iframe { width: 100%; height: 100%; border: 0; }
.info-block { margin-bottom: 1.5rem; }
.info-block h4 {
  font-family: -apple-system, sans-serif;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .35rem;
}
.info-block p { font-size: .95rem; }

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-family: -apple-system, sans-serif;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: -apple-system, sans-serif;
  font-size: .95rem;
  color: var(--dark);
  outline: none;
  transition: border-color .2s;
  border-radius: 0;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert {
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  font-family: -apple-system, sans-serif;
  font-size: .9rem;
  border-radius: 2px;
}
.alert-ok  { background: #f0faf0; border: 1px solid #b2dfb2; color: #2e7d32; }
.alert-err { background: #fff0f0; border: 1px solid #ffb2b2; color: #b00; }

/* ===== PAGE HERO ===== */
.page-hero {
  height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-top: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-content h1 { margin-bottom: .3rem; }
.page-hero-content p {
  color: rgba(255,255,255,.75);
  font-family: -apple-system, sans-serif;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding: 64px 24px 48px;
  max-width: 1140px;
  margin: 0 auto;
}
.footer-col h4 {
  color: var(--white);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: -apple-system, sans-serif;
}
.footer-col p, .footer-col a {
  font-family: -apple-system, sans-serif;
  font-size: .875rem;
  display: block;
  margin-bottom: .4rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-col .btn { display: inline-block; margin-top: .8rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  padding: 20px 24px;
}
.footer-bottom p {
  font-family: -apple-system, sans-serif;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-family: -apple-system, sans-serif;
  font-size: .8rem;
  color: var(--grey);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.breadcrumb a { color: var(--gold); }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid   { grid-template-columns: 1fr; }
  .about-img    { order: -1; }
  .about-img img { height: 300px; }
  .location-grid { grid-template-columns: 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
  .footer-inner  { grid-template-columns: 1fr 1fr; }
  .gallery-grid  { grid-template-columns: repeat(2,1fr); grid-auto-rows: 180px; }
  .gallery-grid .wide { grid-column: span 1; }
}

@media (max-width: 640px) {
  .main-nav { display: none; flex-direction: column; position: fixed; inset: 0; top: var(--header-h); background: var(--dark); padding: 2rem; gap: 1.2rem; z-index: 99; }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: 1rem; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .hero { height: 80vh; }
  section { padding: 56px 0; }
}
