:root {
  --bg: #070508;
  --bg-alt: #111018;
  --bg-elevated: #181624;
  --text: #f7f0e6;
  --muted: #9c8fbd;
  --accent: #e1b97a;
  --accent-soft: rgba(225,185,122,0.12);
  --accent-dark: #f2d19b;
  --border: rgba(255,255,255,0.08);
  --shadow-soft: 0 24px 70px rgba(0,0,0,0.85);
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0 0, #231b38 0, transparent 55%),
    radial-gradient(circle at 100% 100%, #21171f 0, transparent 55%),
    #070508;
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1,h2,h3,h4 {
  font-family: "Playfair Display", "Times New Roman", serif;
  color: var(--text);
  margin-top: 0;
}

p { color: rgba(247,240,230,0.88); }

.container {
  width: min(1120px, 100% - 2.6rem);
  margin-inline: auto;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: radial-gradient(circle at 0 0, #211a33 0, #08060b 52%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding-block: 0.6rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-wrap img {
  height: 40px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-main {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(230,225,247,0.75);
  position: relative;
}

.main-nav a.active::after,
.main-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.78rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f2d19b, #c69855);
  color: #1a1114;
  box-shadow: 0 18px 45px rgba(0,0,0,0.85);
}

.btn:hover { text-decoration: none; filter: brightness(1.05); }

.btn-outline {
  background: transparent;
  color: var(--accent-dark);
  border: 1px solid var(--accent-soft);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--accent-soft);
}

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #30e07a, #19b458);
  color: #030305;
  box-shadow: 0 14px 34px rgba(15,255,120,0.35);
}
.btn-whatsapp:hover { filter: brightness(1.08); }

/* HERO INTRO FULLSCREEN */

.hero-intro {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-intro-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  filter: saturate(1.1) contrast(1.05);
  transform: scale(1.05);
}

.hero-intro-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0, rgba(3,2,6,0.35) 0, transparent 40%),
              radial-gradient(circle at 100% 100%, rgba(3,2,8,0.65) 0, rgba(3,2,8,0.96) 65%);
}

.hero-intro-inner {
  position: relative;
  z-index: 2;
  padding: 3rem 1.5rem 4rem;
  animation: fadeUp 1.2s ease-out both;
}

.hero-intro-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  background: rgba(7,5,8,0.75);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(16px);
  margin-bottom: 1.2rem;
}

.hero-intro-logo img {
  height: 42px;
  margin-right: 0.7rem;
}

.hero-intro-title {
  font-size: clamp(2.3rem, 4vw, 3.3rem);
  margin-bottom: 0.4rem;
}

.hero-intro-sub {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

/* HERO SECONDARY (TESTI) */

.hero {
  padding: 3.2rem 0 2.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,1.1fr);
  gap: 2.6rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  margin-bottom: 0.8rem;
}

.hero-lead {
  font-size: 1.02rem;
  color: rgba(247,240,230,0.86);
  max-width: 33rem;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-meta span strong {
  display: block;
  color: var(--accent-dark);
}

.counter {
  font-size: 1.1rem;
  font-weight: 600;
}

/* hero photos */

.hero-media {
  position: relative;
}

.hero-photo-main {
  border-radius: 1.6rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.06);
}

.hero-photo-main img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.hero-photo-stack {
  position: absolute;
  width: 48%;
  bottom: -1.6rem;
  right: -1rem;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-photo-stack img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

/* Sections */

.section { padding: 3.2rem 0; }

.section-header {
  margin-bottom: 2rem;
  max-width: 40rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.section-title {
  font-size: 1.9rem;
}



/* Cards */

.card {
  background: radial-gradient(circle at 0 0, rgba(94,78,137,0.24) 0, transparent 45%),
              var(--bg-elevated);
  border-radius: 1.3rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 22px 60px rgba(0,0,0,0.8);
}

.card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
  gap: 1.6rem;
}

/* Collage foto */

.photo-collage {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 1.1rem;
}

.photo-collage img {
  width: 100%;
  height: auto;
  border-radius: 1.4rem;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}

/* masonry gallery */

.masonry {
  column-count: 3;
  column-gap: 1rem;
}

.masonry img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 1.1rem;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}

@media (max-width: 900px) {
  .masonry { column-count: 2; }
}

@media (max-width: 640px) {
  .masonry { column-count: 1; }
}

