/* Custom CSS (Tailwind CDN does most of the styling) */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&family=Inter:wght@300;400;500&display=swap');

:root {
  --sage: #8AC6BA;
  --sage-dark: #75B0A4;
  --sage-text: #568076;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

h1, h2, h3, h4, .font-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Helpers */
.is-hidden { display: none !important; }

.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Lucide icons */
[data-lucide] {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}

/* Small toast */
#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: 92vw;
}
#toast .toast-inner{
  background: rgba(15, 23, 42, 0.95); /* slate-900 */
  color: #fff;
  border-radius: 9999px;
  padding: 12px 16px;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#toast .toast-inner .dot{
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--sage);
}

/* Responsive fixes */

/* HERO: mostra prima la foto e poi il testo, su desktop e mobile */
#home .grid > div:first-child {
  order: 2;
}

#home .grid > div:nth-child(2) {
  order: 1;
}

/* CTA mobile: evita sovrapposizioni e adatta il bottone alla larghezza dello schermo */
body > div.fixed.bottom-6.md\:hidden {
  width: calc(100% - 2rem);
  max-width: 22rem;
}

body > div.fixed.bottom-6.md\:hidden > a {
  display: flex;
  width: 100%;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (max-width: 380px) {
  body > div.fixed.bottom-6.md\:hidden {
    bottom: 1rem;
    width: calc(100% - 1rem);
  }

  body > div.fixed.bottom-6.md\:hidden > a {
    font-size: 0.875rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
