/*====================
  RESET
====================*/
/* Stili di reset o normalizzazione per rimuovere le impostazioni predefinite del browser */

/*====================
  VARIABILI
====================*/
/* Definizione di variabili CSS per colori, font, ecc. */
:root {
  --font-display: "Lempicka-Display", "Lempicka Fallback", Georgia, serif;
  --font-text: "Lora", Georgia, serif;
  --blu-scuro: #0c2238;
  --grigio-testo: #5a6268;
  --isabella: #f4f0ec;
  --grigio-cenere: #e4e5e0;
  --blu-di-prussia: #143351;
  --celeste-polvere: #95abba;
  --rosso-papavero: #e6371e;
  /* Altre variabili */
  --main-color: var(--blu-di-prussia);
  --secondary-color: var(--celeste-polvere);
  --font-letter-spacing: 0.06em;
  --btn-color: var(--blu-di-prussia);
  --btn-bg-color: var(--celeste-polvere);
}

/*====================
  TYPOGRAPHY
====================*/
/* Stili per i font */
/* Lora loaded via Google Fonts in index.html */

@font-face {
  font-family: "Lempicka-Display";
  /* Solo WOFF2/WOFF (F22): EOT/SVG/TTF servono ai browser legacy; i file
     restano perché li usa weddings/static/weddings/css/fonts.css. */
  src:
    url("../fonts/lempicka/Lempicka-Display.e68960829c04.woff2") format("woff2"),
    url("../fonts/lempicka/Lempicka-Display.cd5fa2ba97df.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Basic Title Font";
  /* Usato dalla landing v3 (--f-basic) */
  src:
    url("../fonts/basictitlefont/basictitlefont.d8c357370ea3.woff2") format("woff2"),
    url("../fonts/basictitlefont/basictitlefont.990e8970ffab.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Fallback con le misure di Lempicka-Display (come la landing v3): finché il
   font non arriva i titoli vanno a capo sulle stesse righe (niente CLS). */
@font-face {
  font-family: "Lempicka Fallback";
  src: local("Arial"), local("Helvetica"), local("Roboto"), local("Liberation Sans");
  size-adjust: 64.5%;
}
/* Redesign 15/11/2026 (critique T5): due sole famiglie, Lempicka per i titoli
   e Lora per il testo (le altre due famiglie sono state tolte). */
/*====================
  BASE
====================*/
/* Stili di base come tipografia, link, pulsanti di default, ecc. */

body,
h1,
h2,
h3,
p {
  margin: 0;
  padding: 0;
}

a {
  color: var(--main-color);
  text-decoration: none;
}
/* Hover: blu scuro sottolineato. Il celeste (#95ABBA) sul crema era 2,1:1
   (sotto il minimo AA, accessibility review 15/11/2026). */
a:hover {
  color: var(--blu-scuro);
}
a:not(.btn):not(.btn-emoi):not(.nav-link):hover {
  text-decoration: underline;
}
a.cta {
  text-decoration: underline;
}
a.cta:hover {
  color: var(--blu-scuro);
}
/* Salta al contenuto: invisibile finché non riceve il focus da tastiera */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 2000;
  padding: 12px 20px;
  background-color: var(--blu-di-prussia);
  color: var(--isabella);
}
.skip-link:focus {
  top: 12px;
  color: var(--isabella);
}
main:focus {
  outline: none;
}
/* Date delle card articolo (components/post_card.html), contrasto AA (T8) */
.post-card-date {
  color: var(--grigio-testo);
}
a.cta:hover .bollino-bianco {
  background-color: var(--secondary-color);
}

body {
  background-color: var(--isabella);
  font-family: "Lora", Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  color: #2a2a2a;
  line-height: 1.75;
}
.hidden {
  display: none;
}
.lempicka-display,
h1 {
  font-family: var(--font-display);
  letter-spacing: var(--font-letter-spacing);
  color: var(--main-color);
  font-weight: 400;
}
h1 {
  font-size: 2.8rem;
}
h2 {
  font-family: var(--font-display);
  letter-spacing: var(--font-letter-spacing);
  font-size: 1.8rem;
  color: var(--main-color);
  font-weight: 400;
}
h3 {
  font-family: var(--font-text);
  font-size: 1.5em;
  color: var(--main-color);
}
.shree-devanagari {
  font-family: var(--font-text);
}
p {
  text-align: left;
  line-height: 1.75;
  color: #2a2a2a;
}
b,
strong {
  font-weight: 900;
  color: #000;
  text-shadow: 0.5px 0 0 currentColor;
}
/*====================
  LAYOUT
====================*/
/* Stili per i principali componenti del layout come header, footer, sidebar */

/* Hero (redesign 15/11/2026, critique T1): non più 100vh con il solo logo.
   55-60vh su desktop, alta quanto il contenuto su mobile; testo a sinistra
   su una velatura blu di Prussia (contrasto AA del testo chiaro sulla foto).
   Inquadratura per pagina: --hero-bg-position nel CSS della pagina (C1). */
#header {
  --hero-bg-position: center center;
  position: relative;
  display: flex;
  align-items: center;
  background-color: var(--blu-di-prussia);
  background-image: url("../images/header.e0d9aea25064.jpg");
  background-repeat: no-repeat;
  background-position: var(--hero-bg-position);
  background-size: cover;
  min-height: 58vh;
  padding: 120px 0 96px;
}
#header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(12, 34, 56, 0.82) 0%,
    rgba(12, 34, 56, 0.7) 55%,
    rgba(12, 34, 56, 0.35) 100%
  );
  z-index: 1;
}
#header-content {
  position: relative;
  z-index: 2;
}
.hero-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  color: var(--isabella);
}
.hero-logo #logo {
  width: 220px;
}
/* Il logo grande è solo la riserva delle pagine senza H1 nell'hero */
.hero-inner:has(.hero-title) .hero-logo {
  display: none;
}
.hero-title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--isabella);
}
.hero-lead {
  margin: 0;
  max-width: 36em;
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--isabella);
}
.hero-actions {
  margin-top: 8px;
}
/* Su foto/velatura la primaria ha il bordo chiaro, la secondaria è chiara */
#header .btn-emoi-primary {
  border-color: var(--isabella);
}
#header .btn-emoi-secondary {
  color: var(--isabella);
  border-color: var(--isabella);
}
#header .btn-emoi-secondary:hover,
#header .btn-emoi-secondary:focus-visible {
  background-color: var(--isabella);
  color: var(--blu-di-prussia);
}
.google-rating {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: inherit;
}
.google-rating a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.google-rating a:hover {
  color: inherit;
  text-decoration-thickness: 2px;
}
.google-rating-stars {
  color: var(--rosso-papavero);
  letter-spacing: 3px;
}
#header .google-rating-stars {
  /* rosso papavero su blu scuro non regge il contrasto: stelle chiare */
  color: var(--isabella);
}