/* Layout contatti */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
  gap: 2rem;
}

/* Form */

.form-field { margin-bottom: 0.9rem; }

.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid var(--border);
  background: #05040a;
  color: var(--text);
  font: inherit;
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-help {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Tabs preventivo */

.tabs {
  margin-top: 1.3rem;
}

.tab-buttons {
  display: inline-flex;
  padding: 0.2rem;
  background: rgba(110,90,146,0.45);
  border-radius: 999px;
  margin-bottom: 1rem;
}

.tab-buttons button {
  border: none;
  background: transparent;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  color: #daccff;
}

.tab-buttons button.active {
  background: #05040a;
  box-shadow: var(--shadow-soft);
}


/* Tab panels */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Testimonials & reviews */

.testimonials-grid {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(0,1fr);
  gap: 2.2rem;
}

.testimonial-card {
  background: var(--bg-elevated);
  border-radius: 1.2rem;
  padding: 1.2rem 1.3rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.testimonial-quote { font-style: italic; font-size: 0.92rem; }
.testimonial-meta { font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; }

.review-form {
  margin-top: 1rem;
}

/* Blog */

.blog-grid {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(0,1fr);
  gap: 2rem;
}

.blog-list {
  display: grid;
  gap: 1.4rem;
}

.blog-card {
  display: grid;
  grid-template-columns: 170px minmax(0,1fr);
  gap: 1rem;
  background: var(--bg-elevated);
  border-radius: 1.3rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.blog-card img {
  border-radius: 1rem;
  height: 120px;
  width: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.blog-card h3 { margin-bottom: 0.2rem; }
.blog-card p { font-size: 0.88rem; color: rgba(233,225,255,0.82); }
.blog-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.25rem; }

.blog-aside {
  position: sticky;
  top: 100px;
}

.blog-hero {
  margin-bottom: 1.6rem;
}

.blog-hero img {
  border-radius: 1.6rem;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}

.blog-body {
  max-width: 680px;
  font-size: 0.98rem;
  color: rgba(235,227,255,0.86);
}

/* Collaboratori */

.collab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 1.6rem;
}

/* Footer */

.site-footer {
  margin-top: 3rem;
  background: radial-gradient(circle at 100% 0, #2a223d 0, #050309 48%);
  color: #f0e7ff;
  padding-top: 3rem;
}

.site-footer h4 { color: #ffffff; }

.site-footer a { color: #f2d19b; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 2rem;
  padding-bottom: 2rem;
}

.site-footer ul { list-style:none; padding:0; margin:0; }
.site-footer li { margin-bottom: 0.4rem; font-size: 0.88rem; }

.footer-bottom {
  border-top: 1px solid rgba(159,138,207,0.6);
  padding: 0.9rem 0 1.4rem;
  font-size: 0.78rem;
  color: #c5b6ff;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* NAV TOGGLE */

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.2rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #f7f0e6;
  margin-bottom: 4px;
}

/* Lightbox */

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3,2,6,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox-backdrop.open { display: flex; }

.lightbox-backdrop img {
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  border-radius: 1.2rem;
  box-shadow: 0 26px 60px rgba(0,0,0,0.9);
}

/* Animazioni */

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

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .hero-media { order: -1; margin-bottom: 1.6rem; }
  .testimonials-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .contact-layout {
    grid-template-columns: minmax(0,1fr);
  }
  .blog-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

@media (max-width: 840px) {
  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #070509;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease-out;
  }
  .main-nav.open { max-height: 360px; }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.4rem 1.2rem;
  }
  .nav-toggle { display: block; }
  .header-inner { align-items: center; }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3.2rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .blog-card {
    grid-template-columns: minmax(0,1fr);
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}


.parallax-base {
  will-change: transform;
  transition: transform 0.6s ease-out;
}


.blog-body img {
  border-radius: 1.1rem;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
  margin: 1.2rem 0;
}

.blog-body figure {
  margin: 1.4rem 0;
}

.blog-body figure img {
  width: 100%;
}



/* ===== NAV FIX (keep items on one line across languages) ===== */
.main-nav ul{
  flex-wrap: nowrap !important;
  white-space: nowrap;
  gap: 0.9rem !important;
}
.main-nav a{
  white-space: nowrap !important;
  display: inline-block;
  line-height: 1.1;
}

/* Slightly tighter nav on medium screens */
@media (max-width: 1100px){
  .main-nav ul{ gap: 0.6rem !important; }
  .main-nav a{ font-size: 0.82rem !important; }
}

/* On small screens keep one line and allow horizontal scroll */
@media (max-width: 900px){
  .main-nav{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .main-nav ul{ gap: 0.5rem !important; padding-right: 0.5rem; }
  .main-nav a{ font-size: 0.78rem !important; }
}

/* ===== GRN language menu + logo subtitle fixes ===== */

/* Prevent subtitle overlap across languages */
.logo-wrap { gap: 10px; }
.logo-text { min-width: 0; }
.logo-sub {
  display: block;
  white-space: normal;          /* allow wrapping */
  line-height: 1.25;
  font-size: clamp(10px, 1.0vw, 12px);
  opacity: 0.9;
  max-width: 260px;             /* keeps it from colliding with nav */
}
@media (max-width: 1100px){
  .logo-sub{ max-width: 200px; font-size: 10px; }
}
@media (max-width: 820px){
  .logo-sub{ max-width: 100%; }
}

/* RTL support for Arabic everywhere */
html[dir="rtl"], body[dir="rtl"]{
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .main-nav ul,
html[dir="rtl"] .footer-grid,
html[dir="rtl"] .blog-body,
html[dir="rtl"] .container{
  direction: rtl;
}
html[dir="rtl"] .header-inner{
  flex-direction: row-reverse;
}
html[dir="rtl"] .logo-wrap{
  flex-direction: row-reverse;
}
html[dir="rtl"] .lang-switch{ margin-left: 0; margin-right: 10px; }



/* === FORCE HEADER FULL-WIDTH + LOGO TO SCREEN-LEFT (ALL LANGS) === */
.site-header .container.header-inner{
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: 1.2rem !important; /* small breathing room from the edge */
}

/* Keep logo pinned left and stop it stealing space */
.site-header .logo-wrap{
  margin-left: 0 !important;
  flex: 0 0 auto !important;
}

/* Let nav push to the right */
.site-header .main-nav{
  margin-left: auto !important;
}


/* Subtle luxury effects – hover & motion */

.card,
.blog-card,
.btn,
.btn-small {
  transition:
    transform .45s ease,
    box-shadow .45s ease,
    border-color .45s ease,
    background .45s ease;
}

.card:hover,
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 90px rgba(0,0,0,0.92);
  border-color: rgba(202,163,77,0.68);
}

.btn:hover,
.btn-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 60px rgba(0,0,0,0.95);
}

.main-nav a {
  position: relative;
  padding-bottom: 0.05rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, #f2d19b, rgba(255,255,255,0.0));
  transition: width .25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}


/* P31 ULTRA-100 refinements */

/* Tighter, consistent vertical rhythm for article/SEO content */
.blog-article-content,
.seo-section {
  max-width: 48rem;
  margin-inline: auto;
}

.blog-article-content > * + *,
.seo-section > * + * {
  margin-top: 0.9rem;
}

.seo-section h2,
.seo-section h3,
.blog-article-content h2,
.blog-article-content h3 {
  margin-top: 1.6rem;
}

/* Improve readability on long paragraphs */
.blog-article-content p,
.seo-section p {
  line-height: 1.75;
}

/* Slightly more breathing room for sections on large screens */
@media (min-width: 1024px) {
  .section {
    padding: 3.6rem 0;
  }
}

/* Ensure service/detail pages stay clean on mobile */
@media (max-width: 768px) {
  .section-header {
    margin-bottom: 1.6rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .blog-article-content,
  .seo-section {
    font-size: 0.98rem;
  }
  .blog-article-content ul,
  .seo-section ul {
    padding-left: 1.1rem;
  }
}


/* P34 perfection: CTA visual consistency */
.seo-cta,
.seo-cta-links {
  margin-top: 1.6rem;
}

.seo-cta a,
.seo-cta-links a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 0.05rem;
}

.seo-cta a:hover,
.seo-cta-links a:hover {
  border-bottom-color: rgba(255,255,255,0.8);
}

/* Make CTA links visually consistent on mobile */
@media (max-width: 768px) {
  .seo-cta,
  .seo-cta-links {
    margin-top: 1.3rem;
  }
}
