/* Base */
:root{
  --bg: #2a303c;
  --surface: #0f1a2e;
  --surface-2: #0c1628;
  --text: #eaf0ff;
  --muted: rgba(234,240,255,.75);
  --line: rgba(234,240,255,.14);

  --brand: #2ecc71;
  --brand-2: #8b4a2f;

  --radius: 18px;
  --shadow: 0 18px 40px rgba(0,0,0,.35);
  --container: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 10%, rgba(217,179,130,.18), transparent 60%),
              radial-gradient(900px 500px at 85% 35%, rgba(139,74,47,.18), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section{
  padding: 72px 0;
}

.section-alt{
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.03) 20%, transparent);
}

.section-head{
  margin-bottom: 22px;
}
.section-head h2{
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.muted{ color: var(--muted); }

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11,18,32,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  letter-spacing:.2px;
}

.brand-logo{
  height:60px;
  width:auto;
  display:block;
}

.nav{
  display:flex;
  gap: 16px;
}
.nav a{
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}
.nav a:hover{
  background: rgba(255,255,255,.06);
  color: var(--text);
  text-decoration:none;
}

/* Hero */
.hero{
  padding-top: 48px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: center;
}

.kicker{
  display:inline-block;
  color: rgba(11,18,32,.92);
  background: rgba(46, 204, 113,.95);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
  margin: 0 0 14px;
}

