/* ================================================================
   Armonì Haircode — prenota.css
   Stili pagina prenotazione
================================================================ */

:root {
  --bordeaux: #604A4A;
  --bordeaux-light: #7a5c5c;
  --bordeaux-dark: #3D2B1F;
  --beige: #F5F0E8;
  --beige-mid: #EDE5D8;
  --beige-dark: #D4C9B8;
  --cream: #FAF7F2;
  --text-dark: #2C1F1F;
  --text-mid: #5C4444;
  --text-light: #9A8080;
  --white: #FFFFFF;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body { font-family: var(--sans); background: var(--cream); color: var(--text-dark); overflow-x: hidden; font-weight: 300; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ── HEADER ── */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1.2rem 3rem; display: flex; align-items: center; justify-content: space-between; background: rgba(250, 247, 242, 0.96); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(96, 74, 74, 0.08); transition: var(--transition); }
.logo img { height: 52px; width: auto; display: block; }
nav { display: flex; align-items: center; gap: 2.5rem; }
nav a { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-mid); font-weight: 400; transition: color var(--transition); position: relative; }
nav a::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 1px; background: var(--bordeaux); transform: scaleX(0); transition: transform var(--transition); transform-origin: left; }
nav a:hover { color: var(--bordeaux); }
nav a:hover::after { transform: scaleX(1); }
.btn-prenota { background: var(--bordeaux) !important; color: var(--white) !important; padding: 0.6rem 1.4rem; border-radius: 2px; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; transition: background var(--transition); }
.btn-prenota:hover { background: var(--bordeaux-dark) !important; }
.btn-prenota::after { display: none !important; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; z-index: 201; }
.menu-toggle span { display: block; width: 24px; height: 1.5px; background: var(--bordeaux-dark); transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── LAYOUT ── */
.page-layout { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 100vh; padding-top: 80px; }
.page-photo { position: sticky; top: 80px; height: calc(100vh - 80px); overflow: hidden; }
.page-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 65% center; display: block; }
.page-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(61,43,31,0.30) 0%, rgba(96,74,74,0.12) 50%, rgba(61,43,31,0.28) 100%); }
.page-photo-text { position: absolute; bottom: 3rem; left: 3rem; right: 3rem; z-index: 2; color: var(--white); }
.page-photo-text .label { font-size: 0.62rem; letter-spacing: 0.35em; text-transform: uppercase; color: rgba(245,240,232,0.6); margin-bottom: 0.8rem; display: block; }
.page-photo-text h2 { font-family: var(--serif); font-size: clamp(2rem, 3vw, 3rem); font-weight: 300; font-style: italic; line-height: 1.15; color: var(--white); }
.page-form { padding: 4rem 4rem 5rem; background: var(--cream); overflow-y: auto; }

