/* Copia del file style.css originale del sito (usato come asset nel child theme)
   Se vuoi modificare qualcosa, puoi editarlo qui o aggiungere regole nel file ../style.css del child
*/

/* ===============  Reset + Variabili  =============== */
* { box-sizing: border-box; }
:root{
  --bg: #fff;
  --text: #3a2c29;
  --muted: #6d5e5a;

  --soft-rose: #f5ece6;   /* crema rosata */
  --soft-tint: #f8f2ee;   /* tinta sezione alternata */
  --accent: #b5897b;      /* rosa cacao */
  --accent-2: #d9b8aa;    /* rosa sabbia */
  --line: #caaea0;

  --card-bg: #ffffff;
  --shadow: 0 10px 25px rgba(0,0,0,.08);
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Child-theme overrides to match parent theme adjustments:
   - ensure header links have no underline (Elementor may inject styles)
   - allow section/hero/footer containers to be full-bleed while keeping navbar centered
*/
.site-header .nav-links a,
.site-header .nav-links a:visited,
.site-header .nav-links a:focus{
  text-decoration: none !important;
  font-family: inherit !important;
}
.site-header .nav-links a:hover{ text-decoration: none !important; }

.section > .container,
.hero > .container,
.site-footer > .container{
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding-left: 20px;
  padding-right: 20px;
}

/* ===============  Tipografia  =============== */
.display{
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.05;
  margin: 10px 0 12px;
  color: var(--text);
}

.eyebrow{
  color: var(--accent);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .9rem;
  margin: 0;
}

/* LEDE (tagline) - comportamento responsive:
   - default: normale (può andare a capo)
   - su schermi larghi: forziamo una sola riga con white-space: nowrap
   - su mobile: spezzamento controllato con .mobile-break display:block
*/
.lede{
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 640px;
  white-space: normal;      /* default: permetti wrapping */
  overflow-wrap: anywhere;  /* evita overflow improvvisi */
  margin: 0.4rem 0 0;
}

.mobile-break {
  display: inline; /* comportamento di default su desktop/tablet */
}

/* breakpoint per smartphone: lo span diventa block (= va a capo) */
@media (max-width: 768px) {
  .mobile-break {
    display: block;
    margin-top: 6px;    /* piccolo spazio tra le righe */
  }
  .lede {
    white-space: normal; /* assicurati che il wrapping sia consentito su mobile */
  }
}

/* breakpoint per schermi larghi: force single-line */
@media (min-width: 769px) {
  .lede {
    white-space: nowrap; /* forziamo una riga unica su desktop */
  }
  .mobile-break {
    display: inline;
  }
}

/* ===============  Navbar  =============== */
.navbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo img{
  max-height: 56px;
  width: auto;
  display: block;
}

.nav-links{
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-links { align-items: center; }
.nav-links li { display: flex; align-items: center; }

.nav-links a{
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 8px 10px;
  transition: color .25s ease, opacity .25s ease;
}
.nav-links a:hover{ color: var(--accent); }

/* Dropdown menu for 'Servizi' in header nav */
.nav-links .dropdown{ position: relative; }
.nav-services-toggle{
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px 10px; /* same padding as .nav-links a */
  font-weight: 500;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  text-decoration: none;
  line-height: 1;
}
.nav-services-toggle:focus{ outline: 2px solid var(--accent); border-radius: 6px; }
.nav-services-toggle:hover{ color: var(--accent); }
.dropdown-menu{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px 0;
  display: none;
  z-index: 1200;
}
.dropdown-menu li{ list-style: none; }
.dropdown-menu a{ display: block; padding: 8px 14px; color: var(--text); text-decoration: none; }
.dropdown-menu a:hover{ background: var(--soft-tint); color: var(--text); }
.nav-item.dropdown.open > .dropdown-menu{ display: block; }

@media (max-width: 768px){
  /* on mobile, dropdown becomes part of the stacked nav */
  .dropdown-menu{ position: static; box-shadow: none; border: 0; padding: 0; }
  .dropdown-menu a{ padding: 12px 16px; }
}

.btn-nav{
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--text);
  text-decoration: none;
}
.btn-nav:hover{
  background: var(--accent);
  color: #fff;
}

/* Ensure visited/linked state keeps the intended color outside the header */
.btn-nav:link,
.btn-nav:visited{
  color: var(--text);
  text-decoration: none;
}

.hamburger{
  display: none;
  font-size: 26px;
  cursor: pointer;
  background: transparent;
  border: 0;
}
.navbar {
  transition: transform 0.3s ease-in-out;
}

.navbar-hidden {
  transform: translateY(-100%);
}

/* Mobile menu */
@media (max-width: 768px){
  .nav-links{
    display: none;
    position: absolute;
    right: 20px;
    top: 70px;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 12px;
    width: 220px;
  }
  .nav-links.active{ display: flex; }
  .hamburger{ display: block; }
}

/* ===============  Sezioni  =============== */
.section{
  padding: 80px 0;
  text-align: left;
}
.soft-rose{ background: var(--soft-rose); }
.tinted{ background: var(--soft-tint); }

.hero-inner{ padding: 40px 0 10px; }

/* Titoli con “riga di appoggio” */
.section-title{
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.1;
  margin: 0 0 38px;
  color: var(--text);
  position: relative;
  display: inline-block;
}
.section-title::after{
  content:"";
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:-18px;
  width: 280px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--line), transparent);
}
.section-title::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:-18px;
  transform: translate(-50%, 35%);
  width: 12px; height: 12px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
}

