/* ============================================================
   Sottoesposti – stile sito pubblico
   Font: Work Sans (body) + Cormorant Garamond (brand/titoli) + Poppins (slider)
   Palette: #fff sfondo | #1a1a1a testo | #888 secondario
   ============================================================ */

/* --- Reset e variabili ------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:   #1a1a1a;
  --dark:     #f7f7f7;
  --overlay:  rgba(10, 10, 10, 0.18);
  --nav-h:    64px;
  --font:     'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --muted:    #5b5b5b;
  --trans:    0.35s ease;
}

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  font-family: var(--font);
  font-weight: 300;
  background: #fff;
  color: var(--muted);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* --- Header / Nav ---------------------------------------- */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  /* nessuna transition su background/box-shadow: gestita dal ::after composited */
}

/* Strato visivo (background blur + ombra) animato solo via opacity → GPU composited */
#site-header::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 16px rgba(0,0,0,0.09);
  opacity: 0;
  transition: opacity var(--trans);
  pointer-events: none;
}

/* Scrolled (su home sopra foto) o solid (su pagine bianche) */
#site-header.scrolled::after,
#site-header.solid::after {
  opacity: 1;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.site-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.35rem, 1.75vw, 1.9rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  flex-shrink: 0;
  line-height: 1;
}
#site-header.scrolled .site-logo,
#site-header.solid .site-logo {
  color: #1a1a1a;
}

#site-nav ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

#site-nav a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  color: rgba(255,255,255,0.8);
  transition: color var(--trans), opacity var(--trans);
  text-decoration: none;
}

/* Sulle pagine bianche o dopo lo scroll */
#site-header.scrolled #site-nav a,
#site-header.solid #site-nav a {
  color: #5d5d5d;
}

#site-nav a:hover,
#site-nav a.active {
  color: #fff;
}
#site-nav a.active {
  border-bottom: none;
  padding-bottom: 0.4rem;
  text-decoration: none;
}
#site-header.scrolled #site-nav a:hover,
#site-header.solid #site-nav a:hover,
#site-header.scrolled #site-nav a.active,
#site-header.solid #site-nav a.active {
  color: #1a1a1a;
}
#site-header.scrolled #site-nav a.active,
#site-header.solid #site-nav a.active {
  border-bottom: none;
  padding-bottom: 0.4rem;
}

/* Link FOTO: leggero accento visivo (navigazione esterna) */
#site-nav a.nav-foto {
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 2px;
  padding: 0.35rem 0.9rem;
}
#site-header.scrolled #site-nav a.nav-foto,
#site-header.solid #site-nav a.nav-foto {
  border-color: rgba(0,0,0,0.25);
}

/* Dropdown gallerie */
.has-dropdown { position: relative; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: rgba(255,255,255,0.97);
  border-top: 2px solid var(--accent);
  padding: 0.5rem 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  z-index: 200;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

.dropdown li a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: #444;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff; /* bianco su hero */
  transition: transform var(--trans), opacity var(--trans);
}

#site-header.scrolled .nav-toggle span,
#site-header.solid .nav-toggle span {
  background: #333;
}

/* --- Pagine (SPA) ---------------------------------------- */
#app { min-height: 100vh; }