/* Footer (critique T2): fondo blu di Prussia come la landing v3 */
footer {
  background-color: var(--blu-di-prussia);
  color: var(--isabella);
  padding: 64px 0 32px;
  margin-top: 3rem;
}
footer p,
footer address {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--isabella);
}
footer a {
  color: var(--isabella);
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer a:hover,
footer a:focus-visible {
  color: #fff;
  text-decoration-thickness: 2px;
}
footer strong {
  color: inherit;
  text-shadow: none;
  font-weight: 600;
}
.site-footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.site-footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.site-footer-logo img {
  width: 150px;
  height: auto;
}
.site-footer-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 0;
  color: var(--isabella);
}
.site-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 1.05rem;
}
.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  text-decoration: underline;
}
footer .social-links {
  margin: 0;
}
footer .nav-link {
  color: var(--isabella) !important;
  font-size: 1.3rem;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
}
footer .nav-link:hover {
  color: var(--celeste-polvere) !important;
}
.site-footer-legal {
  margin-top: 48px !important;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 240, 236, 0.3);
  font-size: 0.9rem !important;
}

.container .text-content p {
  margin-top: 10px;
}
/* Prima il testo stava in <p>{{ ... }}</p>: il browser generava un <p> vuoto
   finale con margin-top 10px. Lo spazio resta identico senza HTML invalido (F19). */