/* ── FORM ── */
.form-eyebrow { font-size: 0.62rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--bordeaux); margin-bottom: 0.8rem; display: block; }
.form-title { font-family: var(--serif); font-size: clamp(1.8rem, 2.5vw, 2.5rem); font-weight: 300; color: var(--bordeaux-dark); margin-bottom: 0.5rem; line-height: 1.15; }
.form-subtitle { font-size: 0.88rem; color: var(--text-light); margin-bottom: 2.5rem; line-height: 1.7; }
.form-group { margin-bottom: 1.4rem; }
label { display: block; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-light); margin-bottom: 0.4rem; }
input, select, textarea { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--beige-dark); border-radius: 2px; background: var(--white); font-family: var(--sans); font-size: 0.9rem; font-weight: 300; color: var(--text-dark); transition: border-color var(--transition), box-shadow var(--transition); outline: none; appearance: none; }
input:focus, select:focus, textarea:focus { border-color: var(--bordeaux); box-shadow: 0 0 0 3px rgba(96,74,74,0.08); }
input::placeholder, textarea::placeholder { color: var(--text-light); font-weight: 300; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239A8080' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; cursor: pointer; }
textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-submit { width: 100%; padding: 1rem; background: var(--bordeaux); color: var(--white); border: none; border-radius: 2px; font-family: var(--sans); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; transition: all var(--transition); margin-top: 0.5rem; }
.btn-submit:hover { background: var(--bordeaux-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(96,74,74,0.2); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-note { font-size: 0.76rem; color: var(--text-light); margin-top: 1rem; line-height: 1.6; }
.form-divider { border: none; border-top: 1px solid var(--beige-dark); margin: 2rem 0; }

/* ── INFO STRIP ── */
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.info-item { display: flex; flex-direction: column; gap: 0.3rem; }
.info-item-label { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-light); }
.info-item-value { font-size: 0.85rem; color: var(--text-mid); line-height: 1.5; }
.info-item-value a { color: var(--bordeaux); }

/* ── FAQ ── */
.faq-section { background: var(--white); padding: 5rem 4rem; border-top: 1px solid var(--beige-dark); }
.faq-inner { max-width: 780px; margin: 0 auto; }
.faq-label { font-size: 0.62rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--bordeaux); margin-bottom: 1rem; display: block; }
.faq-title { font-family: var(--serif); font-size: 2.2rem; font-weight: 300; color: var(--bordeaux-dark); margin-bottom: 3rem; }
.faq-item { border-bottom: 1px solid var(--beige-dark); }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 1.3rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font-family: var(--sans); font-size: 0.92rem; font-weight: 400; color: var(--bordeaux-dark); letter-spacing: 0.02em; transition: color var(--transition); }
.faq-question:hover { color: var(--bordeaux); }
.faq-chevron { width: 16px; height: 16px; flex-shrink: 0; transition: transform var(--transition); color: var(--bordeaux); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner { padding-bottom: 1.3rem; font-size: 0.88rem; color: var(--text-mid); line-height: 1.85; }

/* ── FOOTER ── */
footer { background: var(--bordeaux-dark); color: rgba(255,255,255,0.6); padding: 2.5rem 3rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; letter-spacing: 0.08em; }
.footer-social { display: flex; gap: 1.2rem; }
.footer-social a { color: rgba(255,255,255,0.5); transition: color var(--transition); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-social a:hover { color: white; }

/* ── COOKIE BANNER ── */
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 500; background: var(--bordeaux-dark); color: rgba(255,255,255,0.88); padding: 1.2rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; font-size: 0.8rem; line-height: 1.6; transform: translateY(100%); transition: transform 0.4s ease; box-shadow: 0 -4px 20px rgba(0,0,0,0.15); }
#cookie-banner.visible { transform: translateY(0); }
#cookie-banner p { margin: 0; flex: 1; }
#cookie-banner a { color: var(--beige-mid); text-decoration: underline; }
.cookie-btns { display: flex; gap: 0.8rem; flex-shrink: 0; }
.cookie-btn { padding: 0.5rem 1.2rem; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; border-radius: 2px; cursor: pointer; border: none; transition: all 0.3s ease; }
.cookie-btn-accept { background: var(--bordeaux); color: white; border: 1px solid var(--bordeaux-light); }
.cookie-btn-accept:hover { background: var(--bordeaux-light); }
.cookie-btn-reject { background: transparent; color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.25); }
.cookie-btn-reject:hover { border-color: rgba(255,255,255,0.6); color: white; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  header { padding: 1rem 1.5rem; }
  nav { display: none; }
  nav.open { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; height: 100dvh; height: 100vh; background: var(--cream); z-index: 200; justify-content: center; align-items: center; gap: 2.5rem; padding: 2rem; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  nav.open a { font-size: 1.1rem; letter-spacing: 0.2em; color: var(--text-mid) !important; }
  nav.open .btn-prenota { background: var(--bordeaux) !important; color: var(--white) !important; border: none !important; padding: 0.8rem 2.5rem; font-size: 0.8rem; letter-spacing: 0.2em; }
  .menu-toggle { display: flex; }
  .page-layout { grid-template-columns: 1fr; padding-top: 72px; }
  .page-photo { display: none; }
  .page-form { padding: 2.5rem 1.5rem 4rem; }
  .form-row { grid-template-columns: 1fr; }
  .info-strip { grid-template-columns: 1fr; gap: 1.2rem; }
  .faq-section { padding: 3rem 1.5rem; }
  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.5rem; }
  #cookie-banner { flex-direction: column; align-items: flex-start; padding: 1.2rem 1.5rem; }
  .cookie-btns { width: 100%; }
  .cookie-btn { flex: 1; text-align: center; }
}
