/*
Theme Name: Gidatasystem
Theme URI: https://gidatasystem.it
Author: Gidatasystem S.r.l.
Description: Tema personalizzato Gidatasystem — Soluzioni Digitali Integrate
Version: 1.0
License: Proprietario
Text Domain: gidatasystem
*/

:root {
  /* Palette scura — Hero, Consulenza, Software */
  --noir: #141414;
  --charcoal: #242220;
  --graphite: #2e2b29;
  --steel: #3a3734;
  --silver: #7a7672;
  --ash: #aeaaa5;
  --mist: #d8d4ce;
  --white: #ede9e3;
  --accent: #1a7fc1;
  --accent-dim: #0f5a8a;
  --gold: #b8a07a;
  --gold-dim: #8c7558;

  /* Palette chiara — Numbers, Servizi, Hardware, Contatti */
  --light-bg: #f2ede4;
  --light-surface: #e9e3d8;
  --light-border: #d4ccbf;
  --light-border-soft: #ddd7cc;
  --light-text: #26231f;
  --light-text-muted: #5e5a55;
  --light-text-faint: #908b85;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--noir);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 4rem;
  background: rgba(20,20,20,0.90);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: padding 0.4s;
}
nav.scrolled { padding: 1rem 4rem; }
.nav-logo img { height: 42px; filter: brightness(1.1); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--ash);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  padding: 0.6rem 1.6rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
}
.nav-cta:hover { background: var(--accent); color: var(--white); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 10rem 4rem 6rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}
.hero-glow {
  position: absolute; top: 15%; left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 600px;
  background: radial-gradient(ellipse, rgba(26,127,193,0.28) 0%, rgba(26,127,193,0.10) 40%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 40px; height: 1px; background: var(--accent);
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  font-weight: 300; line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.hero h1 em { font-style: italic; color: var(--ash); }
.hero-sub {
  font-size: 1.05rem; color: var(--ash);
  max-width: 520px; line-height: 1.8;
  margin-bottom: 3rem;
}
.hero-actions { display: flex; align-items: center; gap: 2rem; }
.btn-primary {
  padding: 1rem 2.5rem;
  background: var(--accent); color: var(--white);
  text-decoration: none; font-size: 0.85rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: all 0.3s; border: 1px solid var(--accent);
  display: inline-block;
}
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-ghost {
  color: var(--ash); text-decoration: none;
  font-size: 0.85rem; letter-spacing: 0.05em;
  border-bottom: 1px solid var(--steel);
  padding-bottom: 2px; transition: all 0.3s;
}
.btn-ghost:hover { color: var(--white); border-color: var(--white); }
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--silver); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, transparent, var(--silver), transparent);
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* SECTIONS */
section { padding: 8rem 4rem; }
.section-label {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.section-label::before { content: ''; width: 28px; height: 1px; background: var(--accent); display: block; }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 300; line-height: 1.1;
  letter-spacing: -0.01em;
  max-width: 700px;
}
.section-title em { font-style: italic; color: var(--ash); }

/* NUMBERS STRIP — chiaro, transizione da scuro sopra */
.numbers-strip {
  padding: 5rem 4rem 5rem;
  background: var(--light-bg);
  clip-path: polygon(0 50px, 100% 0, 100% 100%, 0 100%);
  margin-top: -50px;
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.number-item {
  padding: 2rem;
  border-right: 1px solid var(--light-border);
  text-align: center;
}
.number-item:last-child { border-right: none; }
.number-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem; font-weight: 300;
  color: var(--light-text); line-height: 1;
  margin-bottom: 0.5rem;
}
.number-value span { color: var(--accent); }
.number-label { font-size: 0.78rem; letter-spacing: 0.1em; color: var(--light-text-faint); text-transform: uppercase; }

/* SERVICES — chiaro, continua da numbers */
#servizi { background: var(--light-bg); }
.services-intro {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: end; margin-bottom: 5rem;
}
.services-text {
  font-size: 1rem; color: var(--light-text-muted); line-height: 1.9; max-width: 440px;
}
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--light-border);
}
.service-card {
  background: var(--light-bg);
  padding: 3rem 2.5rem;
  position: relative; overflow: hidden;
  transition: background 0.4s;
  cursor: default;
}
.service-card:hover { background: var(--light-surface); }
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.4s;
}
.service-card:hover::after { width: 100%; }
.service-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem; color: var(--accent);
  letter-spacing: 0.08em; margin-bottom: 2rem;
}
.service-icon {
  width: 48px; height: 48px; margin-bottom: 1.5rem;
  color: var(--gold);
}
.service-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 400;
  line-height: 1.2; margin-bottom: 1rem; color: var(--light-text);
}
.service-card p {
  font-size: 0.88rem; color: var(--light-text-muted);
  line-height: 1.8;
}
.service-tags {
  margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.tag {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--light-border); color: var(--light-text-faint);
  transition: all 0.3s;
}
.service-card:hover .tag { border-color: var(--accent-dim); color: var(--light-text-muted); }

