/* Ecco la Donna - static maintenance page */
:root {
  --color-background: #fffafc;
  --color-surface: #f8edf4;
  --color-text: #3f2a34;
  --color-muted: #7f5869;
  --color-line: #ead8e3;
  --font-body: 'Avenir Light', 'Avenir', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --container-max-width: 1200px;
  --section-spacing-x: clamp(1.25rem, 5vw, 4.5rem);
  --radius-pill: 50px;
  --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--color-background);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main { flex: 1; display: flex; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--section-spacing-x);
}

.section {
  padding: clamp(4.5rem, 11vw, 9rem) 0;
}

/* Header */
.site-header {
  padding: clamp(1.2rem, 2.5vw, 1.7rem) 0;
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-line);
}

.header-inner {
  display: flex;
  align-items: center;
}

.logo {
  display: inline-flex;
  border-radius: 4px;
  transition: opacity 0.25s ease;
}

.logo img {
  height: clamp(3.45rem, 6vw, 4.7rem);
  width: auto;
}

/* Hero */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  background-color: var(--color-surface);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(4rem, 11vw, 11rem);
  align-items: center;
}

.hero-copy { max-width: 650px; }

h1 {
  font-size: clamp(2.8rem, 6vw, 5.6rem);
  font-weight: 300;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.intro-description {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 2.75rem;
  max-width: 45ch;
}

/* Buttons */
.intro-cta-box {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.8rem 2rem;
  text-decoration: none;
  border: 1px solid var(--color-text);
  border-radius: var(--radius-pill);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background-color: var(--color-text);
  color: var(--color-surface);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
}

a:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 4px;
}

/* Contact list */
.contact-panel { padding-top: 1.5rem; }

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--color-line);
}

.contact-label {
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
}

.contact-value {
  font-size: 1rem;
  text-align: right;
}

.contact-value address { font-style: normal; }

.contact-value a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.25s ease;
}

/* Footer */
.site-footer {
  background: var(--color-background);
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 0.78rem;
}

.footer-inner {
  min-height: 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-inner a { color: var(--color-text); }

@media (hover: hover) and (pointer: fine) {
  .logo:hover { opacity: 0.72; }
  .contact-value a:hover { background-size: 100% 1px; }
  .footer-inner a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { background-color: transparent; color: var(--color-text); }
  .btn-secondary:hover { background-color: var(--color-text); color: var(--color-surface); }
}

/* Entrance animation (only when JS is available) */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: none; }
}

.js .fade-in {
  animation: fadeIn 0.8s var(--ease-out) both;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.45s; }
.delay-5 { animation-delay: 0.55s; }

/* Responsive */
@media (max-width: 768px) {
  .hero-layout { grid-template-columns: 1fr; gap: 3rem; }
  .contact-panel { max-width: 34rem; padding-top: 0; }

  .intro-cta-box { flex-direction: column; }
  .btn { width: 100%; }

  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .contact-value { text-align: left; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 380px) {
  h1 { font-size: 2.45rem; }
  .intro-description br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
}
