:root {
  --bg: #f7fbfe;
  --surface: #ffffff;
  --surface-soft: #edf6fc;
  
  --text: #263746;
  --muted: #6c7f8f;
  
  --accent: #6faed6;
  --accent-dark: #4f86ad;
  --accent-light: #dbeef9;

  --gold: #c6a15b;
  --gold-dark: #9a7534;
  --gold-light: #f3e8cf;
  
  --warm: #9fc9e3;
  
  --border: #d7e5ee;
  --shadow: 0 24px 70px rgba(62, 104, 133, 0.12);
  
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { max-width: 100%; display: block; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--text);
  color: white;
  border-radius: 8px;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 110px 0; }
.section-soft { background: var(--surface-soft); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(111, 174, 214, .35);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 251, 254, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(215, 229, 238, .75);
}
.home-page .site-header {
  position: absolute;
  inset: 0 0 auto;
  color: var(--text);
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(255, 255, 255, .72);
  box-shadow: 0 8px 30px rgba(38, 55, 70, .06);
  backdrop-filter: blur(14px);
}
.home-page .site-header .brand-mark { background: transparent; border: 0; }
.home-page .site-header .brand-text small { color: var(--muted); }
.home-page .site-header .primary-nav a:hover { color: var(--accent-dark); opacity: 1; }
.home-page .site-header .nav-cta { border-color: var(--gold); background: rgba(255,255,255,.55); }
.home-page .site-header .menu-toggle span { background: var(--text); }
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 52px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  background: transparent;
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: "Lora", serif; font-size: 1.05rem; }
.brand-text small { color: var(--muted); margin-top: 4px; }
.primary-nav { display: flex; align-items: center; gap: 30px; font-size: .95rem; font-weight: 600; }
.primary-nav a { transition: color .2s ease; }
.primary-nav a:hover { color: var(--accent-dark); }
.nav-cta { padding: 11px 18px; border: 1px solid var(--gold); border-radius: 999px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--text); transition: .25s ease; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  background: linear-gradient(rgba(18,29,36,.42), rgba(18,29,36,.42)), 
  url("assets/img/s4.jpg") center / cover no-repeat;
}
.hero-inner { display: flex; justify-content: center; padding-block: 150px 110px; }
.hero-copy {
  width: min(100%, 820px);
  text-align: center;
  text-shadow: 0 2px 24px rgba(10,20,26,.28);
}
.hero .eyebrow { margin-bottom: 16px; color: #f1d89f; }
.hero h1 { max-width: none; margin-bottom: 18px; font-size: clamp(2.8rem, 5vw, 4.8rem); font-weight: 500; white-space: nowrap; }
.hero-lead { margin: 0 0 22px; font-family: "Lora", serif; font-size: clamp(1.35rem, 2.2vw, 2rem); }
.hero .hero-text { max-width: 640px; margin: 0 auto; color: rgba(255,255,255,.92); font-family: "DM Sans", sans-serif; font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.7; text-wrap: balance; }
.hero .button-primary { background: var(--gold); color: #263746; text-shadow: none; }
.hero .button-primary:hover { background: #d8b971; }
.hero .button-secondary { color: white; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); text-shadow: none; }
.hero-scroll { position: absolute; left: 50%; bottom: 24px; display: flex; align-items: center; gap: 10px; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; transform: translateX(-50%); }
.hero-scroll span:last-child { font-size: 1.25rem; animation: scroll-cue 1.8s ease-in-out infinite; }
@keyframes scroll-cue { 50% { transform: translateY(6px); } }
.eyebrow { margin: 0 0 18px; color: var(--gold-dark); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: "Lora", serif; line-height: 1.18; }
h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(2.8rem, 5vw, 5.4rem); letter-spacing: -.045em; }
h2 { margin-bottom: 22px; font-size: clamp(2.1rem, 3.5vw, 3.8rem); letter-spacing: -.035em; }
h3 { margin-bottom: 12px; font-size: 1.35rem; }
.hero-text { max-width: 650px; margin: 0 0 34px; color: var(--muted); font-size: 1.14rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, border .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent-dark); color: white; }
.button-primary:hover { background: #3f7599; }
.button-secondary { border-color: var(--border); background: rgba(255,255,255,.5); }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px 30px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.hero-points li::before { content: "•"; margin-right: 9px; color: var(--warm); }

.hero-visual {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
}

.portrait-card {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-image {
  width: 420px;
  height: 420px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 10px solid var(--surface);
  box-shadow: 0 24px 60px rgba(70, 110, 140, 0.18);
}

.floating-note {
  position: absolute;
  left: 205px;
  bottom: -70px;
  z-index: 5;

  display: flex;
  align-items: flex-start;
  gap: 12px;

  width: 285px;
  padding: 16px 18px;

  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 18px;

  box-shadow: 0 12px 35px rgba(62, 104, 133, 0.14);

  backdrop-filter: blur(8px);
}

.floating-note p {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.note-icon {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: 2px;
}
.shape { position: absolute; border-radius: 50%; filter: blur(1px); }
.shape-one { width: 170px; height: 170px; top: 20px; right: -40px; background: #d9edf9; }
.shape-two { width: 120px; height: 120px; bottom: 10px; left: -20px; background: var(--accent-light); }

.trust-bar { border-block: 1px solid var(--border); background: rgba(255,255,255,.5); }
.trust-grid { min-height: 135px; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid div { display: flex; flex-direction: column; justify-content: center; padding: 24px 30px; border-right: 1px solid var(--border); }
.trust-grid div:last-child { border-right: 0; }
.trust-grid strong { font-family: "Lora", serif; font-size: 1.15rem; }
.trust-grid span { margin-top: 4px; color: var(--muted); font-size: .88rem; }

.split-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.section-intro { position: sticky; top: 130px; }
.content-card { padding: 42px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 16px 45px rgba(62,104,133,.07); }
.content-card > p { margin-top: 0; color: var(--muted); font-size: 1.05rem; }
.credentials { margin-top: 34px; display: grid; gap: 16px; }
.credentials div { padding: 18px 0; border-top: 1px solid var(--border); }
.credentials span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .85rem; }
.credentials ul { display: grid; gap: 5px; margin: 0; padding-left: 20px; font-weight: 700; }

#chi-sono .content-card { display: flex; flex-direction: column; justify-content: center; align-self: stretch; padding: 38px; }
#chi-sono .content-card > p { margin: 0 0 12px; font-size: 1rem; line-height: 1.65; }
#chi-sono .content-card > p:last-of-type { margin-bottom: 0; }
#chi-sono .credentials { margin-top: 24px; gap: 0; }
#chi-sono .credentials div { padding: 12px 0; }

.section-heading { max-width: 760px; margin-bottom: 52px; }
.section-heading > p:last-child { color: var(--muted); }
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 64px; }
.service-card { position: relative; min-height: 0; padding: 26px 0 26px 28px; border-bottom: 1px solid var(--border); }
.service-card::before { content: ""; position: absolute; top: 34px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px var(--gold-light); }
.service-card h3 { margin-bottom: 8px; }
.service-card p { max-width: 510px; margin: 0; color: var(--muted); }

.method-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.method-copy { position: sticky; top: 130px; align-self: start; }
.method-copy > p:not(.eyebrow) { color: var(--muted); }
.text-link { display: inline-flex; gap: 12px; margin-top: 18px; color: var(--accent-dark); font-weight: 700; }
.steps-list { margin: 0; padding: 0; list-style: none; }
.steps-list li { display: grid; grid-template-columns: 54px 1fr; gap: 22px; padding: 0 0 34px; margin-bottom: 34px; border-bottom: 1px solid var(--border); }
.steps-list li > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-dark); color: white; font-weight: 700; }
.steps-list p { margin: 0; color: var(--muted); }

.quote-section { padding: 95px 0; border-top: 3px solid var(--gold); background: var(--accent-dark); color: white; }
blockquote { max-width: 950px; margin: 0 auto; text-align: center; font-family: "Lora", serif; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.3; }

.faq-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 90px; }
.accordion { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item button { width: 100%; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 0; background: transparent; color: var(--text); text-align: left; font-weight: 700; cursor: pointer; }
.faq-icon { font-size: 1.5rem; transition: transform .2s ease; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq-content p { overflow: hidden; margin: 0; color: var(--muted); }
.faq-item.is-open .faq-content { grid-template-rows: 1fr; }
.faq-item.is-open .faq-content p { padding-bottom: 24px; }

.contact-section { background: #e8f3fa; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); }
.contact-details { display: grid; gap: 12px; margin-top: 34px; }
.contact-details a, .contact-details div { padding: 18px 0; border-bottom: 1px solid rgba(79,134,173,.2); }
.contact-details span { display: block; color: var(--muted); font-size: .82rem; }
.contact-form { padding: 38px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.studio-map { max-width: 400px; margin-top: 32px; }
.studio-map h3 { margin: 0 0 6px; }
.studio-map p { margin: 0 0 14px; color: var(--muted); font-size: .9rem; }
.studio-map > a:first-of-type { display: block; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.studio-map iframe { display: block; width: 100%; height: 220px; border: 0; pointer-events: none; }
.studio-map-directions { display: inline-block; margin-top: 12px; color: var(--primary-dark); font-size: .9rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; margin-bottom: 8px; font-weight: 700; }
.form-row label span { color: var(--muted); font-weight: 400; }
input, textarea { width: 100%; border: 1px solid var(--border); border-radius: 12px; background: #fbfdff; color: var(--text); padding: 14px 15px; }
textarea { resize: vertical; }
input.invalid, textarea.invalid { border-color: #a94d4d; }
.error-message { min-height: 18px; display: block; margin-top: 5px; color: #9b3c3c; font-size: .78rem; }
.privacy-check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: .82rem; }
.privacy-check input { width: 18px; height: 18px; margin-top: 2px; }
.button-full { width: 100%; border: 0; margin-top: 18px; }
.form-note { margin: 14px 0 0; color: var(--muted); font-size: .76rem; }
.form-status { margin-top: 12px; font-size: .9rem; font-weight: 600; }
.form-status.is-success { color: #276749; }
.form-status.is-error { color: #a52a2a; }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form button:disabled { cursor: wait; opacity: .65; transform: none; }

.site-footer { padding: 70px 0 24px; background: #263746; color: white; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 80px; }
.footer-brand .brand-mark { background: transparent; }
.footer-brand .brand-text small { color: rgba(255,255,255,.65); }
.footer-grid p { max-width: 520px; color: rgba(255,255,255,.62); }
.footer-links { display: grid; gap: 12px; align-content: start; }
.footer-links a { color: rgba(255,255,255,.76); }
.footer-bottom { margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.5); font-size: .82rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .primary-nav { position: fixed; inset: 82px 0 auto; display: none; flex-direction: column; align-items: stretch; padding: 26px 20px 34px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: 0 20px 30px rgba(38,55,70,.08); }
  .home-page .site-header .primary-nav { color: var(--text); }
  .home-page .site-header .primary-nav a:hover { color: var(--accent-dark); opacity: 1; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 10px 0; }
  .nav-cta { text-align: center; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  
  .hero-grid, .split-layout, .method-grid, .faq-layout, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero { background-position: 38% center; }
  .hero-inner { align-items: center; min-height: 100svh; padding-block: 130px 90px; }
  .hero-copy { width: min(100%, 680px); max-width: 760px; }
  .hero-visual { min-height: 520px; }
  .section-intro, .method-copy { position: static; }
  #chi-sono .content-card { align-self: auto; }
  .cards-grid { column-gap: 40px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid div:nth-child(2) { border-right: 0; }
  .trust-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 78px 0; }
  .nav-wrap { min-height: 72px; }
  .primary-nav { inset: 72px 0 auto; }
  .brand-text small { display: none; }
  h1 { font-size: clamp(2.5rem, 12vw, 3.8rem); }
  h2 { font-size: clamp(2rem, 9vw, 3rem); }
  .hero-actions { flex-direction: column; }
  .hero { min-height: 100svh; align-items: center; background-position: 35% center; }
  .hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,25,31,.08) 25%, rgba(15,25,31,.82) 100%); }
  .hero-inner { position: relative; z-index: 1; min-height: auto; padding-block: 180px 88px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(1.45rem, 7vw, 2.25rem); }
  .hero .hero-text { font-size: 1rem; }
  .hero-scroll { display: none; }
  .button { width: 100%; }
  .hero-visual { min-height: 430px; }
  .floating-note { right: -6px; bottom: -28px; width: 220px; }
  .shape-one { width: 110px; height: 110px; }
  .trust-grid, .cards-grid { grid-template-columns: 1fr; }
  .trust-grid div { border-right: 0; border-bottom: 1px solid var(--border); }
  .trust-grid div:last-child { border-bottom: 0; }
  .content-card, .contact-form { padding: 26px; border-radius: 22px; }
  #chi-sono .content-card { padding: 26px; }
  .studio-map { max-width: none; margin-top: 30px; }
  .studio-map iframe { height: 210px; }
  .service-card { padding-block: 22px; }
  .steps-list li { grid-template-columns: 44px 1fr; gap: 14px; }
  .steps-list li > span { width: 40px; height: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; }
}

/* Componenti aggiunti dalla versione precedente */
.approach-tags,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 30px;
}

.approach-tags span,
.social-links a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
  background: var(--surface);
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
}

.social-links a {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.social-links a:hover { color: var(--accent-dark); border-color: var(--accent); transform: translateY(-2px); }
.social-links svg { width: 21px; height: 21px; fill: currentColor; }
.social-links svg rect, .social-links svg circle:not(.icon-dot) { fill: none; stroke: currentColor; stroke-width: 1.8; }
.social-links svg .icon-dot { fill: currentColor; stroke: none; }
.google-g { font-family: Arial, sans-serif; font-size: 1.25rem; font-weight: 700; line-height: 1; }
.google-review-button { gap: 10px; }
.google-review-button .google-g { color: white; }

.resource-grid {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  padding: 8px 4px 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.resource-grid::-webkit-scrollbar { display: none; }

.resource-carousel-controls { display: flex; justify-content: flex-end; gap: 10px; margin-top: 34px; }
.resource-carousel-button { width: 44px; height: 44px; border: 1px solid var(--gold); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 1.25rem; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.resource-carousel-button:hover { background: var(--gold); transform: translateY(-2px); }

.resource-card {
  display: flex;
  flex: 0 0 calc((100% - 36px) / 3);
  flex-direction: column;
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  scroll-snap-align: start;
  transition: transform .25s ease, box-shadow .25s ease;
}

.resource-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 18px 45px rgba(62, 104, 133, .10);
}

.resource-card:focus-visible { border-color: var(--gold); }

.resource-card h3 { margin-bottom: 12px; }
.resource-card p { color: var(--muted); }
.resource-card .resource-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; color: var(--gold-dark); font-size: .88rem; font-weight: 700; }
.resource-cta b { font-size: 1.15rem; transition: transform .2s ease; }
.resource-card:hover .resource-cta b, .resource-card:focus-visible .resource-cta b { transform: translateX(5px); }

.review-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.review-layout > div { max-width: 720px; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 42px; }
.review-card { display: flex; flex-direction: column; min-height: 280px; padding: 26px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: 0 12px 34px rgba(62,104,133,.07); }
.review-author { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700; }
.review-author img, .review-avatar-fallback { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; }
.review-author img { object-fit: cover; }
.review-avatar-fallback { display: grid; place-items: center; background: var(--accent-light); color: var(--accent-dark); }
.review-stars { margin: 18px 0 10px; color: #e9a820; letter-spacing: 2px; }
.review-card blockquote { flex: 1; margin: 0; color: var(--muted); font-family: inherit; font-size: .95rem; line-height: 1.65; text-align: left; }
.review-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; color: var(--muted); font-size: .78rem; }
.review-meta a { color: var(--accent-dark); font-weight: 700; }
.review-screenshot { margin: 0; overflow: hidden; border: 1px solid rgba(198,161,91,.42); border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(62,104,133,.07); }
.review-screenshot img { display: block; width: 100%; height: auto; }
.reviews-screenshots .reviews-loading { display: none; }
.reviews-loading, .reviews-empty { grid-column: 1 / -1; margin: 0; padding: 28px; text-align: center; color: var(--muted); }
.reviews-disclosure { margin: 24px 0 0; color: var(--muted); font-size: .78rem; }
.google-attribution { margin: 12px 0 0; font-weight: 600; }

.privacy-check a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 980px) {
  .resource-card { flex-basis: calc((100% - 18px) / 2); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .resource-card { flex-basis: 88%; }
  .reviews-grid { grid-template-columns: 1fr; }
  .review-layout { align-items: flex-start; flex-direction: column; }
}



@media (max-width: 768px) {
  .portrait-image {
    width: 320px;
    height: 320px;
  }

  .floating-note {
    left: 0;
    bottom: -20px;
  }
}

@media (max-width: 480px) {
  .portrait-image {
    width: 270px;
    height: 270px;
  }
}

/* Fotografie professionali */
.about-photo {
  width: 100%;
  margin-top: 34px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(62,104,133,.10);
}

.studio-section { background: var(--surface); }
.studio-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: clamp(300px, 38vw, 500px);
  gap: 18px;
}
.studio-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface-soft);
}
.studio-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.studio-gallery figure:hover img { transform: scale(1.025); }

@media (max-width: 640px) {
  .studio-gallery { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .studio-gallery figure { min-height: 270px; }
}

/* Consenso per i contenuti esterni */
.map-embed {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: inherit;
  background: var(--surface-soft);
}

.map-embed iframe { display: none; width: 100%; }
.map-embed.is-enabled iframe { display: block; }
.map-embed.is-enabled .map-consent-placeholder { display: none; }

.map-consent-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}

.map-consent-placeholder p { max-width: 36ch; margin: 0; color: var(--muted); }
.map-consent-button { width: auto; }

.privacy-settings-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.privacy-settings-button:hover,
.privacy-settings-button:focus-visible { color: var(--accent-dark); }

.consent-banner[hidden] { display: none; }

.consent-banner {
  position: fixed;
  z-index: 1000;
  inset: auto 18px 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 18px 60px rgba(15, 25, 31, .2);
}

.consent-banner-inner {
  width: min(100%, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.consent-banner h2 { margin: 0 0 8px; font-size: 1.3rem; }
.consent-banner p { max-width: 780px; margin: 0; color: var(--muted); font-size: .9rem; }
.consent-banner a { color: var(--accent-dark); text-decoration: underline; }
.consent-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.consent-actions .button { min-width: 120px; }

@media (max-width: 720px) {
  .consent-banner { inset: auto 10px 10px; padding: 18px; }
  .consent-banner-inner { align-items: stretch; flex-direction: column; gap: 18px; }
  .consent-actions { flex-direction: column-reverse; }
  .consent-actions .button { width: 100%; }
}