/* CONSULENZA — torna scuro, transizione da chiaro con clip-path inverso */
#consulenza {
  background: var(--noir);
  clip-path: polygon(0 0, 100% 50px, 100% 100%, 0 100%);
  margin-top: -50px;
  position: relative; z-index: 2;
  padding-top: calc(8rem + 50px);
}
.consulting-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center; margin-top: 4rem;
}
.consulting-visual {
  position: relative; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.cv-outer {
  width: 320px; height: 320px; border-radius: 50%;
  border: 1px solid var(--steel);
  position: absolute;
  animation: rotate 20s linear infinite;
}
.cv-inner {
  width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid rgba(26,127,193,0.3);
  position: absolute;
  animation: rotate 12s linear infinite reverse;
}
.cv-core {
  width: 130px; height: 130px; border-radius: 50%;
  background: var(--graphite);
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem; letter-spacing: 0.15em;
  color: var(--accent); text-transform: uppercase; text-align: center;
  position: relative; z-index: 2;
}
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.cv-dot {
  position: absolute; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}
.cv-dot-1 { top: 0; left: 50%; transform: translate(-50%); }
.cv-dot-2 { bottom: 0; left: 50%; transform: translate(-50%); }
.consulting-steps { display: flex; flex-direction: column; gap: 2rem; }
.step {
  display: flex; gap: 1.5rem; align-items: flex-start;
  padding-bottom: 2rem; border-bottom: 1px solid var(--graphite);
}
.step:last-child { border-bottom: none; padding-bottom: 0; }
.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem; font-weight: 300;
  color: var(--steel); line-height: 1; flex-shrink: 0; width: 2rem; text-align: right;
}
.step-body h4 {
  font-size: 1rem; font-weight: 500; color: var(--white);
  margin-bottom: 0.4rem;
}
.step-body p { font-size: 0.88rem; color: var(--silver); line-height: 1.7; }

/* HARDWARE — chiaro, transizione da scuro sopra */
#hardware {
  background: var(--light-bg);
  clip-path: polygon(0 50px, 100% 0, 100% 100%, 0 100%);
  margin-top: -50px;
  position: relative; z-index: 3;
  padding-top: calc(8rem + 50px);
}
.hw-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; margin-top: 4rem;
}
.hw-card {
  border: 1px solid var(--light-border); padding: 2.5rem 2rem;
  background: var(--light-bg);
  transition: all 0.3s; position: relative; overflow: hidden;
}
.hw-card:hover {
  border-color: var(--accent); transform: translateY(-4px);
  background: var(--light-surface);
}
.hw-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.hw-card:hover::before { opacity: 1; }
.hw-icon {
  font-size: 2rem; margin-bottom: 1.5rem; display: block;
  color: var(--gold);
}
.hw-card h3 { font-size: 1rem; font-weight: 500; color: var(--light-text); margin-bottom: 0.75rem; }
.hw-card p { font-size: 0.85rem; color: var(--light-text-muted); line-height: 1.7; }
.hw-card ul { list-style: none; margin-top: 1rem; }
.hw-card ul li {
  font-size: 0.8rem; color: var(--light-text-faint); padding: 0.3rem 0;
  border-bottom: 1px solid var(--light-border-soft);
  display: flex; align-items: center; gap: 0.6rem;
}
.hw-card ul li::before { content: '—'; color: var(--accent); font-size: 0.7rem; }