.text-content .service-description {
  margin-bottom: 10px;
}
.container .text-content p strong {
  /* --primary-color non è mai esistita: il colore era ereditato (F23) */
  color: inherit;
  font-size: 1.1rem;
}
/*====================
  COMPONENTI
====================*/
/* Stili specifici per componenti riutilizzabili come card, modali, form */

#logo {
  height: auto;
  width: 300px;
}

.conchiglia {
  margin-top: -56px !important;
  position: relative;
  z-index: 3;
}
.conchiglia img {
  width: 112px;
}

.jumbotron {
  width: 100%;
  margin: 0 auto;
  /* centra il contenuto se necessario */
}

.bollino-bianco {
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 50%;
  /* Rende il div perfettamente rotondo */
  display: inline-block;
}

/*====================
  WHATSAPP
====================*/
/* Stili per il pulsante di WhatsApp */
.whatsapp-button {
  position: fixed;
  bottom: 40px;
  right: 30px;
  z-index: 1000;
}
.whatsapp-button .notify-badge {
  position: absolute;
  right: 12px;
  color: white;
  background-color: red;
  border-radius: 50%;
  height: 15px;
  width: 15px;
  font-size: 12px;
  text-align: center;
  padding: 0;
  display: none;
}

.whatsapp-chat-box {
  position: fixed;
  bottom: 100px;
  /* Altezza del pulsante più spazio extra */
  right: 20px;
  z-index: 1000;
  width: 300px;
  /* o la larghezza che preferisci */
  display: none;
  /* Nasconde la chat finché non viene cliccato il pulsante */
  border-radius: 20px;
  border: 5px solid #fff;
  overflow: hidden;
  padding-right: 0;
  padding-left: 0;
}

.chat-body,
.chat-footer,
.chat-header {
  padding: 20px;
}
.chat-header {
  background: var(--celeste-polvere);
  /* blu su celeste 5,43:1 (WCAG AA); prima isabella su celeste 2,1:1 (F07) */
  color: var(--blu-di-prussia);
}
.chat-header img {
  width: 80px;
  height: 80px;
}

.chat-header .username {
  /* center the text vertically */
  display: flex;
  align-items: center;
}

.chat-body {
  background: url("../images/whatsapp/bg.091c65816330.webp") no-repeat;
  padding-top: 40px;
  padding-bottom: 40px;
}
.chat-body p {
  background-color: #fff;
  padding: 10px;
  border-radius: 10px;
  width: 70%;
  overflow: hidden;
  text-align: left;
}
.chat-footer {
  background: var(--isabella);
}
/* Stili per il pulsante di WhatsApp */
#whatsapp-chat-button {
  cursor: pointer;
  width: 60px;
  /* o la dimensione che preferisci */
}
#whatsapp-start-chat-button {
  padding: 8px 16px;
  min-height: 44px;
}

/*====================
  NAVBAR
====================*/
/* Redesign 15/11/2026 (critique T4): sempre chiara, come l'header della
   landing v3; logo sempre visibile; "Prenota la call" a destra. */
.site-nav {
  background-color: var(--isabella);
  border-bottom: 1px solid var(--grigio-cenere);
  padding: 10px 24px;
  transition: box-shadow 0.2s ease;
}
.site-nav.navbar-scrolled {
  box-shadow: 0 2px 12px rgba(20, 51, 81, 0.08);
}
.site-nav-end {
  display: flex;
  align-items: center;
  gap: 12px;
  order: 3;
}
.site-nav .navbar-toggler {
  min-width: 44px;
  min-height: 44px;
  border-radius: 0;
  border-color: var(--blu-di-prussia);
}
.nav-link {
  font-family: var(--font-display);
  letter-spacing: var(--font-letter-spacing);
  font-size: 1.15rem;
  font-weight: 400;
}
.site-nav .navbar-nav .nav-link {
  color: var(--blu-di-prussia);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.site-nav .navbar-nav .nav-link:hover,
.site-nav .navbar-nav .nav-link:focus-visible,
.site-nav .navbar-nav .nav-link[aria-current="page"] {
  color: var(--blu-di-prussia);
  text-decoration: underline;
  text-decoration-color: var(--rosso-papavero);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
#logo-header {
  height: 40px;
  width: auto;
  margin-right: 10px;
}
@media (max-width: 767.98px) {
  /* Sotto i 768 px la prenotazione è nella barra fissa in basso */
  .site-nav-cta {
    display: none !important;
  }
  .site-nav {
    padding: 8px 16px;
  }
}
@media (min-width: 992px) {
  .site-nav .navbar-collapse {
    order: 2;
    margin-right: 20px;
  }
}
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    order: 4;
  }
  .site-nav .navbar-nav {
    padding: 8px 0 12px;
  }
}