.page { animation: fadeIn 0.5s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Slider Ken Burns (homepage) ------------------------- */
.slider-track {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Ogni slide occupa tutto lo schermo, impilate */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Sfondo della slide con animazione Ken Burns */
.slide-bg {
  position: absolute;
  inset: -6%; /* margine extra per lo zoom senza bordi visibili */
  background-size: cover;
  background-position: center;
  animation: kenburns 8s ease-out forwards;
  will-change: transform;
}

/* Quattro varianti di zoom/pan, assegnate ciclicamente via nth-child */
@keyframes kenburns {
  from { transform: scale(1)    translate(0,    0);    }
  to   { transform: scale(1.12) translate(-1%, -1%);  }
}

.slide:nth-child(2) .slide-bg { animation-name: kenburns2; }
.slide:nth-child(3) .slide-bg { animation-name: kenburns3; }
.slide:nth-child(4) .slide-bg { animation-name: kenburns4; }
.slide:nth-child(5) .slide-bg { animation-name: kenburns5; }

@keyframes kenburns2 {
  from { transform: scale(1.1)  translate(1%,  1%);  }
  to   { transform: scale(1)    translate(0,   0);   }
}
@keyframes kenburns3 {
  from { transform: scale(1)    translate(1%,  0);   }
  to   { transform: scale(1.12) translate(-1%, 1%);  }
}
@keyframes kenburns4 {
  from { transform: scale(1.08) translate(-1%, 1%);  }
  to   { transform: scale(1)    translate(1%,  -1%); }
}
@keyframes kenburns5 {
  from { transform: scale(1)    translate(0,   1%);  }
  to   { transform: scale(1.1)  translate(1%,  0);   }
}

/* Dots di navigazione */
.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

/* Su mobile i dots vengono sollevati per evitare i bordi/controlli del browser. */
@media (max-width: 768px) {
  .slider-dots { bottom: 8.5rem; }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(10,10,10,0.12) 0%, rgba(10,10,10,0.3) 48%, rgba(10,10,10,0.46) 100%);
  }
  .slide-bg {
    inset: -8%;
    background-position: center center;
    animation-duration: 10s;
    filter: saturate(1.04) contrast(1.03);
    transform: scale(1.04);
  }
  .hero-content {
    max-width: min(78vw, 420px);
    background: rgba(90, 90, 90, 0.42);
  }
}

@media (max-width: 480px) {
  .slide-bg {
    inset: -12%;
    background-position: center center;
    transform: scale(1.02);
  }
  .hero-content {
    max-width: min(82vw, 360px);
    background: rgba(90, 90, 90, 0.44);
  }
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background var(--trans), border-color var(--trans), transform var(--trans);
}

.dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.3);
}

.dot:hover:not(.active) {
  background: rgba(255,255,255,0.4);
}

/* --- Hero (layout comune) -------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Hero bianco: quando non ci sono foto slider */
.hero-blank {
  background: #fff;
}

.hero-title-dark  { color: #222 !important; }
.hero-subtitle-dark { color: #666 !important; }

.hero-cta-dark {
  border-color: #1a1a1a !important;
  color: #1a1a1a !important;
}
.hero-cta-dark:hover {
  background: #1a1a1a !important;
  color: #fff !important;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 2.5rem 3rem;
  background: rgba(110, 110, 110, 0.48);
  max-width: min(1000px, 92vw);
  width: 100%;
}

.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 58px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  margin-top: 1.2rem;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(255,255,255,0.9);
  text-transform: none;
  line-height: 1.45;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-block;
  margin-top: 2.5rem;
  padding: 0.75rem 2.5rem;
  border: 1px solid rgba(255,255,255,0.65);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: background var(--trans), color var(--trans);
}
.hero-cta:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* --- Sezione testo centrato (About, Cosa facciamo) ------- */
.fullscreen-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 3rem) 2rem 4rem;
  text-align: center;
}

.section-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.section-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.38);
}

.section-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  width: 100%;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}

.about-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
}

.about-page .section-bg {
  background-position: top center;
  background-attachment: scroll;
}

.about-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.about-tagline {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: #555;
  margin-bottom: 1rem;
}

.about-divider {
  background: rgba(0,0,0,0.15);
  margin: 1.5rem auto 2.5rem;
  max-width: 80px;
  height: 1px;
}

