/* ═══════════════════════════════════════════════════════════
   ATELIER HORAE — CSS Aggiuntivo Completo
   WordPress → Aspetto → Personalizza → CSS Aggiuntivo
   CANCELLA tutto e incolla solo questo. Salva.
   ═══════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────
   1. RESET BASE — Forza il sito a essere pulito
   ───────────────────────────────────────────── */

html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  overflow-x: hidden !important;
  background-color: #FDF9F3 !important;
  color: #1A1714 !important;
  font-family: 'EB Garamond', Georgia, serif !important;
}

body, .elementor-page, .site-main, #page, .site, main, .site-content {
  background-color: #FDF9F3 !important;
}


/* ─────────────────────────────────────────────
   2. RESET ELEMENTOR — Toglie padding/margin/bordi superflui
   ───────────────────────────────────────────── */

.elementor-section,
.elementor-column,
.elementor-widget,
.elementor-widget-wrap,
.elementor-element,
.elementor-column-wrap,
.elementor-widget-container {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.elementor-section {
  padding: 0 !important;
  margin: 0 !important;
}

.elementor-column-gap-default > .elementor-column > .elementor-element-populated,
.elementor-column-gap-default > .elementor-column > .elementor-widget-wrap {
  padding: 0 !important;
}


/* ─────────────────────────────────────────────
   3. CONTAINER FULL WIDTH — Il sito si centra
   ───────────────────────────────────────────── */

.elementor-section.elementor-section-boxed > .elementor-container,
.elementor-section > .elementor-container {
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.elementor-widget-html,
.elementor-widget-shortcode {
  width: 100% !important;
}

.elementor-widget-html > .elementor-widget-container {
  width: 100% !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}


/* ─────────────────────────────────────────────
   4. HEADER + FOOTER — Senza padding/bordi indesiderati
   ───────────────────────────────────────────── */

.elementor-location-header .elementor-section,
.elementor-location-header .elementor-column,
.elementor-location-header .elementor-widget-wrap,
.elementor-location-header .elementor-widget-container,
.elementor-location-footer .elementor-section,
.elementor-location-footer .elementor-column,
.elementor-location-footer .elementor-widget-wrap,
.elementor-location-footer .elementor-widget-container {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}


/* ─────────────────────────────────────────────
   5. CONTAINER DELLE PAGINE ATELIER HORAE — Centratura
   ───────────────────────────────────────────── */

.ah, .ah-m, .ah-story, .ah-hdr, .ah-ftr {
  width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}


/* ─────────────────────────────────────────────
   6. FONT GLOBALI — Cormorant + EB Garamond + DM Sans
   ───────────────────────────────────────────── */

.ah-page h1, .ah-page h2, .ah-page h3,
body h1, body h2, body h3 {
  font-family: 'Cormorant Garamond', Georgia, serif !important;
}


/* ─────────────────────────────────────────────
   7. WPFORMS — Stile coerente con il brand
   ───────────────────────────────────────────── */

.ah-wpforms {
  width: 100% !important;
  max-width: 620px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 52px !important;
  padding-right: 52px !important;
}

@media (max-width: 1024px) {
  .ah-wpforms { padding-left: 32px !important; padding-right: 32px !important; }
}
@media (max-width: 768px) {
  .ah-wpforms { padding-left: 24px !important; padding-right: 24px !important; }
}
@media (max-width: 480px) {
  .ah-wpforms { padding-left: 20px !important; padding-right: 20px !important; }
}

/* WPForms input fields */
.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field input[type="tel"],
.wpforms-field input[type="number"],
.wpforms-field textarea,
.wpforms-field select {
  border: 1px solid #E4DBC8 !important;
  background: #FDF9F3 !important;
  font-family: 'EB Garamond', Georgia, serif !important;
  font-size: 16px !important;
  color: #1A1714 !important;
  padding: 14px 18px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: border-color 0.3s !important;
}

.wpforms-field input[type="text"]:focus,
.wpforms-field input[type="email"]:focus,
.wpforms-field input[type="tel"]:focus,
.wpforms-field textarea:focus,
.wpforms-field select:focus {
  border-color: #A89272 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* WPForms labels */
.wpforms-field label,
.wpforms-field .wpforms-field-label {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 10px !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
  color: #847969 !important;
  font-weight: 500 !important;
  margin-bottom: 8px !important;
}

/* WPForms submit button */
.wpforms-submit-container button[type="submit"],
.wpforms-submit,
button.wpforms-submit {
  padding: 16px 48px !important;
  background: linear-gradient(135deg, #A89272, #8C7A5E) !important;
  color: #FDFCFA !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 11px !important;
  letter-spacing: 3.5px !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  transition: all 0.4s !important;
  box-shadow: 0 4px 16px rgba(168, 146, 114, 0.18) !important;
}

.wpforms-submit-container button[type="submit"]:hover,
.wpforms-submit:hover {
  box-shadow: 0 8px 32px rgba(168, 146, 114, 0.3) !important;
  transform: translateY(-1px) !important;
}

/* WPForms checkbox/radio */
.wpforms-field-checkbox label,
.wpforms-field-radio label {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-size: 14px !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: #847969 !important;
  font-weight: 400 !important;
}

/* WPForms description text */
.wpforms-field-description {
  font-family: 'EB Garamond', Georgia, serif !important;
  font-size: 13px !important;
  color: #B0A494 !important;
  font-style: italic !important;
}


/* ─────────────────────────────────────────────
   8. LINK GLOBALI — Coerenza colori
   ───────────────────────────────────────────── */

a {
  color: #A89272;
  transition: color 0.3s;
}

a:hover {
  color: #8C7A5E;
}


/* ─────────────────────────────────────────────
   9. SCROLLBAR — Stile minimal coerente
   ───────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F4EDDF;
}

::-webkit-scrollbar-thumb {
  background: #CBBDA6;
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: #A89272;
}


/* ─────────────────────────────────────────────
   10. SELEZIONE TESTO — Coerente con il brand
   ───────────────────────────────────────────── */

::selection {
  background: #A89272;
  color: #FDF9F3;
}

::-moz-selection {
  background: #A89272;
  color: #FDF9F3;
}


/* ─────────────────────────────────────────────
   11. NASCONDI ELEMENTI INDESIDERATI — Solo se necessario
   ───────────────────────────────────────────── */

/* Toglie eventuali "Powered by Elementor" o simili */
.elementor-edit-link,
.elementor-page .elementor-add-section {
  display: none !important;
}


/* ─────────────────────────────────────────────
   12. RESPONSIVE — Fix mobile
   ───────────────────────────────────────────── */

@media (max-width: 768px) {
  .elementor-section,
  .elementor-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
/* ─────────────────────────────────────────────
   13. FIX HERO HOME — Centra il contenuto sulla home
   ───────────────────────────────────────────── */

.ah-wrap, .ah-wrap-sm, .ah-wrap-xs {
  margin-left: auto !important;
  margin-right: auto !important;
}

.ah .ah-wrap-sm,
.ah .ah-wrap,
.ah .ah-wrap-xs {
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
}

/* ─────────────────────────────────────────────
   13. FIX HERO HOME — Centra il contenuto sulla home
   ───────────────────────────────────────────── */

.ah-wrap, .ah-wrap-sm, .ah-wrap-xs {
  margin-left: auto !important;
  margin-right: auto !important;
}

.ah .ah-wrap-sm,
.ah .ah-wrap,
.ah .ah-wrap-xs {
  margin-left: auto !important;
  margin-right: auto !important;
  display: block !important;
}

/* Forza l'hero della home a centrarsi */
.ah > div:first-child .ah-wrap-sm,
.ah > div .ah-wrap-sm {
  margin: 0 auto !important;
}


   
  transform: scale(0.96);
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ah-fade-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Nasconde virgolette/testi spuri attorno all'header */
.ah-hdr::before,
.ah-hdr::after,
.elementor-location-header::before,
.elementor-location-header::after {
  display: none !important;
  content: none !important;
}

/* Forza l'header a non mostrare nulla fuori dal contenuto */
.elementor-location-header {
  overflow: hidden;
}