/*====================
  HOME
====================*/
/* Stili specifici per pagine uniche, se necessario */

#home {
  margin-bottom: 50px;
}
#home #hero-block {
  padding-left: 50px;
}
#home h2 {
  font-size: 1.3rem;
  letter-spacing: var(--font-letter-spacing);
}
#home h2,
#home img,
#home p,
#service img {
  margin: 20px auto;
  width: 100%;
}
/* Con width/height nell'HTML (CLS) l'altezza segue la larghezza come prima */
#home img,
#service img {
  height: auto;
}
#home p.title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.5rem;
  letter-spacing: var(--font-letter-spacing);
  color: var(--main-color);
  font-weight: bold;
}
#home #hero-block p.title {
  font-family: var(--font-display) !important;
}
/* Wrapper to show the central half of the image and keep it vertically centered */
.half-image-clip {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: auto 233%;
  height: clamp(163px, 38vh, 325px);
  overflow: hidden;
  border-radius: 0;
}

#cta,
#newsletter,
#service,
#valori,
#curiosita,
.bg-conchiglia {
  /* Stili per l'header */
  background: url("../images/carta-retro.4d8374ea29a8.webp") no-repeat;
  background-position: center;
  background-size: cover;
  background-position-x: left;
}
#service .container {
  margin: 50px auto;
  width: 50%;
}
#service .container ul {
  margin: 30px auto;
}
#service .container li {
  border: 1px solid var(--blu-di-prussia);
  border-right: none;
  border-left: none;
  padding: 20px 0;
}
#service .container li:first-child {
  border-top: 2px solid var(--blu-di-prussia);
}
#service .container li:last-child {
  border-bottom: 2px solid var(--blu-di-prussia);
}
#service .container a.btn {
  margin: 0 auto 10px;
  width: 80%;
}

#gallery-container {
  margin-top: 50px;
}

.image-wrapper {
  position: relative;

  width: 100%;
  /* o una larghezza specifica */
  padding-top: 100%;
  /* L'altezza uguale alla larghezza */
  overflow: hidden;
  /* Nasconde qualsiasi contenuto che fuoriesce */
  margin-top: 10px;
}

.image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Assicura che l'immagine copra l'intera area mantenendo le proprie proporzioni */
}

.image-wrapper .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  /* Dark overlay */
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Il link resta nascosto dall'opacità dell'overlay, non da visibility:hidden,
   così è raggiungibile da tastiera e appare anche al focus (F17). */
.image-wrapper:hover .overlay,
.image-wrapper:focus-within .overlay {
  opacity: 1;
}
.instagram-link i {
  font-size: 2rem;
}
.image-wrapper:hover .instagram-link,
.image-wrapper:focus-within .instagram-link {
  color: var(--isabella);
}
.image-wrapper .instagram-link:hover {
  color: var(--rosso-papavero);
}

.circle-wrapper {
  border-radius: 50%;
}

#feedback .card {
  background-color: transparent;
}

#cta,
#newsletter {
  padding: 50px 0;
}
#cta .container p,
#newsletter .container p {
  font-size: 1rem;
  margin: 10px;
}
#newsletter-subscription label {
  left: 12px;
}

#newsletter-subscription button {
  padding-top: 0;
  padding-bottom: 0;
}