.about-text-block {
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

.about-content-box {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  padding: 3rem 3.5rem;
  border-radius: 2px;
}
.about-content-box .social-links a {
  color: #555;
}
.about-content-box .social-links a:hover {
  color: #1a1a1a;
  opacity: 1;
}
.about-page .section-text {
  color: #444;
}

.section-subtitle {
  font-size: 1rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.5rem;
}

.section-text {
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.9;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  text-align: left;
}
.section-text.centered { text-align: center; }

.section-tagline {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 2rem;
}

.page-tagline {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 2.5rem;
}

.page-text-block {
  max-width: 680px;
  margin: 0 auto 2rem;
  text-align: left;
}
.page-text-block p {
  font-size: 1rem;
  line-height: 1.9;
  font-weight: 300;
  color: #555;
  margin-bottom: 1.25rem;
}

.page-item-text {
  font-size: 0.95rem;
  line-height: 1.85;
  font-weight: 300;
  color: #666;
}

.divider {
  width: 60px;
  height: 1px;
  background: #ccc;
  margin: 1.5rem auto;
}

/* Box testo con sfondo semi-opaco */
.text-box {
  background: rgba(255, 255, 255, 0.94);
  padding: 2.5rem 3rem;
  box-shadow: 4px 7px 24px rgba(0,0,0,0.18);
}
.text-box .section-text  { color: #333; }
.text-box .section-title { color: var(--accent); }

/* --- Social icons ---------------------------------------- */
.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}
.social-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  transition: opacity var(--trans);
}
.social-links a:hover { opacity: 0.7; }
.social-links svg { width: 20px; height: 20px; fill: currentColor; }

/* --- Email contact ---------------------------------------- */
.contact-email {
  font-size: 1rem;
  letter-spacing: 2px;
  color: #444;
  margin-top: 1rem;
  display: inline-block;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color var(--trans);
}
.contact-email:hover { color: var(--accent); }

.about-contact-block {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: 'Work Sans', sans-serif;
  color: #555;
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: center;
}

.about-contact-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a5a5a;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.about-contact-lines {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  align-items: center;
  text-align: center;
  color: #5b5b5b;
}

.about-contact-lines a,
.about-privacy-link {
  color: #555;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.about-contact-lines a:hover,
.about-privacy-link:hover {
  color: #1a1a1a;
}

.newsletter-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}
.newsletter-button {
  border: 1px solid rgba(26, 26, 26, 0.15);
  background: #a9a9a9;
  color: #fff;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.newsletter-button:hover {
  background: #949494;
  transform: translateY(-1px);
}

.newsletter-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.newsletter-modal.open {
  opacity: 1;
  visibility: visible;
}
.newsletter-panel {
  width: min(820px, 100%);
  background: #fff;
  border: 1px solid #e7e7e7;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  overflow: hidden;
}
.newsletter-image-box {
  min-height: 320px;
  background: #f3f3f3;
  border-right: 1px solid #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.newsletter-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.newsletter-content {
  padding: 2rem 2rem 1.5rem;
  position: relative;
}
.newsletter-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: none;
  font-size: 1.5rem;
  color: #777;
  cursor: pointer;
}
.newsletter-title {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: 0.04em;
  text-transform: none;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
  font-weight: 500;
}
.newsletter-subtitle {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
}
.newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0.2rem 0 0.7rem;
}
.newsletter-consent input {
  width: 16px;
  height: 16px;
  margin-top: 0.2rem;
  accent-color: #1a1a1a;
}
.newsletter-consent label {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #444;
  cursor: pointer;
}
.newsletter-consent-dot {
  display: inline-block;
  margin-right: 0.1rem;
}
.newsletter-form {
  display: grid;
  gap: 1rem;
}
.newsletter-control {
  display: grid;
  gap: 0.4rem;
}
.newsletter-control label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
}
.newsletter-control input {
  width: 100%;
  border: 1px solid #d8d8d8;
  background: #fafafa;
  padding: 0.8rem 0.9rem;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.95rem;
  color: #1a1a1a;
}
.newsletter-control input:focus {
  outline: none;
  border-color: #1a1a1a;
  background: #fff;
}
.newsletter-submit {
  width: 100%;
  border: none;
  background: #1a1a1a;
  color: #fff;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.newsletter-submit:hover {
  background: #2b2b2b;
}
.newsletter-feedback {
  min-height: 1.5rem;
  font-size: 0.9rem;
  color: #2a5d36;
  margin-top: 0.2rem;
}
.newsletter-feedback.error {
  color: #af2c2c;
}
.newsletter-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

