/* ================================================
   NOTAIO LIDIA CONCILIO – CHIUSI (SI)
   Palette: Panna · Celeste · Rosa Pesca
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Raleway:wght@400;600;700&display=swap');

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

/* VARIABILI */
:root {
  --panna: #F2E6C6;
  --panna-med: #E8D49E;
  --panna-dark: #D9BE7A;
  --celeste: #5B9EC9;
  --celeste-light: #A8D4E8;
  --celeste-dark: #3A7BA8;
  --celeste-deep: #24567A;
  --pesca: #D4816B;
  --pesca-light: #ECA898;
  --pesca-dark: #B06050;
  --testo: #1E2A36;
  --testo-med: #4A5568;
  --testo-light: #6B7280;
  --bianco: #FFFFFF;
  --ombra-s: 0 2px 10px rgba(0, 0, 0, 0.08);
  --ombra-m: 0 6px 24px rgba(0, 0, 0, 0.10);
  --ombra-l: 0 16px 48px rgba(0, 0, 0, 0.14);
  --radius: 16px;
}

/* BASE */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Raleway', sans-serif;
  color: var(--testo);
  background-color: var(--panna);
  line-height: 1.75;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
  color: var(--testo-med);
}

a {
  color: var(--celeste-dark);
  transition: color .3s;
}

a:hover {
  color: var(--pesca);
}

/* UTILITY */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: #FAF4E8;
}

.section-panna {
  background-color: var(--panna);
}

.text-center {
  text-align: center;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .85rem 2rem;
  border-radius: 2rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: all .3s;
  cursor: pointer;
}

.btn-primary {
  background: var(--pesca);
  color: var(--bianco);
  border-color: var(--pesca);
}

.btn-primary:hover {
  background: var(--pesca-dark);
  border-color: var(--pesca-dark);
  color: var(--bianco);
}

.btn-secondary {
  background: transparent;
  color: var(--bianco);
  border-color: var(--bianco);
}

.btn-secondary:hover {
  background: var(--bianco);
  color: var(--celeste-deep);
}

.btn-outline {
  background: transparent;
  color: var(--celeste-dark);
  border-color: var(--celeste-dark);
}

.btn-outline:hover {
  background: var(--celeste-dark);
  color: var(--bianco);
}

.btn-tel {
  background: var(--celeste-dark);
  color: var(--bianco);
  border-color: var(--celeste-dark);
}

.btn-tel:hover {
  background: var(--celeste-deep);
  border-color: var(--celeste-deep);
  color: var(--bianco);
}

/* ======================== HEADER ======================== */
header {
  background: var(--bianco);
  box-shadow: var(--ombra-s);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.nav-logo .nome {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--celeste-deep);
  font-weight: 700;
}

.nav-logo .titolo {
  font-size: .72rem;
  color: var(--pesca);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav-links a {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--testo);
  position: relative;
  padding-bottom: 8px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pesca);
  transition: width .3s;
}

.nav-links a:hover,
.nav-links a.attiva {
  color: var(--celeste-dark);
}

.nav-links a:hover::after,
.nav-links a.attiva::after {
  width: 100%;
}

.nav-cta {
  background: var(--celeste) !important;
  color: var(--bianco) !important;
  padding: .5rem 1.2rem;
  border-radius: 2rem;
  border: none;
}

.nav-cta:hover {
  background: var(--celeste-dark) !important;
  color: var(--bianco) !important;
}

.nav-cta::after {
  display: none !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--testo);
  transition: all .3s;
}

/* ======================== HERO ======================== */
.hero {
  min-height: 92vh;
  background: linear-gradient(135deg, var(--celeste-deep) 0%, #1E4D6B 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1758448500688-3ababa93fd67?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  opacity: .08;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: flex-end;
}

.hero-text {
  color: var(--bianco);
}

.hero-badge {
  display: inline-block;
  background: var(--pesca);
  color: var(--bianco);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}

.hero-text h1 {
  color: var(--bianco);
  margin-bottom: 1rem;
}

.hero-text .lead {
  font-size: 1.1rem;
  opacity: .88;
  max-width: 500px;
  margin-bottom: 2rem;
  color: var(--bianco);
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-contacts {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.hero-contacts a {
  color: var(--celeste-light);
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.hero-contacts a:hover {
  color: var(--pesca-light);
}

.hero-contacts .ico {
  font-style: normal;
  width: 20px;
  text-align: center;
}

.hero-photo {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  align-self: flex-end;
}

.hero-photo img {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius) var(--radius) 0 0;
  object-fit: cover;
  object-position: top center;
  max-height: 600px;
}

/* ======================== SECTION TITLE ======================== */
.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title .tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--pesca);
  margin-bottom: .8rem;
}

.section-title h2 {
  color: var(--celeste-deep);
  margin-bottom: .8rem;
}

.section-title .subtitle {
  max-width: 620px;
  margin: 0 auto;
  color: var(--testo-light);
  font-size: 1.02rem;
}

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--pesca), var(--celeste));
  margin: .8rem auto;
  border-radius: 2px;
}