/*====================
  ABOUT
====================*/
/* Elegant values grid - does not override font-family */
#valori .container {
  margin-top: 30px;
}
.values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.value-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
  border-left: 4px solid rgba(0, 0, 0, 0.06);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.12);
}
.value-title {
  font-family: var(--font-text);
  font-weight: 600;
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.value-desc {
  margin: 0;
  line-height: 1.7;
  font-size: 1rem;
}
/* planner paragraphs spacing - keeps site's font */
#planner-ideale p {
  margin-bottom: 20px;
  border-bottom: #e2e2e2 1px solid;
}
/* Curiosita paragraphs inside a value-card style */
.curiosita-card {
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
}
.curiosita-card p {
  margin: 0 0 1rem 0;
  color: #1a1a1a;
  line-height: 1.75;
  font-size: 1rem;
}
@media (min-width: 768px) {
  .value-col {
    flex: 0 0 48%;
    max-width: 48%;
  }
}
@media (max-width: 767px) {
  .value-col {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
.value-row {
  display: flex;
  align-items: flex-start;
}

/*====================
  SERVICES
====================*/
/* Reuse values-card styling to match about.html */
.method-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.method-col {
  flex: 0 0 100%;
  max-width: 100%;
}
.method-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
  border-left: 4px solid rgba(0, 0, 0, 0.04);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease;
}
.method-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.12);
}
.method-title {
  font-family: var(--font-text);
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}
.method-desc {
  margin: 0;
  line-height: 1.7;
  font-size: 1rem;
}

/*====================
  BLOG
====================*/
#blog-container {
  margin-top: 50px;
}
.post-container {
  max-width: 960px;
}
.card {
  background-color: transparent;
}
.post {
  font-weight: bold;
}
/* Immagine della card articolo (components/post_card.html), prima stile inline */
.post-card-img {
  object-fit: cover;
  height: 200px;
}

/*====================
  PORTFOLIO
====================*/
/* #instagram: feed Instagram (prima condivideva l'id #gallery, F27) */
#gallery .col-md-4,
#instagram .col-md-4 {
  padding: 8px;
}

#photographers {
  margin-top: 50px;
}

#top-arrow {
  position: fixed;
  bottom: 100px;
  right: 20px;
  z-index: 1000;
  display: none;
  opacity: 0.4;
}
#top-arrow:hover {
  opacity: 0.8;
}
/*====================
  404
====================*/
.not-found h1 {
  color: #fff;
  font-size: 3em;
}
.not-found-home {
  display: block;
  margin-bottom: 0.875em;
  font-family: var(--font-display);
  letter-spacing: var(--font-letter-spacing);
  font-size: 2em;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
}
/*====================
  RESPONSIVE
====================*/
/* Stili per adattare il sito a diverse dimensioni di schermo, breakpoint */

@media (max-width: 768px) {
  /* Hero mobile: alta quanto il contenuto, sotto la navbar fissa */
  #header {
    min-height: 0;
    padding: 104px 0 72px;
  }
  .hero-inner {
    padding: 0 16px;
    gap: 16px;
  }
  .hero-lead {
    font-size: 1.05rem;
  }
  #home p.title {
    line-height: 1.1;
  }
  #home > .row {
    display: flex;
    flex-direction: column;
  }
  #home #hero-block {
    order: -1;
  }
}

@media (max-width: 480px) {
  #service .container {
    margin: 50px auto;
    width: 100%;
    font-size: 1.2rem;
  }
  /* Impilamento delle righe sotto 480px: solo nei container marcati con
     .stack-xs (tutte le sezioni esistenti), non nelle sezioni nuove (F20). */
  #newsletter-subscription > .row,
  .stack-xs > .row {
    display: block;
  }
  .stack-xs > .row > .col {
    padding: 0 40px;
  }
  #newsletter-subscription > .row > .col {
    margin: 5px auto 0;
    width: 80%;
  }

  #home #hero-block {
    padding-left: 40px;
  }
  #home-servizi-box {
    display: block;
  }

  #home-servizi-box #second-image {
    display: none;
  }

  #gallery .col-md-4,
  #instagram .col-md-4 {
    padding: 0 40px;
    width: 100%;
  }

  #id-contact-form label {
    font-size: 0.9rem;
  }
}

/*====================
  UTILITY
====================*/
/* Classi di utilità per margini, padding, testo, ecc. */