@media (max-width: 760px) {
  .newsletter-panel {
    grid-template-columns: 1fr;
  }
  .newsletter-image-box {
    min-height: 220px;
    border-right: none;
    border-bottom: 1px solid #ececec;
  }
}

/* --- Gallerie di servizio (backstage, idee…) ------------ */
.galleries-page {
  padding: calc(var(--nav-h) + 3rem) 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.bottega-page {
  max-width: 1100px;
}

.bottega-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.bottega-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: start;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.bottega-section--alt {
  grid-template-columns: 1fr 0.8fr;
}

.bottega-copy {
  max-width: 620px;
}

.bottega-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 1.2rem;
}

.bottega-section--alt .bottega-section-title {
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  letter-spacing: 0.06em;
}

.bottega-text {
  color: #444;
  margin-bottom: 1.25rem;
  text-align: justify;
}

.bottega-text a {
  display: inline-block;
  color: #1a1a1a;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(26, 26, 26, 0.7);
  transition: color var(--trans), text-decoration-color var(--trans), transform var(--trans);
}

.bottega-text a:hover,
.bottega-text a:focus-visible {
  color: #000;
  text-decoration-color: #000;
  transform: translateY(-1px);
  outline: none;
}

.bottega-copy {
  text-align: justify;
}

.bottega-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 0.8rem;
}

.craft-symbols {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 190px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.7);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.craft-symbols span {
  font-size: clamp(2.2rem, 4vw, 4rem);
  color: #a38a5b;
  line-height: 1;
}

.craft-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 0.8rem;
  align-items: stretch;
}

.craft-thumb {
  aspect-ratio: 1 / 1;
}

.galleries-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 3rem;
}

.page-subtitle {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: #999;
  text-align: center;
  margin-bottom: 2rem;
}

.galleries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #e8e8e8;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-card:hover img { transform: scale(1.06); }

.gallery-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
.gallery-card-title {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
}
.gallery-card-count {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  transition: opacity var(--trans);
}
.back-link:hover { opacity: 0.7; }

/* Griglia thumbnail (backstage / idee / gallerie singole) */
.thumbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 1.5rem;
}

.thumb {
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #e8e8e8;
  margin: 0;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
}
.thumb:hover img {
  transform: scale(1.05);
  opacity: 0.85;
}

.gallery-description {
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 1rem;
}