/* ======================== SERVIZI CARDS ======================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--bianco);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--ombra-m);
  transition: transform .3s, box-shadow .3s;
  border-top: 4px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--celeste), var(--pesca));
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--ombra-l);
}

.svc-icon {
  width: 54px;
  height: 54px;
  background: var(--panna);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.service-card h3 {
  color: var(--celeste-deep);
  margin-bottom: .6rem;
  font-size: 1.15rem;
}

.service-card p {
  color: var(--testo-light);
  font-size: .93rem;
  margin-bottom: 1.2rem;
}

.svc-link {
  color: var(--pesca);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.svc-link:hover {
  color: var(--celeste-dark);
}

/* ======================== ABOUT ======================== */
.section-about-bg {
  background: url('https://images.unsplash.com/photo-1771270759486-1f7703945072?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
  position: relative;
}

.section-about-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 22, 38, 0.88) 0%, rgba(20, 44, 68, 0.84) 100%);
  z-index: 0;
}

.section-about-bg .container {
  position: relative;
  z-index: 1;
}

.about-content-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}

.about-lead-col {
  text-align: left;
}

.about-lead-col .tag {
  color: var(--pesca-light) !important;
}

.about-lead-col h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.about-lead-col .divider {
  margin: 1rem 0;
  background: linear-gradient(90deg, var(--pesca), var(--celeste));
}

.about-lead-col .about-intro {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-detail-col {}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-content h2 {
  color: var(--celeste-deep);
  margin-bottom: 1.5rem;
}

.section-about-bg .about-content h2 {
  color: #fff;
}

.section-about-bg p {
  color: rgba(255, 255, 255, 0.80);
}

.section-about-bg .about-list li {
  color: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.section-about-bg .about-list li .chk {
  color: var(--pesca-light);
}

.section-about-bg .about-stats {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.section-about-bg .stat .num {
  color: var(--pesca-light);
}

.section-about-bg .stat .lbl {
  color: rgba(255, 255, 255, 0.60);
}

.section-about-bg .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.50);
}

.section-about-bg .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  color: #fff;
}

/* Studio background section */
.section-studio-bg {
  background: url('https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
  position: relative;
}

.section-studio-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8, 18, 30, 0.90) 0%, rgba(15, 35, 55, 0.86) 100%);
  z-index: 0;
}

.section-studio-bg .container {
  position: relative;
  z-index: 1;
}

.section-studio-bg .section-title .tag { color: var(--pesca-light); }
.section-studio-bg .section-title h2 { color: #fff; }
.section-studio-bg .section-title .subtitle { color: rgba(255,255,255,0.75); }
.section-studio-bg .divider { background: var(--pesca-light); }
.section-studio-bg .about-content h2 { color: #fff; }
.section-studio-bg p { color: rgba(255,255,255,0.80); }
.section-studio-bg .about-list li { color: rgba(255,255,255,0.85); border-bottom-color: rgba(255,255,255,0.12); }
.section-studio-bg .about-list li .chk { color: var(--pesca-light); }

.about-list {
  margin: 1.5rem 0;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--panna-med);
  color: var(--testo-med);
  font-size: .97rem;
}

.about-list li .chk {
  color: var(--pesca);
  font-weight: 700;
  flex-shrink: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--panna-med);
}

.stat {
  text-align: center;
}

.stat .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  color: var(--pesca);
  font-weight: 700;
  display: block;
}

.stat .lbl {
  font-size: .8rem;
  color: var(--testo-light);
  text-transform: uppercase;
  letter-spacing: .1em;
}