/* ===============  Servizi (card)  =============== */
.servizi-container{
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  margin-top: 26px;
}
.servizio-card{
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 26px 22px;
  flex: 1 1 300px;
  max-width: 340px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid #eee;
}
.servizio-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(0,0,0,.12);
}
.servizio-card .icon{
  font-size: 42px;
  margin-bottom: 10px;
}
.servizio-card h3{
  margin: 6px 0 8px;
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 700;
  font-family: "Inter", sans-serif;
}
.servizio-card p{
  color: var(--muted);
  margin: 0;
}

/* ===============  Sedi (box mappa)  =============== */
.sede{
  display: flex;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 32px;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.sede-info{
  flex: 1;
  max-width: 300px;
}
.sede-info h3{
  margin: 0 0 8px;
  color: var(--accent);
}
.sede-map{ flex: 3; }

@media (max-width: 768px){
  .sede{ flex-direction: column; }
  .sede-info, .sede-map{ max-width: 100%; flex: 1; }
}

/* ===============  Recensioni (card + animazioni)  =============== */
/* ===============  Recensioni (card + animazioni)  =============== */
.recensioni-container{
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
}
.recensione{
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  /* use standard transform-based animations */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease, box-shadow .25s ease;
}
.recensione:hover{ box-shadow: 0 16px 32px rgba(0,0,0,.12); }
.recensione p{
  margin: 10px 0;
  color: var(--text);
  font-style: italic;
}
.recensione h4{
  margin: 8px 0 0;
  color: var(--accent);
  font-weight: 700;
  text-align: right;
}
.stars{
  color: #f5b50a;
  font-size: 1.1rem;
}

/* posizione iniziale animazioni - usa transform standard */
.recensione.left{ transform: translateX(-80px); }
.recensione.right{ transform: translateX(80px); }
.recensione.show{
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* ===============  Form contatti  =============== */
.contact-form{
  max-width: 520px;
  margin: 0 auto;
}
.form-group{ margin-bottom: 18px; }
.contact-form label{
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
}
.contact-form button{
  display: block;
  margin: 8px auto 0;
  padding: 11px 26px;
  font-size: 16px;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, background .25s ease;
}
.contact-form button:hover{ background: #a27769; transform: translateY(-1px); }
#form-status{ text-align: center; font-weight: bold; margin-top: 14px; }

/* ===============  Footer  =============== */
.site-footer{
  background: #f7f2ee;
  padding: 50px 0 26px;
  color: var(--text);
  border-top: 1px solid #efdfd7;
}
.footer-content{
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-links, .social{ min-width: 240px; flex: 1; }

.footer-links h3, .social h3{
  margin: 0 0 12px;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--text);
}

.links-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.links-grid a{
  text-decoration: none;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #ead8cf;
  background: #fff;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.links-grid a:hover{
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.social-links{
  display: flex;
  gap: 14px;
  align-items: center;
}
.social-links img{
  width: 28px; height: 28px;
  transition: transform .2s ease;
}
.social-links img:hover{ transform: scale(1.08); }

.copy{
  margin: 26px 0 0;
  text-align: center;
  color: #7e6f6a;
  font-size: 14px;
}

/* ===============  Pulsante Torna su  =============== */
#backToTop{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid #e8d7cf;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
  display: none;            
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 1100;
}
#backToTop.show{ display: flex; }
#backToTop:hover{ background: var(--accent); color: #fff; border-color: var(--accent); }

.hero{
  text-align: left;
}

/* Navbar scroll */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,.9);
  transition: transform .35s ease;
}
.site-header.nav-hidden {
  transform: translateY(-100%);
}


/* Piccole rifiniture */
.phone-link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  padding: 2px 4px;
  transition: all 0.2s ease-in-out;
}

.orari {
  margin-top: 1rem;
}

.orari-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-size: 0.95rem;
}

.orari-grid div {
  padding: 2px 0;
}

.orari-grid .chiuso {
  color: #b33;
  font-weight: 600;
}
.sede-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #7b4b3a;
  text-align: center;
  margin-bottom: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-contacts a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-contacts a:hover {
  color: var(--accent);
}

.servizi-btn-container {
  text-align: center;
  margin-top: 40px;
}

.btn-servizi {
  display: inline-block;
  padding: 12px 24px;
  background: #a5637c;
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.btn-servizi:hover {
  background: #8a4f66;
  transform: translateY(-2px);
}

/* Stile pagina Prima/Dopo */
#prima-dopo {
  padding-top: 120px;
}

#prima-dopo .section-title {
  font-size: 5rem;
  margin-bottom: 50px;
  text-align: center;
}

.chi-sono-text {
  flex: 2;
  min-width: 280px;
}

.chi-sono-card {
  flex: 1;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
  max-width: 320px;
}

.chi-sono-foto {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 14px;
}

.chi-sono-nome {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.btn-cv {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

.btn-cv:hover {
  background: #a27769;
  transform: translateY(-2px);
}

/* Page/utility helpers used by specific pages */
.toc { margin-top: 18px; }
.toc .btn-cv { margin-left: 12px; }

/* chi-sono card micro-styling (centralizza gli inline styles usati in pages) */
.chi-sono-card h3 { margin-top: 0; }
.chi-sono-card ul { text-align: left; padding-left: 18px; margin: 8px 0 0; color: var(--muted); }

@media (max-width: 768px) {
  .chi-sono-grid {
    flex-direction: column;
    align-items: center;
  }
}
.chi-sono-grid {
  display: flex;
  gap: 40px;
  align-items: center;   /* 👉 centra verticalmente testo e card */
  flex-wrap: wrap;
}
