/* =====================================================
   VivConArt – style.css
   Palette: bianco #fff, grigio scuro #1a1a2e, nero #0d0d0d,
            oro #c9a84c, grigio chiaro #f4f4f4, grigio medio #555
   Font: Montserrat (titoli), Open Sans (testo)
   Font locali: nessuna dipendenza da Google (GDPR)
====================================================== */

/* Font locali – nessun dato inviato a Google */
@import url('fonts/fonts.css');

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* ---------- VARIABILI CSS ---------- */
:root {
  --gold:       #c9a84c;
  --gold-light: #e8c86a;
  --dark:       #1a1a2e;
  --darker:     #0d0d0d;
  --mid-grey:   #555;
  --light-grey: #f4f4f4;
  --white:      #ffffff;
  --section-pad: 90px 0;
  --radius:     8px;
  --shadow:     0 6px 30px rgba(0,0,0,0.10);
  --transition: 0.28s ease;
  --header-h:   70px;
  --container:  1180px;
}

/* ---------- CONTAINER ---------- */
.container {
  width: 92%;
  max-width: var(--container);
  margin: 0 auto;
}

/* ---------- SEZIONI COMUNI ---------- */
.section {
  padding: var(--section-pad);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  color: var(--mid-grey);
  font-size: 1rem;
}

/* ---------- BOTTONI ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--darker);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--darker);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 14px 28px;
  border-radius: 4px;
  margin-top: 8px;
  transition: background var(--transition), transform var(--transition);
}

.btn-whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* =====================================================
   HEADER / NAVBAR
====================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: var(--darker);
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Logo */
.nav-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  filter:
    drop-shadow(0 1px 1px rgba(255,255,255,0.30))
    drop-shadow(0 3px 8px rgba(0,0,0,0.55));
}

/* Wrapper metalic reutilizabil */
.logo-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.hero-title .logo-wrap {
  display: block;
  width: fit-content;
  margin: 0 auto 16px;
}

.footer-brand .logo-wrap {
  display: block;
  width: fit-content;
  margin-bottom: 16px;
}

/* Animatie sheen metalic */
@keyframes logo-sheen {
  0%   { transform: translateX(-250%); }
  60%  { transform: translateX(350%); }
  100% { transform: translateX(350%); }
}

.nav-logo::after,
.logo-wrap::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 0;
  width: 35%;
  height: 140%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,0.12) 35%,
    rgba(255,255,255,0.55) 50%,
    rgba(255,255,255,0.12) 65%,
    transparent 100%
  );
  transform: translateX(-250%);
  animation: logo-sheen 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.logo-viv  { color: var(--white); }
.logo-con  { color: var(--gold); }
.logo-art  { color: var(--white); }

/* Nav links */
.nav-links {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    #7a5c10,
    #c9a84c,
    #f5d981,
    #faeaa0,
    #c9a84c,
    #6e500c
  );
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  padding: 4px;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

/* =====================================================
   HERO
====================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* ⬇ MODIFICA: sostituisci "images/hero-bg.jpg" con la tua immagine di sfondo */
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1a2e 60%, #2a2a40 100%);
  /* oppure: background-image: url('images/hero-bg.jpg'); background-size: cover; background-position: center; */

  overflow: hidden;
}

/* Pattern decorativo geometrico */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.06) 1px, transparent 1px);
  background-size: 100px 100px;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.52);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 120px 20px 80px;
}

.hero-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(
    to bottom,
    #7a5c10  0%,
    #c9a84c 15%,
    #f5d981 30%,
    #e0b84e 45%,
    #faeaa0 58%,
    #c9a84c 72%,
    #e8c85e 85%,
    #6e500c 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold); /* fallback */
  margin-bottom: 20px;
  border: 1px solid;
  border-image: linear-gradient(
    to bottom,
    #7a5c10,
    #c9a84c,
    #f5d981,
    #c9a84c,
    #6e500c
  ) 1;
  padding: 6px 18px;
  border-radius: 2px;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-title span {
  background: linear-gradient(
    to bottom,
    #7a5c10  0%,
    #c9a84c 15%,
    #f5d981 30%,
    #e0b84e 45%,
    #faeaa0 58%,
    #c9a84c 72%,
    #e8c85e 85%,
    #6e500c 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--gold); /* fallback */
}

.logo-hero {
  width: min(520px, 85vw);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 1px 1px rgba(255,255,255,0.25))
    drop-shadow(0 4px 12px rgba(0,0,0,0.60));
}

.logo-footer {
  width: min(200px, 60vw);
  height: auto;
  display: block;
  filter:
    drop-shadow(0 1px 2px rgba(201,168,76,0.50))
    drop-shadow(0 4px 12px rgba(0,0,0,0.55));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: rgba(255,255,255,0.78);
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.45);
  animation: bounce 2s infinite;
  z-index: 1;
}