/* ======================== TESTIMONIALS ======================== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testi-card {
  background: var(--bianco);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--ombra-m);
  position: relative;
}

.testi-card::before {
  content: '\201C';
  font-family: 'Cormorant Garamond', serif;
  font-size: 5rem;
  color: var(--celeste-light);
  position: absolute;
  top: -.8rem;
  left: 1.2rem;
  line-height: 1;
}

.testi-text {
  font-style: italic;
  color: var(--testo-med);
  margin-bottom: 1.2rem;
  padding-top: .8rem;
  font-size: .95rem;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.author-av {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--celeste), var(--pesca));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bianco);
  font-weight: 700;
  font-size: .95rem;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  font-size: .9rem;
  color: var(--testo);
}

.author-loc {
  font-size: .78rem;
  color: var(--testo-light);
}

.stars {
  color: var(--pesca);
  font-size: .85rem;
  display: block;
  margin-bottom: .2rem;
}

/* ======================== FAQ ======================== */
.faq-wrap {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--panna-med);
  padding: 1.5rem 0;
}

.faq-q {
  font-family: 'Cormorant Garamond', serif;
  color: var(--celeste-deep);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .7rem;
  cursor: default;
}

.faq-q::before {
  content: '❓ ';
  font-family: sans-serif;
}

.faq-a {
  color: var(--testo-med);
  font-size: .95rem;
}

/* ======================== CTA BANNER ======================== */
.cta-banner {
  background: linear-gradient(135deg, var(--celeste-deep) 0%, #1E4D6B 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/tavolo.jpg') center/cover;
  opacity: .07;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cta-inner h2 {
  color: var(--bianco);
  margin-bottom: 1rem;
}

.cta-inner p {
  color: rgba(255, 255, 255, .85);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ======================== MAP & CONTATTI ======================== */
.map-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-box {
  background: var(--bianco);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--ombra-m);
}

.contact-box h3 {
  color: var(--celeste-deep);
  margin-bottom: 1.5rem;
}

.c-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}

.c-ico {
  width: 40px;
  height: 40px;
  background: var(--panna);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.c-item strong {
  display: block;
  font-size: .85rem;
  color: var(--testo-light);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .2rem;
}

.c-item a {
  color: var(--testo);
  font-weight: 600;
  font-size: .97rem;
}

.c-item a:hover {
  color: var(--celeste-dark);
}

.orari-table {
  margin-top: 1rem;
}

.orari-row {
  display: flex;
  justify-content: space-between;
  padding: .45rem 0;
  border-bottom: 1px solid var(--panna-med);
  font-size: .9rem;
}

.orari-row .g {
  font-weight: 600;
}

.orari-row .h {
  color: var(--celeste-dark);
}

.map-embed iframe {
  width: 100%;
  height: 420px;
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--ombra-m);
}

/* ======================== FOOTER ======================== */
footer {
  background: var(--celeste-dark);
  color: rgba(255, 255, 255, .95);
  padding: 4.5rem 0 2rem;
}

.footer2 {
  background: #fff;
  color: rgba(255, 255, 255, .7);
    padding: 0 0 0;

}


.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
  display: block;
  margin-bottom: .3rem;
}

.footer-brand-tag {
  font-size: .72rem;
  color: rgba(255, 255, 255, .85);
  letter-spacing: .2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.footer-desc {
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 1.5rem;
}

.f-col h4 {
  font-family: 'Cormorant Garamond', serif;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  padding-bottom: .6rem;
  position: relative;
}

.f-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: rgba(255, 255, 255, .5);
}

.f-col ul li {
  margin-bottom: .55rem;
}

.f-col ul a {
  color: rgba(255, 255, 255, .88);
  font-size: .88rem;
  transition: color .3s;
}

.f-col ul a:hover {
  color: #fff;
}

.f-nap li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .88rem;
  margin-bottom: .6rem;
  color: rgba(255, 255, 255, .9);
}

.f-nap .ico {
  opacity: .8;
  width: 18px;
  flex-shrink: 0;
  text-align: center;
}

.f-nap a {
  color: rgba(255, 255, 255, .9) !important;
}

.f-nap a:hover {
  color: #fff !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .25);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
  font-size: .78rem;
  color: rgba(255, 255, 255, .75);
}

.footer-bottom a {
  color: rgba(255, 255, 255, .85);
}

.footer-bottom a:hover {
  color: #fff;
}

