/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d0d0d;
  --surface: #161616;
  --surface2: #1e1e1e;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --text: #e8e4dc;
  --text-light: #888;
  --border: #2a2a2a;
  --radius: 4px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', Georgia, serif;
  color: var(--text);
  background: var(--bg);
}

/* === TOPBAR === */
.topbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 18px 40px;
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  text-decoration: none;
  display: block;
}

/* === LOGO === */
.logo-reggio {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0;
  font-family: Arial, sans-serif;
}

.logo-main {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  line-height: 1;
}

.logo-sub {
  font-size: clamp(0.7rem, 1.5vw, 0.95rem);
  letter-spacing: 0.22em;
  color: var(--gold-light);
  margin-top: 0;
  font-family: Georgia, serif;
}

/* === HAMBURGER MENU === */
.nav-menu {
  position: relative;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #c9a84c;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 160px;
  z-index: 100;
}

.dropdown.open {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 14px 20px;
  color: var(--text);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
  border-bottom: 1px solid var(--border);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  color: var(--gold);
  background: var(--surface2);
}

/* === TAGLINE BAR === */
.tagline-bar {
  background: var(--bg);
  padding: 10px 40px 18px;
}

.tagline-bar p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-light);
  font-family: Georgia, serif;
  font-weight: 400;
  max-width: 1200px;
  margin: 0 auto;
}

/* === HERO PHOTO === */
.hero-photo {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: #111;
  max-height: 420px;
}

.hero-photo img {
  width: 100%;
  height: 420px;
  display: block;
  object-fit: cover;
  object-position: center 40%;
}

/* === SERVIZI === */
.services {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
  padding: 52px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 90px;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: #9e8e7e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 36px;
  height: 36px;
  stroke: #ffffff;
  color: #ffffff;
}

.service-icon i {
  font-size: 1.7rem;
  color: #ffffff;
}

.service-item span {
  font-size: 0.82rem;
  text-align: center;
  color: var(--text);
  font-family: Arial, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* === ROOMS SECTION === */
.rooms {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 24px;
}

.rooms h2,
.rooms-grid h2 {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--text);
  margin-bottom: 56px;
  letter-spacing: 0.05em;
  position: relative;
}

.rooms h2::after,
.rooms-grid h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
}

/* === ROOM CARD === */
.room-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--border);
}

.room-card:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.room-card.reverse {
  direction: rtl;
}

.room-card.reverse > * {
  direction: ltr;
}

.room-img {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  display: block;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* === CAROUSEL === */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  aspect-ratio: 4/3;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: rgba(0,0,0,0.75);
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.2s;
}

.dot.active {
  background: #fff;
}

.room-type-label {
  display: inline-block;
  font-size: 0.7rem;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  margin-bottom: 10px;
}

.room-info h3 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.room-info h3 small {
  display: block;
  font-size: 0.75em;
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.room-info p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-light);
  margin-bottom: 20px;
  font-family: Georgia, serif;
}

.room-beds {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.room-beds span {
  font-size: 0.9rem;
  color: var(--text);
  font-family: Arial, sans-serif;
  font-weight: 600;
}

.room-amenities {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 28px;
}

.room-amenities li {
  font-size: 0.85rem;
  color: var(--text);
  font-family: Arial, sans-serif;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
}

/* === FOOTER === */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-light);
  font-family: Georgia, serif;
  margin-bottom: 4px;
}

.footer-contact-item {
  font-size: 0.88rem;
  font-family: Arial, sans-serif;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.footer-contact-item:hover {
  color: var(--gold);
}

.footer-contact-item i {
  font-size: 0.8rem;
  color: var(--gold);
}

.footer-copy-bar {
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 14px 24px;
}

.footer-copy-bar p {
  font-size: 0.75rem;
  color: var(--text-light);
  font-family: Arial, sans-serif;
  letter-spacing: 0.05em;
}

/* === TORNA SU === */
#backToTop {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: #0d0d0d;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 200;
  -webkit-appearance: none;
  appearance: none;
}

#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
}

#backToTop:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
}

/* === SERVICES PAGE === */
.services-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.service-row {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.service-row:last-child {
  border-bottom: none;
}

.service-row-icon {
  width: 64px;
  height: 64px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-row-icon i {
  font-size: 1.5rem;
  color: var(--gold);
}

.service-row-body h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.service-row-body p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.8;
  font-family: Georgia, serif;
}

.service-row-body strong {
  color: var(--gold);
  font-weight: 700;
}

/* === CONTACT PAGE === */
.page-header {
  text-align: center;
  padding: 64px 24px 48px;
  border-bottom: 1px solid var(--border);
}

.page-header-label {
  display: block;
  font-size: 0.68rem;
  font-family: Arial, sans-serif;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.page-header h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 10px auto 0;
}

.page-header p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 540px;
  margin: 0 auto;
  margin-top: 16px;
  font-family: Georgia, serif;
}

.contact-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2,
.contact-form-wrap h2 {
  font-size: 1.1rem;
  font-family: Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-card-icon {
  width: 42px;
  height: 42px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon i {
  font-size: 0.9rem;
  color: var(--gold);
}

.contact-card-label {
  font-size: 0.72rem;
  font-family: Arial, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.contact-card-value {
  font-size: 0.92rem;
  color: var(--text);
  font-family: Arial, sans-serif;
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.2s;
}

a.contact-card-value:hover {
  color: var(--gold);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.75rem;
  font-family: Arial, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

.required {
  color: var(--gold);
}

.optional {
  color: var(--text-light);
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: 0;
}

.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #444;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.btn-invia {
  align-self: flex-start;
  background: var(--gold);
  color: #0d0d0d;
  border: none;
  padding: 14px 32px;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-invia:hover {
  background: var(--gold-light);
}

.form-success,
.form-error {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 24px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.form-success i {
  font-size: 2.4rem;
  color: var(--gold);
}

.form-success p {
  font-size: 1rem;
  color: var(--text);
  font-family: Arial, sans-serif;
}

.form-error i {
  font-size: 2.4rem;
  color: #c0392b;
}

.form-error p {
  font-size: 1rem;
  color: var(--text);
  font-family: Arial, sans-serif;
  line-height: 1.7;
}

.form-error a {
  color: var(--gold);
  text-decoration: none;
}

.form-error a:hover {
  text-decoration: underline;
}

/* === RESPONSIVE === */
body {
  overflow-x: hidden;
}

@media (max-width: 700px) {
  .room-card,
  .room-card.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 24px;
  }

  .topbar {
    padding: 14px 20px;
    position: relative;
  }

  .topbar-inner {
    flex-wrap: nowrap;
    align-items: center;
    padding-right: 48px;
  }

  .logo-main {
    font-size: 1.6rem;
  }

  .nav-menu {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .tagline-bar {
    padding: 8px 20px 14px;
  }

  /* Contatti */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-section {
    padding: 32px 16px 48px;
  }

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

  .btn-invia {
    width: 100%;
    justify-content: center;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 20px;
  }

  .footer-contact-item,
  .contact-card-value {
    word-break: break-all;
  }

  /* Servizi */
  .services-page {
    padding: 32px 16px 48px;
  }

  .service-row {
    gap: 20px;
  }

  /* Page header */
  .page-header {
    padding: 40px 20px 32px;
  }
}

@media (max-width: 480px) {
  .services {
    gap: 24px;
    padding: 36px 16px;
  }
}
