/* ============================================================
   Prenotic v2 — Home cliente
   Mobile-first (min-width breakpoints only)
   ============================================================ */

:root {
  --color-bg:         #FEFDFB;
  --color-cream:      #F5F1EC;
  --color-warm-1:     #FAF6F1;
  --color-warm-2:     #E8DED0;
  --color-text:       #2C2C2A;
  --color-text-mute:  #888780;
  --color-text-soft:  #B4B2A9;
  --color-accent:     #B4A688;
  --color-line:       rgba(0,0,0,0.08);
  --color-line-soft:  rgba(0,0,0,0.04);
  --color-shadow:     rgba(44,44,42,0.06);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
               Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont,
                  "Helvetica Neue", Helvetica, Arial, sans-serif;

  --tap-min: 44px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;              /* >= 16 evita zoom iOS su input */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================================
   HERO — foto + nome + CTA
   ============================================================ */
.hero {
  position: relative;
}

.hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--color-cream);
}

.hero-image img,
.hero-image svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image::after {
  /* gradiente di lettura per far spiccare eventuale testo sovrapposto se lo aggiungeremo */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
}

.hero-credit {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 10px;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.35);
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.2px;
}

.hero-content {
  padding: 20px 24px 28px;
  text-align: center;
}

.hero-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-text);
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.hero-tagline {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--color-text-mute);
  line-height: 1.4;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap-min);
  padding: 16px 32px;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  transition: transform 120ms ease, background-color 120ms ease;
  min-width: 200px;
}

.cta-primary:active {
  transform: scale(0.98);
  background: #1a1a19;
}

/* ============================================================
   CONTATTI
   ============================================================ */
.contacts {
  margin: 0 20px 24px;
  background: var(--color-warm-1);
  border-radius: var(--radius-lg);
  padding: 8px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--tap-min);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  transition: background-color 120ms ease;
}

.contact-row + .contact-row {
  margin-top: 2px;
}

.contact-row:active {
  background: rgba(0,0,0,0.03);
}

.contact-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg);
  border-radius: 10px;
  color: var(--color-text);
}

.contact-icon svg { width: 18px; height: 18px; }

.contact-label {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-sublabel {
  display: block;
  font-size: 12px;
  color: var(--color-text-mute);
  margin-top: 1px;
}

.contact-chevron {
  color: var(--color-text-soft);
  flex-shrink: 0;
}

/* ============================================================
   FOOTER — Powered by Prenotic
   ============================================================ */
.site-footer {
  padding: 32px 24px 40px;
  text-align: center;
  font-size: 12px;
  color: var(--color-text-soft);
}

.site-footer a {
  color: var(--color-text-mute);
  border-bottom: 1px dotted transparent;
  transition: border-color 120ms ease;
}

.site-footer a:hover,
.site-footer a:focus {
  border-color: var(--color-text-mute);
}

/* ============================================================
   BREAKPOINT DESKTOP (min-width, mobile-first)
   ============================================================ */
@media (min-width: 768px) {
  .hero-image {
    aspect-ratio: 21 / 9;
    max-height: 40vh;
  }
  .hero-content {
    padding: 40px 24px 44px;
    max-width: 640px;
    margin: 0 auto;
  }
  .hero-title { font-size: 32px; line-height: 1.15; }
  .hero-tagline { font-size: 16px; }
  .contacts {
    max-width: 560px;
    margin: 0 auto 32px;
  }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 38px; }
}

/* ============================================================
   Accessibilità
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