/* ======================== PAGE HERO ======================== */
.page-hero {
  background: linear-gradient(135deg, var(--celeste-deep) 0%, #1E4D6B 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1758448500688-3ababa93fd67?auto=format&fit=crop&w=1920&q=80') center/cover;
  opacity: .07;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.breadcrumb {
  font-size: .82rem;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, .6);
}

.breadcrumb a:hover {
  color: var(--pesca);
}

.breadcrumb span {
  color: rgba(255, 255, 255, .85);
}

.page-hero h1 {
  color: var(--bianco);
  margin-bottom: .8rem;
}

.page-hero .lead {
  color: rgba(255, 255, 255, .85);
  font-size: 1.05rem;
}

/* ======================== SERVICE DETAIL ======================== */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

.detail-content h2 {
  color: var(--celeste-deep);
  margin: 2rem 0 .8rem;
}

.detail-content ul {
  margin: .8rem 0 1.5rem 1.5rem;
  list-style: disc;
  color: var(--testo-med);
}

.detail-content ul li {
  margin-bottom: .4rem;
}

.detail-sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-card {
  background: var(--bianco);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--ombra-m);
  margin-bottom: 1.5rem;
}

.sidebar-card h3 {
  color: var(--celeste-deep);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.sidebar-card ul li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--panna-med);
  font-size: .9rem;
}

.sidebar-card ul li:last-child {
  border-bottom: none;
}

.sidebar-card ul a {
  color: var(--testo-med);
  display: flex;
  align-items: center;
  gap: .4rem;
}

.sidebar-card ul a:hover {
  color: var(--pesca);
}

/* ======================== CHI SIAMO EXTRA ======================== */
.team-section img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--ombra-l);
  object-fit: cover;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bianco);
  border-radius: var(--radius);
  box-shadow: var(--ombra-s);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ombra-m);
}

.value-card:has(.value-img) {
  padding: 0;
  text-align: left;
}

.value-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
}

.value-body {
  padding: 1.3rem 1.5rem 1.6rem;
}

.value-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  color: var(--celeste-deep);
  margin-bottom: .6rem;
}

.value-card:has(.value-img) h3 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.value-card:has(.value-img) p {
  font-size: .9rem;
  margin-bottom: 0;
}

/* ======================== 404 PAGE ======================== */
.err-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  flex-direction: column;
}

.err-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(6rem, 20vw, 12rem);
  color: var(--celeste-light);
  line-height: 1;
  font-weight: 700;
}

.err-page h2 {
  color: var(--celeste-deep);
  margin-bottom: 1rem;
}

.err-page p {
  color: var(--testo-light);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* ======================== FORM CONTATTI ======================== */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--testo);
  margin-bottom: .4rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: 4px;
  border: 1.5px solid var(--panna-dark);
  background: var(--bianco);
  color: var(--testo);
  font-family: 'Raleway', sans-serif;
  font-size: .97rem;
  transition: border-color .3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--celeste);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ======================== HIGHLIGHT BOX ======================== */
.highlight-box {
  background: linear-gradient(135deg, var(--celeste-deep), #1E4D6B);
  border-radius: var(--radius);
  padding: 2.5rem;
  color: var(--bianco);
  text-align: center;
  margin-bottom: 2rem;
}

.highlight-box h3 {
  color: var(--bianco);
  margin-bottom: .8rem;
}

.highlight-box p {
  color: rgba(255, 255, 255, .85);
  margin-bottom: 1.5rem;
}

.highlight-box a {
  color: var(--pesca-light);
}

.highlight-box a:hover {
  color: var(--pesca);
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-photo {
    order: -1;
  }

  .hero-photo img {
    max-height: 360px;
    width: auto;
    margin: 0 auto;
  }

  .hero-btns {
    justify-content: center;
  }

  .hero-contacts {
    align-items: center;
  }

  .about-grid,
  .about-content-wrap,
  .map-contact-grid,
  .detail-grid,
  .contact-form-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .testi-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bianco);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--ombra-m);
    gap: 1rem;
    z-index: 998;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .detail-sidebar {
    position: static;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-photo img {
    max-height: 280px;
  }
}

/* ======================== SCROLL REVEAL ======================== */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
[data-delay="4"] { transition-delay: .32s; }
[data-delay="5"] { transition-delay: .40s; }
[data-delay="6"] { transition-delay: .48s; }