.gallery-copyright {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.72rem;
  color: #666;
  letter-spacing: 0.3px;
  line-height: 1.6;
}
.gallery-copyright a {
  color: #666;
  text-decoration: underline;
}
.gallery-privacy-link {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gallery-privacy-link a {
  color: #666;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

/* --- Services grid (cosa facciamo) ---------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem 3rem;
  margin-top: 1.5rem;
}

.service-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 2px;
}

.service-title {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* --- FAQ accordion --------------------------------------- */
.faq-banner {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.faq-list {
  max-width: 720px;
  margin: 1.5rem auto 0;
}

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.faq-item:first-child {
  border-top: 1px solid rgba(0,0,0,0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  padding: 0.95rem 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: var(--accent);
  gap: 1rem;
  transition: opacity 0.15s;
}

.faq-question:hover { opacity: 0.65; }

.faq-icon {
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.2s;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 0 0.9rem;
}

.faq-answer p {
  font-size: 0.9rem;
  line-height: 1.9;
  color: #333;
  margin: 0;
  text-align: justify;
}

/* --- News ------------------------------------------------ */
.news-page {
  padding: calc(var(--nav-h) + 1.5rem) 2rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.news-list {
  max-width: 720px;
  margin: 0 auto;
}

.news-date {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.news-title {
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 2px;
  color: #222;
  margin-bottom: 0.75rem;
}

.news-text {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #555;
}

.news-item {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.09);
}
.news-item:last-child { border-bottom: none; }

/* --- Toast copyright ------------------------------------ */
#toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #1a1a1a; color: #fff;
  font-size: 12px; letter-spacing: 0.06em;
  padding: 10px 20px; border-radius: 2px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  z-index: 9999; opacity: 0; transition: opacity 0.25s;
  pointer-events: none; white-space: nowrap;
}
#toast.show { opacity: 1; }

/* --- Lightbox -------------------------------------------- */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox[hidden] { display: none; }

#lightbox figure {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
}

#lightbox button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#lightbox-caption {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
}

#lightbox-close {
  position: fixed;
  top: 1rem; right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
  transition: opacity var(--trans);
  z-index: 201;
}
#lightbox-close:hover { opacity: 1; }

#lightbox-prev,
#lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity var(--trans);
  padding: 1.2rem 1.5rem;
  z-index: 201;
  line-height: 1;
  min-width: 3.5rem;
  min-height: 3.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#lightbox-prev { left: 0.25rem; }
#lightbox-next { right: 0.25rem; }
#lightbox-prev:hover,
#lightbox-next:hover { opacity: 1; background: rgba(255,255,255,0.04); }

@media (max-width: 680px) {
  #lightbox-prev,
  #lightbox-next {
    padding: 1.4rem 1.8rem;
    min-width: 4rem;
    min-height: 4rem;
  }
}

/* --- Sezione Instagram (pagina News) -------------------- */
.ig-card {
  padding: 1.75rem 2rem;
  border: 1px solid rgba(0,0,0,0.08);
  text-align: center;
}

.ig-icon svg {
  width: 44px;
  height: 44px;
  fill: #1a1a1a;
  margin-bottom: 0.75rem;
}

.ig-username {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.ig-text {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #666;
  max-width: 560px;
  margin: 0 auto 1.25rem;
}

.ig-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.ig-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.8rem;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all var(--trans);
  text-decoration: none;
  cursor: pointer;
}
.ig-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.ig-btn-stories {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #1a1a1a;
}
.ig-btn-stories:hover {
  background: #333;
  border-color: #333;
  color: #fff;
}

.ig-btn-follow {
  border: 1px solid rgba(0,0,0,0.22);
  color: #444;
  background: transparent;
}
.ig-btn-follow:hover {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.ig-note {
  font-size: 0.75rem;
  color: #aaa;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
}

/* --- Instagram feed grid ---------------------------------- */
.ig-feed { margin-top: 3.5rem; }

.ig-feed-loading { text-align: center; padding: 2rem 0; }
.ig-feed-spinner {
  display: inline-block;
  width: 22px; height: 22px;
  border: 2px solid #e0e0e0;
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: ig-spin 0.7s linear infinite;
}
@keyframes ig-spin { to { transform: rotate(360deg); } }

.ig-feed-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
}

.ig-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 5px;
}

.ig-feed-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: block;
  background: #f0f0f0;
}
.ig-feed-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ig-feed-item:hover img { transform: scale(1.05); }

.ig-feed-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.72);
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.ig-feed-item:hover .ig-feed-overlay { opacity: 1; }
.ig-feed-overlay p {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.45;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.ig-feed-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.85);
  font-size: 1.8rem;
  pointer-events: none;
}