.hero-scroll svg {
  width: 28px;
  height: 28px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* =====================================================
   SERVIZI
====================================================== */
.servizi {
  background: var(--light-grey);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-bottom-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gold);
}

.service-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  transition: stroke var(--transition);
}

.service-card:hover .service-icon svg {
  stroke: var(--white);
}

.service-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.93rem;
  color: var(--mid-grey);
  line-height: 1.65;
}

/* =====================================================
   CHI SIAMO
====================================================== */
.chi-siamo {
  background: var(--white);
}

.chi-siamo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.chi-siamo-img {
  position: relative;
}

.img-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  background-color: #ddd;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: #aaa;
  font-style: italic;
  box-shadow: var(--shadow);
}

.chi-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--gold);
  color: var(--darker);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}

.badge-num {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.badge-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.chi-siamo-text .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.chi-siamo-text p {
  color: var(--mid-grey);
  margin-bottom: 16px;
}

.chi-siamo-text strong {
  color: var(--dark);
  font-weight: 700;
}

.values-list {
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.values-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 600;
}

.values-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--gold);
}

/* =====================================================
   GALLERIA
====================================================== */
.galleria {
  background: var(--light-grey);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 360px;
  gap: 16px;
}

.gallery-item.large {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: #d5d5d5;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #999;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  overflow: hidden;
  transition: background var(--transition), transform var(--transition);
}

.gallery-placeholder:hover {
  background: #c8c8c8;
  transform: scale(1.02);
}

.gallery-placeholder svg {
  width: 36px;
  height: 36px;
  stroke: #bbb;
}

/* Quando si inserisce un'immagine reale */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item img:hover {
  transform: scale(1.04);
  filter: brightness(1.08);
}

/* =====================================================
   CONTATTI
====================================================== */
.contatti {
  background: var(--dark);
  color: var(--white);
}

.contatti .section-tag {
  color: var(--gold);
}

.contatti .section-title {
  color: var(--white);
}

.contatti .section-desc {
  color: rgba(255,255,255,0.7);
}

.contatti .section-desc strong {
  color: var(--gold);
  font-weight: 700;
}

.contatti-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contatti-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(201,168,76,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
}

.contact-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition);
}

a.contact-value:hover {
  color: var(--gold);
}

/* Form */
.contatti-form {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 36px 32px;
  backdrop-filter: blur(6px);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 12px 16px;
  color: var(--white);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.35);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-top: 12px;
  text-align: center;
}

/* Messaggio successo form */
.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 40px 20px;
  text-align: center;
  color: var(--white);
}

.form-success svg {
  width: 52px;
  height: 52px;
  stroke: #2ecc71;
}

.form-success p {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* =====================================================
   FOOTER
====================================================== */
.footer {
  background: var(--darker);
  color: rgba(255,255,255,0.65);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 40px;
}

.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  display: inline-block;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-contact svg {
  width: 15px;
  height: 15px;
  stroke: var(--gold);
  flex-shrink: 0;
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* =====================================================
   LIGHTBOX (galleria)
====================================================== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.lightbox-close:hover {
  opacity: 1;
}

/* =====================================================
   RESPONSIVE – TABLET (max 1024px)
====================================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chi-siamo-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .chi-badge {
    right: 0;
    bottom: -20px;
  }

  .contatti-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* =====================================================
   RESPONSIVE – MOBILE (max 768px)
====================================================== */
@media (max-width: 768px) {
  :root {
    --section-pad: 64px 0;
  }

  /* Navbar mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    background: var(--darker);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s ease, padding 0.38s ease;
  }

  .nav-links.open {
    max-height: 400px;
    padding: 16px 0 24px;
  }

  .nav-link {
    padding: 13px 0;
    font-size: 0.95rem;
  }

  /* Hero */
  .hero-content {
    padding: 60px 20px 60px;
    text-align: center;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.8rem);
  }

  .hero-tag {
    border: none;
    padding: 0;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  /* Servizi */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Galleria */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }

  .gallery-item.large {
    grid-column: span 2;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 48px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-item.large {
    grid-column: span 1;
  }

  .contatti-form {
    padding: 24px 18px;
  }

  .chi-badge {
    position: static;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 16px;
  }
}