.hero-copy h1{
  margin: 0 0 10px;
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-title{
  margin: 0 0 14px;
  font-size: 18px;
}
.owner{
  color: var(--brand);
  font-weight: 800;
}

.lead{
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 58ch;
}

.hero-cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.hero-badges{
  list-style: none;
  margin: 0;
  padding: 0;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-badges li{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

/* Hero images */
.hero-media{
  display:grid;
  gap: 12px;
}
.img-card{
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.03);
}
.img-card img{
  width: 100%;
  height: 100%;
  display:block;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(46, 204, 113,.45);
  background: linear-gradient(180deg, rgba(46, 204, 113,.95), rgba(46, 204, 113,.80));
  color: rgba(11,18,32,.95);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover{ filter: brightness(1.03); text-decoration:none; }

.btn-outline{
  background: rgba(255,255,255,.02);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-outline:hover{
  background: rgba(255,255,255,.06);
}

/* Cards servizi */
.cards{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
}

.card-media img{
  width: 100%;
  height: 100%;
  display:block;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card-body{
  padding: 14px 14px 16px;
}
.card-body h3{
  margin: 0 0 8px;
  font-size: 16px;
}
.card-body p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Split prenotazione/contatti */
.split{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: start;
}

.panel{
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  padding: 18px;
}

.panel h3{
  margin: 0 0 12px;
  font-size: 18px;
}

/* Form */
.form{ margin-top: 6px; }
.field-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field{
  display:flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.field span{
  font-size: 13px;
  color: var(--muted);
}
input, select, textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(11,18,32,.45);
  color: var(--text);
  outline: none;
}
input:focus, select:focus, textarea:focus{
  border-color: rgba(217,179,130,.55);
  box-shadow: 0 0 0 4px rgba(217,179,130,.12);
}
textarea{ resize: vertical; }

.form-note{
  margin: 10px 0 0;
  font-size: 13px;
}

/* Contatti */
.contact-list{
  display:grid;
  gap: 10px;
  margin-top: 10px;
}
.contact-item{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.contact-item .label{
  color: var(--muted);
  font-size: 13px;
}
.contact-item .value{
  font-weight: 700;
  font-size: 13px;
}
.contact-cta{
  margin-top: 14px;
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 26px 0;
  background: rgba(0,0,0,.10);
}
.footer-inner{
  display:flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-nap{
  font-size: 14px;
}
.footer-nap a{ color: var(--brand); }
.footer-meta{
  font-size: 13px;
}
.footer-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
  text-align:right;
}

.footer-maps{
  color: var(--accent, #34c759);
  text-decoration: none;
  opacity: .9;
}

.footer-maps:hover{
  text-decoration: underline;
  opacity: 1;
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: repeat(2, 1fr); }
  .split{ grid-template-columns: 1fr; }
}

@media (max-width: 560px){

  .header-inner{
    flex-wrap: nowrap;
    gap: 10px;
  }

  .brand{
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand-text{
    font-size: 15px;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55vw;
  }

  .nav{
    display: flex;
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    gap: 8px;
  }

  .nav a{
    font-size: 13px;
    padding: 6px 8px;
  }

  .hero-copy h1{ font-size: 34px; }
  .cards{ grid-template-columns: 1fr; }
  .field-grid{ grid-template-columns: 1fr; }
}

/* =========================
   LOCAL SEO SECTION
========================= */

.local-seo{
  padding-top: 26px;
}

.local-seo-box{
  display:grid;
  grid-template-columns: 1.2fr .55fr;
  gap: 18px;
  align-items: stretch;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.025));
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 26px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.local-seo-box::after{
  content: "Apri pagina";
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  color: rgba(234,240,255,.78);
  background: rgba(46,204,113,.14);
  border: 1px solid rgba(46,204,113,.28);
  padding: 6px 10px;
  border-radius: 999px;
}

.local-seo-box:hover{
  text-decoration: none;
  transform: translateY(-4px);
  box-shadow: 0 26px 56px rgba(0,0,0,.42);
  border-color: rgba(46,204,113,.38);
  background: linear-gradient(180deg, rgba(46,204,113,.10), rgba(255,255,255,.03));
}

.local-seo-box:hover .local-seo-copy h2,
.local-seo-box:hover .local-seo-copy p strong,
.local-seo-box:hover .local-seo-mini-card strong{
  color: #ffffff;
}

.local-seo-box:hover .local-seo-mini-card{
  border-color: rgba(46,204,113,.28);
  background: rgba(255,255,255,.06);
}

.local-seo-box:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(46,204,113,.30),
    0 26px 56px rgba(0,0,0,.42);
  border-color: rgba(46,204,113,.45);
}
.local-seo-box h2,
.local-seo-box p,
.local-seo-box span,
.local-seo-box strong{
  text-decoration: none;
}
.local-seo-copy{
  text-align:left;
}

.local-seo-kicker{
  display:inline-block;
  margin: 0 0 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  color: var(--muted);
}

.local-seo-copy h2{
  margin: 0 0 10px;
}

.local-seo-copy p{
  max-width: 720px;
  margin: 0;
  line-height: 1.7;
}

.local-seo-side{
  display:grid;
  gap: 12px;
  align-content: center;
}

.local-seo-mini-card{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: 18px;
  padding: 16px;
}

.local-seo-mini-card span{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.local-seo-mini-card strong{
  display:block;
  font-size: 16px;
  line-height: 1.35;
}

/* =========================
   VISUAL UPGRADE (MINIMAL)
========================= */

.img-card,
.geo-gallery-grid img{
  box-shadow:0 20px 50px rgba(0,0,0,.12);
}

.btn{
  transition:
  transform .15s ease,
  box-shadow .15s ease,
  background .15s ease;
}

.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(0,0,0,.15);
}

h1,h2{
  letter-spacing:-0.02em;
}

h1{
  font-weight:700;
}

h2{
  font-weight:600;
}

.geo-gallery-grid img{
  width:100%;
  height:260px;
  object-fit:cover;
  border-radius:14px;
  display:block;
  transition:transform .25s ease;
}

.geo-gallery-grid img:hover{
  transform:scale(1.03);
}

.geo-gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
}

/* =========================
   RESPONSIVE EXTRA
========================= */

@media (max-width: 860px){
  .local-seo-box{
    grid-template-columns: 1fr;
  }

  .local-seo-copy{
    text-align:center;
  }

  .local-seo-copy p{
    margin:auto;
  }

  .local-seo-links{
    justify-content:center;
  }

  .local-seo-side{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:700px){
  .local-seo{
    padding-top:20px;
  }

  .local-seo-box{
    padding:20px;
  }

  .local-seo-side{
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px){

  .local-seo-box{
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 22px 18px 18px;
    border-radius: 22px;
  }

  .local-seo-box::after{
    position: static;
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 6px;
  }

  .local-seo-copy{
    text-align: center;
  }

  .local-seo-copy h2{
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.15;
  }

  .local-seo-copy p{
    max-width: 100%;
    font-size: 16px;
    line-height: 1.65;
  }

  .local-seo-side{
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .local-seo-mini-card{
    padding: 18px 16px;
    border-radius: 18px;
  }

  .local-seo-mini-card span{
    font-size: 13px;
    margin-bottom: 8px;
  }

  .local-seo-mini-card strong{
    font-size: 15px;
    line-height: 1.35;
  }
}