/* --- IG header slim -------------------------------------- */
.ig-header-slim {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 0 1.2rem;
  border-bottom: 1px solid #e2e2e2;
  margin-bottom: 0;
}
.ig-header-handle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: #1a1a1a;
  text-decoration: none;
}
.ig-header-handle:hover { color: #555; }
.ig-header-follow {
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #999;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.ig-header-follow:hover { color: #1a1a1a; border-color: #1a1a1a; }

/* --- Instagram stories strip ----------------------------- */
.ig-stories-strip { margin-top: 1.6rem; margin-bottom: 2rem; }

.ig-stories-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.8rem 0.5rem 1.4rem;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}
.ig-stories-scroll::-webkit-scrollbar { height: 4px; }
.ig-stories-scroll::-webkit-scrollbar-track { background: transparent; }
.ig-stories-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

.ig-story-item {
  flex: 0 0 auto;
  width: 160px;
  height: 284px;
  border-radius: 18px;
  padding: 0;
  background: #e8e8e8;
  text-decoration: none;
  display: block;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}
.ig-story-item:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.ig-story-inner {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #e8e8e8;
}
.ig-story-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ig-story-video-badge {
  position: absolute;
  bottom: 6px; right: 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 8px;
  pointer-events: none;
}
.ig-story-date {
  font-size: 11px;
  color: #888;
  text-align: center;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* --- Story circles --------------------------------------- */
.ig-story-circle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex: 0 0 auto;
}
.ig-story-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  padding: 3.5px;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ig-story-circle-wrap:hover .ig-story-circle {
  transform: scale(1.07);
  box-shadow: 0 4px 14px rgba(188,24,136,0.3);
}
.ig-story-circle-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: #e8e8e8;
}
.ig-story-circle-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ig-story-circle-date {
  font-size: 10px;
  color: #999;
  text-align: center;
  letter-spacing: 0.02em;
}

/* --- Lightbox unificato (storie + post) ------------------ */
#ig-lb {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.2rem;
  cursor: pointer;
}
#ig-lb.active { display: flex; }
#ig-lb-img {
  max-height: 70vh;
  max-width: min(70vh, 88vw);
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
  cursor: default;
}
#ig-lb-caption {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  max-width: min(82vh, 86vw);
  text-align: center;
  line-height: 1.65;
  cursor: default;
  background: rgba(0,0,0,0.52);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.6rem 1rem;
  border-radius: 6px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
}
#ig-lb-close {
  position: fixed;
  top: 0.8rem; right: 1rem;
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.6rem;
  line-height: 1;
  z-index: 10000;
}
#ig-lb-open {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.55);
  padding: 0.55rem 1.6rem;
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: default;
}
#ig-lb-open:hover { background: rgba(255,255,255,0.12); }

/* --- Load more button ------------------------------------ */
.ig-load-more {
  display: block;
  margin: 2.5rem auto 1rem;
  padding: 0.75rem 2.4rem;
  min-height: 48px;
  background: transparent;
  border: 1px solid #1a1a1a;
  color: #1a1a1a;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  -webkit-appearance: none;
}
.ig-load-more:hover { background: #1a1a1a; color: #fff; }
.ig-load-more:disabled { opacity: 0.45; cursor: default; }

/* --- Responsive ------------------------------------------ */

/* ── iPad (≤ 900px) ──────────────────────────────────────── */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 2rem;
  }
  .hero-title    { font-size: 44px; }
  .hero-subtitle { font-size: 28px; }
  .about-title   { letter-spacing: 5px; }
}