.align-right {
  text-align: right;
}

/*====================
  PULSANTI (redesign 15/11/2026, critique T3)
====================*/
/* Una sola CTA primaria in tutto il sito, come la landing v3: blu di Prussia
   pieno, angoli vivi, stessa misura ovunque, almeno 44 px (T8).
   Uso: components/booking_button.html (primaria "Prenota la call gratuita"),
   components/whatsapp_button.html (secondaria). Classi:
   .btn-emoi + .btn-emoi-primary | .btn-emoi-secondary | .btn-emoi-light;
   modificatori .btn-emoi-sm (navbar) e .btn-emoi-block (larghezza piena);
   .btn-emoi-group affianca i pulsanti (e li impila sotto i 480 px). */
.btn-emoi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--font-text);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.btn-emoi:focus-visible {
  outline: 2px solid var(--rosso-papavero);
  outline-offset: 2px;
}
.btn-emoi-primary {
  background-color: var(--blu-di-prussia);
  border-color: var(--blu-di-prussia);
  color: var(--isabella);
}
.btn-emoi-primary:hover,
.btn-emoi-primary:focus-visible {
  background-color: var(--blu-scuro);
  border-color: var(--blu-scuro);
  color: var(--isabella);
}
.btn-emoi-secondary {
  background-color: transparent;
  border-color: var(--blu-di-prussia);
  color: var(--blu-di-prussia);
}
.btn-emoi-secondary:hover,
.btn-emoi-secondary:focus-visible {
  background-color: var(--blu-di-prussia);
  color: var(--isabella);
}
/* Chiara: su fondo blu di Prussia (footer) o su foto */
.btn-emoi-light {
  background-color: var(--isabella);
  border-color: var(--isabella);
  color: var(--blu-di-prussia);
}
.btn-emoi-light:hover,
.btn-emoi-light:focus-visible {
  background-color: var(--grigio-cenere);
  border-color: var(--grigio-cenere);
  color: var(--blu-di-prussia);
}
.btn-emoi-sm {
  padding: 10px 18px;
  letter-spacing: 0.1em;
}
.btn-emoi-block {
  display: flex;
  width: 100%;
}
.btn-emoi-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
@media (max-width: 480px) {
  .btn-emoi-group {
    flex-direction: column;
    align-items: stretch;
    align-self: stretch;
  }
}

/*====================
  BARRA CTA MOBILE E ELEMENTI FLOTTANTI (critique T4)
====================*/
/* Barra fissa in basso sotto i 768 px (components/mobile_cta_bar.html),
   come la barra della landing v3. */
.mobile-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1010;
  display: flex;
  gap: 8px;
  background-color: var(--isabella);
  border-top: 1px solid var(--blu-di-prussia);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
.mobile-cta-bar .mobile-cta-bar-book {
  flex: 1;
  min-height: 50px;
  padding: 12px;
}
.mobile-cta-bar .mobile-cta-bar-wa {
  width: 54px;
  min-height: 50px;
  padding: 0;
  font-size: 1.35rem;
  letter-spacing: 0;
}
/* Badge privacy Iubenda (iniettato da GTM) in basso a sinistra, il bollino
   WhatsApp resta a destra: prima si sovrapponevano. Solo sulle pagine col
   footer del sito (la landing ha le sue regole). Selettore volutamente
   specifico: il CSS di Iubenda usa !important su selettori forti. */
body:has(.site-footer) button.iubenda-tp-btn.iubenda-cs-preferences-link[data-tp-float][data-tp-float] {
  left: 16px !important;
  right: auto !important;
}
@media (max-width: 767.98px) {
  footer {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }
  /* Su mobile la barra fissa ha già il pulsante WhatsApp: niente bollino e
     chat flottanti sopra il testo (come la landing). Freccia e badge Iubenda
     restano sopra la barra. */
  body:has(.mobile-cta-bar) .whatsapp-button,
  body:has(.mobile-cta-bar) .whatsapp-chat-box {
    display: none !important;
  }
  body:has(.mobile-cta-bar) #top-arrow {
    bottom: calc(144px + env(safe-area-inset-bottom));
  }
  body:has(.mobile-cta-bar) button.iubenda-tp-btn.iubenda-cs-preferences-link[data-tp-float][data-tp-float] {
    bottom: calc(84px + env(safe-area-inset-bottom)) !important;
    left: 12px !important;
    right: auto !important;
  }
}