/* ======================== FAQ ACCORDION ======================== */
.faq-q {
  cursor: pointer !important;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
  padding-right: .5rem;
}

.faq-q::before {
  content: none !important;
}

.faq-q::after {
  content: '+';
  font-size: 1.6rem;
  font-weight: 300;
  font-family: 'Raleway', sans-serif;
  color: var(--pesca);
  flex-shrink: 0;
  transition: transform .3s ease;
  line-height: 1;
  display: block;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .4s ease, opacity .3s ease;
  margin-bottom: 0;
}

.faq-item.open .faq-a {
  max-height: 500px;
  opacity: 1;
  padding-top: .4rem;
}

/* ======================== BACK TO SERVICES ======================== */
.back-service-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-body);
  font-size: .88rem;
  letter-spacing: .04em;
  text-decoration: none;
  margin-bottom: 1.2rem;
  transition: color .2s, gap .2s;
}

.back-service-link::before {
  content: '←';
  font-size: 1rem;
  transition: transform .2s;
}

.back-service-link:hover {
  color: #fff;
  gap: .65rem;
}

.back-service-link:hover::before {
  transform: translateX(-3px);
}

/* ======================== BACK TO TOP ======================== */
.back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--celeste-dark);
  color: var(--bianco);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s, background .2s;
  z-index: 1000;
  box-shadow: var(--ombra-m);
}

.back-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-top:hover {
  background: var(--celeste-deep);
}

/* ======================== NAV PROGRESS BAR ======================== */
.nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--pesca), var(--celeste));
  z-index: 1001;
  transition: width .1s linear;
  pointer-events: none;
}

/* ======================== HERO SHAPES ======================== */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--bianco);
  pointer-events: none;
}

.hero-shape-1 {
  width: 480px;
  height: 480px;
  top: -140px;
  right: -80px;
  opacity: .05;
  animation: float 9s ease-in-out infinite;
}

.hero-shape-2 {
  width: 260px;
  height: 260px;
  bottom: 20px;
  left: -60px;
  opacity: .04;
  animation: float 11s ease-in-out infinite reverse;
}

.hero-shape-3 {
  width: 140px;
  height: 140px;
  top: 38%;
  right: 28%;
  opacity: .035;
  animation: float 13s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-18px) scale(1.04); }
}

/* ======================== HERO ENTRANCE ======================== */
.hero-badge {
  animation: fadeInUp .6s ease both;
}

.hero-text h1 {
  animation: fadeInUp .7s ease both .08s;
}

.hero-text .lead {
  animation: fadeInUp .7s ease both .16s;
}

.hero-btns {
  animation: fadeInUp .7s ease both .24s;
}

.hero-contacts {
  animation: fadeInUp .7s ease both .32s;
}

.hero-photo img {
  animation: fadeInRight .9s ease both .1s;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ======================== SCROLL INDICATOR ======================== */
.scroll-indicator {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  color: rgba(255,255,255,.45);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  z-index: 1;
  animation: bobbing 2.2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255,255,255,.4);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

@keyframes bobbing {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ======================== TESTI HOVER ======================== */
.testi-card {
  transition: transform .3s ease, box-shadow .3s ease;
}

.testi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ombra-l);
}

/* ======================== PULSE BUTTON ======================== */
@keyframes pulse-glow {
  0%   { box-shadow: 0 0 0 0 rgba(212, 129, 107, .55); }
  65%  { box-shadow: 0 0 0 14px rgba(212, 129, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 129, 107, 0); }
}

.btn-pulse {
  animation: pulse-glow 2.2s ease-out infinite;
}

/* ======================== STAT COUNTER ======================== */
.stat .num {
  font-variant-numeric: tabular-nums;
}

/* ======================== CARD CON IMMAGINE ======================== */
.service-card:has(.svc-img) {
  padding: 0;
}

.service-card:has(.svc-img)::before {
  display: none;
}

.svc-img {
  width: 100%;
  height: 185px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius) var(--radius) 0 0;
}

.svc-body {
  padding: 1.4rem 1.6rem 1.6rem;
}

/* ======================== BOTTONI TELEFONO ======================== */
a[href^="tel:"].btn {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: #fff;
  letter-spacing: .04em;
}

a[href^="tel:"].btn:hover {
  color: #fff;
}

.tel-classico {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
  color: #fff !important;
  letter-spacing: .04em;
}