/* ── Tablet / mobile (≤ 768px) ──────────────────────────── */
@media (max-width: 768px) {
  #site-header.scrolled,
  #site-header.solid {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  #lightbox {
    align-items: flex-start;
    padding: 1rem 0 4.5rem;
  }

  #lightbox figure {
    max-width: 92vw;
    margin: 0 auto;
    padding-bottom: 0;
  }

  #lightbox-img {
    max-height: 72vh;
  }

  #lightbox-prev,
  #lightbox-next {
    position: fixed !important;
    top: auto !important;
    bottom: 1rem !important;
    transform: none !important;
    font-size: 2.1rem !important;
    opacity: 0.9 !important;
    z-index: 201 !important;
  }

  #lightbox-prev { left: calc(50% - 3rem) !important; }
  #lightbox-next { right: calc(50% - 3rem) !important; }

  .nav-toggle { display: flex; }

  #site-nav {
    position: fixed;
    top: calc(var(--nav-h) + 10px);
    left: 50%;
    right: auto;
    width: min(88vw, 360px);
    min-height: auto;
    max-height: calc(100vh - var(--nav-h) - 24px);
    padding: 0.75rem;
    background: rgba(17, 17, 17, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
    transform: translateX(-50%);
    z-index: 200;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    overflow: auto;
  }
  #site-nav.open { display: flex; }

  .header-inner {
    padding: 0 0.9rem;
  }

  .site-logo {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
  }

  #site-nav ul {
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 0;
  }

  #site-nav li {
    width: 100%;
  }

  #site-nav a,
  #site-header.solid #site-nav a,
  #site-header.scrolled #site-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.8rem;
    padding: 0.7rem 0.8rem;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    line-height: 1.2;
    color: rgba(255,255,255,0.88);
    border: 1px solid transparent !important;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
  }

  #site-nav a:hover,
  #site-nav a.active,
  #site-header.solid #site-nav a:hover,
  #site-header.solid #site-nav a.active,
  #site-header.scrolled #site-nav a:hover,
  #site-header.scrolled #site-nav a.active {
    color: #fff;
  }

  #site-nav a.active {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.18) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  }

  .social-links {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

  .social-links a {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .hero-content  { padding: 2rem 1.5rem; max-width: 96vw; }
  .hero-title    { font-size: 28px; white-space: normal; }
  .hero-subtitle { font-size: 22px; max-width: 100%; }
  .hero-subtitle br { display: none; }

  .about-title   {
    font-size: 1.8rem;
    letter-spacing: 5px;
    margin-bottom: 1.1rem;
  }
  .about-tagline {
    margin-bottom: 1.6rem;
  }
  .about-divider {
    margin: 1rem auto 1.8rem;
  }
  .section-title { font-size: 1.8rem; letter-spacing: 4px; }
  .about-content-box { padding: 2rem 1.25rem; }
  .section-text.centered { text-align: justify; }

  .galleries-grid  { grid-template-columns: 1fr 1fr; }
  .services-grid   { grid-template-columns: 1fr; gap: 1.5rem; }
  .thumbs-grid     { grid-template-columns: repeat(2, 1fr); }

  .galleries-page,
  .news-page {
    padding: calc(var(--nav-h) + 2rem) 1.25rem 3rem;
  }

  .text-box { padding: 1.5rem 1.25rem; }

  .fullscreen-section {
    padding: calc(var(--nav-h) + 2rem) 1.25rem 3rem;
  }

  .bottega-hero {
    margin-bottom: 0.5rem;
  }

  .bottega-section {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    padding: 0.8rem 0;
  }

  .bottega-section-title {
    margin-bottom: 0.7rem;
    font-size: 1.5rem;
    line-height: 1.1;
  }

  .bottega-copy {
    max-width: 100%;
    text-align: left;
  }

  .bottega-text {
    text-align: left;
    margin-bottom: 0.7rem;
  }

  .bottega-gallery,
  .craft-photos {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 0.45rem;
    margin-top: 0.2rem;
  }
}

/* ── Mobile piccolo (≤ 480px) ────────────────────────────── */
@media (max-width: 480px) {
  .hero-title    { font-size: 24px; }
  .hero-subtitle { font-size: 18px; }
  .hero-content  { padding: 1.5rem 1rem; }

  .galleries-grid  { grid-template-columns: 1fr; }
  .thumbs-grid     { grid-template-columns: repeat(2, 1fr); }

  .about-title   { font-size: 1.4rem; letter-spacing: 3px; }
  .section-title { font-size: 1.4rem; letter-spacing: 3px; }
  .about-tagline { letter-spacing: 2px; }
  .about-content-box { padding: 1.5rem 1rem; }

  #lightbox-prev { left: 0; }
  #lightbox-next { right: 0; }
}