/*====================
  OVERRIDE
====================*/
/* Sovrascrivere eventuali stili di librerie esterne (es. Bootstrap) */
/* Bootstrap .btn-primary (form, chat, pulsanti delle pagine non ancora
   rifatte): stesso aspetto della CTA primaria .btn-emoi-primary (T3). */
.btn-primary {
  font-family: var(--font-text);
  background-color: var(--blu-di-prussia);
  border: 1px solid var(--blu-di-prussia);
  border-radius: 0;
  color: var(--isabella);
  letter-spacing: 1px;
  min-height: 44px;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--blu-scuro);
  border-color: var(--blu-scuro);
  color: var(--isabella);
}
/* Date e testi secondari: #5A6268 sul crema = 5,5:1 (prima #6C757D 4,1:1, T8) */
.text-muted {
  color: #5a6268 !important;
}
.alert-success {
  background-color: var(--celeste-polvere);
  /* blu su celeste 5,43:1 (WCAG AA); prima isabella su celeste 2,1:1 (F07) */
  color: var(--blu-di-prussia);
}

/*====================
  CONTROLLI DA TASTIERA (F05)
====================*/
/* Bottone senza stile proprio: mantiene l'aspetto del testo che contiene
   (domande FAQ, icona della chat) ma è raggiungibile e attivabile da tastiera. */
.btn-reset {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-align: inherit;
  cursor: pointer;
}
.btn-reset:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.faq-toggle {
  display: block;
  width: 100%;
}

/* Carousel feedback: altezza pari alla slide più alta (scripts.js) */
#feedbackCarouselDesktop .carousel-inner,
#feedbackCarouselMobile .carousel-inner {
  min-height: 0;
  transition: min-height 0.25s ease;
}

/* Popup Calendly: da 1150px Calendly affianca dettagli e calendario, ma il suo
   widget.css limita il popup a 1000px (una colonna con la barra di scorrimento
   staccata dalla scheda). "body" serve a vincere su widget.css, caricato dopo.
   Sfondo bianco: la pagina Calendly nell'iframe è trasparente, quindi dove resta
   a una colonna (schermi più stretti, mobile) la barra sembrava sospesa sul sito. */
body .calendly-overlay .calendly-popup-content {
  background: #fff;
}

@media (min-width: 976px) {
  body .calendly-overlay .calendly-popup {
    width: 90%;
    max-width: 1150px;
  }
}

/*====================
  ACCESSIBILITÀ DEL LAYOUT (review WCAG 2.2, redesign 15/11/2026)
====================*/
/* Il focus da tastiera non finisce sotto la navbar fissa né sotto la barra
   CTA mobile (2.4.11). */
html {
  scroll-padding-top: 84px;
}
@media (max-width: 767.98px) {
  html {
    scroll-padding-bottom: 96px;
  }
}
/* Focus visibile su fondo blu (footer) e su foto (hero) */
footer a:focus-visible,
footer .btn-emoi:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
#header a:focus-visible,
#header .btn-emoi:focus-visible {
  outline: 2px solid var(--isabella);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--blu-di-prussia);
}
/* Focus distinto dalla voce della pagina corrente */
.site-nav .navbar-nav .nav-link:focus-visible {
  outline: 2px solid var(--blu-di-prussia);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Box CTA "Prenota la call" (components/booking_box.html), usato da blog e portfolio (redesign 15/11/2026). */
.booking-box {
  margin: 1rem 0;
  padding: 2rem 1.5rem;
  border: 1px solid var(--blu-di-prussia);
  background-color: #fff;
  text-align: center;
}
.booking-box-title {
  font-family: "Lora", Georgia, serif;
  font-size: 1.5rem;
  color: var(--blu-di-prussia);
  margin-bottom: 0.5rem;
}
.booking-box-text {
  text-align: center;
  margin: 0 auto 1.25rem;
  max-width: 40rem;
}