/* SOFTWARE — torna scuro con transizione */
#software {
  background: var(--noir);
  clip-path: polygon(0 0, 100% 50px, 100% 100%, 0 100%);
  margin-top: -50px;
  position: relative; z-index: 4;
  padding-top: calc(8rem + 50px);
}
.sw-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6rem; margin-top: 4rem; }
.sw-features { display: flex; flex-direction: column; gap: 0; }
.sw-feature {
  padding: 2rem 0; border-bottom: 1px solid var(--graphite);
  display: flex; gap: 1.5rem; cursor: default;
  transition: all 0.3s;
}
.sw-feature:first-child { border-top: 1px solid var(--graphite); }
.sw-feature:hover { padding-left: 1rem; border-color: var(--accent-dim); }
.sw-feat-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--graphite); border: 1px solid var(--steel);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0; transition: all 0.3s;
}
.sw-feature:hover .sw-feat-icon { background: var(--accent); border-color: var(--accent); }
.sw-feat-body h4 { font-size: 0.95rem; font-weight: 500; color: var(--white); margin-bottom: 0.4rem; }
.sw-feat-body p { font-size: 0.85rem; color: var(--silver); line-height: 1.7; }
.sw-erp {
  background: var(--charcoal); border: 1px solid var(--steel);
  padding: 3rem;
}
.sw-erp h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem; font-weight: 300; margin-bottom: 1.5rem; color: var(--white);
}
.erp-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.erp-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem; background: var(--graphite);
  border-left: 2px solid var(--accent);
}
.erp-name { font-size: 0.9rem; font-weight: 500; color: var(--white); }
.erp-badge {
  font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.2rem 0.6rem; background: rgba(26,127,193,0.15);
  color: var(--accent); border: 1px solid rgba(26,127,193,0.3);
}
.sw-note { font-size: 0.82rem; color: var(--silver); line-height: 1.7; }

/* CONTATTI — chiaro, transizione da scuro sopra */
#contatti {
  background: var(--light-bg);
  clip-path: polygon(0 50px, 100% 0, 100% 100%, 0 100%);
  margin-top: -50px;
  position: relative; z-index: 5;
  padding-top: calc(8rem + 50px);
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; margin-top: 4rem;
}
.contact-info { display: flex; flex-direction: column; gap: 2.5rem; }
.contact-item { display: flex; flex-direction: column; gap: 0.3rem; }
.contact-label {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.contact-value { font-size: 1rem; color: var(--light-text); }
.contact-value a { color: var(--light-text); text-decoration: none; border-bottom: 1px solid var(--light-border); transition: border-color 0.3s; }
.contact-value a:hover { border-color: var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--light-text-faint); }
.form-group input, .form-group textarea, .form-group select {
  background: #fff; border: 1px solid var(--light-border);
  color: var(--light-text); padding: 0.85rem 1rem;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  outline: none; transition: border-color 0.3s; resize: vertical;
  appearance: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent);
}
.form-group select option { background: #fff; color: var(--light-text); }
.form-group textarea { min-height: 120px; }
.btn-submit {
  padding: 1rem 2.5rem; background: var(--accent);
  color: var(--white); border: 1px solid var(--accent);
  font-family: 'DM Sans', sans-serif; font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s; align-self: flex-start;
}
.btn-submit:hover { background: transparent; color: var(--accent); }

/* FOOTER — chiaro, continua da contatti */
footer {
  background: var(--light-surface); border-top: 1px solid var(--light-border);
  padding: 4rem; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 2rem;
  position: relative; z-index: 5;
}
.footer-logo img { height: 36px; filter: brightness(0.3); }
.footer-copy { font-size: 0.78rem; color: var(--light-text-faint); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.78rem; color: var(--light-text-faint); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--light-text); }


/* LIGHT SECTION OVERRIDES — titoli e label sulle sezioni chiare */
#servizi .section-title,
#hardware .section-title,
#contatti .section-title {
  color: var(--light-text);
}
#servizi .section-title em,
#hardware .section-title em,
#contatti .section-title em {
  color: var(--light-text-muted);
}
#servizi .section-label,
#hardware .section-label,
#contatti .section-label {
  color: var(--accent);
}
#servizi .section-label::before,
#hardware .section-label::before,
#contatti .section-label::before {
  background: var(--accent);
}
/* Hamburger scuro su nav (nav è sempre semi-trasparente) */
/* DIVIDER */
.divider { height: 1px; background: var(--steel); margin: 0 4rem; }

/* REVEAL ANIMATIONS */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s, transform 0.8s; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* MOBILE MENU */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 1px; background: var(--white); transition: all 0.3s; }

@media (max-width: 1024px) {
  nav { padding: 1.5rem 2rem; }
  nav.scrolled { padding: 1rem 2rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 5rem 2rem; }
  .hero { padding: 8rem 2rem 5rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .hw-grid { grid-template-columns: 1fr 1fr; }
  .consulting-layout, .sw-layout, .contact-grid, .services-intro { grid-template-columns: 1fr; gap: 3rem; }
  .numbers-strip { grid-template-columns: 1fr 1fr; }
  .number-item:nth-child(2) { border-right: none; }
  .footer-links { display: none; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .hw-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .numbers-strip { grid-template-columns: 1fr; }
  .number-item { border-right: none; border-bottom: 1px solid var(--steel); }
}