/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://elementor.com/
 Description:  Child Theme di Hello Elementor per Energy Consulting
 Author:       Energy Consulting
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child
*/

/* =============================================
   RESET & ROOT VARIABLES
   ============================================= */
:root {
  --ec-green:        #1e7e3e;
  --ec-green-light:  #27a24f;
  --ec-orange:       #e8931a;
  --ec-orange-light: #f5a623;
  --ec-dark:         #0d0d0d;
  --ec-gray:         #f4f4f4;
  --ec-white:        #ffffff;
  --ec-text:         #1a1a1a;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* =============================================
   NAV
   ============================================= */
.ec-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 6%;
  background: rgba(13,13,13,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ec-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.ec-logo-text { font-size: 1.15rem; font-weight: 700; }
.ec-logo-text .g { color: var(--ec-green-light); }
.ec-logo-text .o { color: var(--ec-orange-light); }
.ec-nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.ec-nav-links a {
  color: rgba(255,255,255,0.8); text-decoration: none;
  font-size: .9rem; font-weight: 500; transition: color .2s;
}
.ec-nav-links a:hover { color: var(--ec-orange-light); }
.ec-nav-cta {
  background: linear-gradient(135deg, var(--ec-green), var(--ec-green-light));
  color: #fff !important; border: none; padding: 10px 22px; border-radius: 25px;
  font-size: .88rem; font-weight: 600; cursor: pointer; text-decoration: none !important;
  transition: transform .2s, box-shadow .2s;
}
.ec-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30,126,62,.45);
}

/* =============================================
   HERO
   ============================================= */
.ec-hero {
  min-height: 100vh;
  background: var(--ec-dark);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 6% 80px;
}
.ec-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 50%, rgba(30,126,62,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 20% 80%, rgba(232,147,26,.10) 0%, transparent 60%);
}
.ec-hero-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ec-particle {
  position: absolute; border-radius: 50%; opacity: .25;
  animation: ec-float linear infinite;
}
@keyframes ec-float {
  0%   { transform: translateY(100vh) rotate(0deg);   opacity: 0; }
  10%  { opacity: .25; }
  90%  { opacity: .25; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}
.ec-hero-content { position: relative; z-index: 2; max-width: 650px; }
.ec-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(30,126,62,.2); border: 1px solid rgba(30,126,62,.4);
  color: var(--ec-green-light); padding: 6px 16px; border-radius: 20px;
  font-size: .82rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  margin-bottom: 28px;
}
.ec-h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800; line-height: 1.15; color: var(--ec-white); margin-bottom: 22px;
}
.ec-h1 .accent-g { color: var(--ec-green-light); }
.ec-h1 .accent-o { color: var(--ec-orange-light); }
.ec-hero-sub {
  font-size: 1.1rem; color: rgba(255,255,255,.65);
  line-height: 1.7; margin-bottom: 40px; max-width: 520px;
}
.ec-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.ec-btn-primary {
  background: linear-gradient(135deg, var(--ec-green), var(--ec-green-light));
  color: #fff !important; padding: 14px 32px; border-radius: 30px;
  font-size: .95rem; font-weight: 700; text-decoration: none !important;
  transition: transform .2s, box-shadow .2s; display: inline-block;
}
.ec-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(30,126,62,.5); }
.ec-btn-secondary {
  border: 2px solid rgba(232,147,26,.6); color: var(--ec-orange-light) !important;
  padding: 14px 32px; border-radius: 30px; font-size: .95rem; font-weight: 700;
  text-decoration: none !important; transition: all .2s; display: inline-block;
}
.ec-btn-secondary:hover { background: rgba(232,147,26,.12); border-color: var(--ec-orange-light); }
.ec-hero-stats {
  display: flex; gap: 40px; margin-top: 56px;
  padding-top: 36px; border-top: 1px solid rgba(255,255,255,.08); flex-wrap: wrap;
}
.ec-stat-val { font-size: 1.9rem; font-weight: 800; color: var(--ec-white); }
.ec-stat-val span { color: var(--ec-orange-light); }
.ec-stat-lab {
  font-size: .78rem; color: rgba(255,255,255,.45);
  text-transform: uppercase; letter-spacing: .6px; margin-top: 2px;
}

/* =============================================
   SECTIONS COMMON
   ============================================= */
.ec-section { padding: 90px 6%; }
.ec-section-tag {
  display: inline-block;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--ec-green); background: rgba(30,126,62,.1);
  padding: 5px 14px; border-radius: 20px; margin-bottom: 14px;
}
.ec-section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800; line-height: 1.2; margin-bottom: 14px;
}
.ec-section-sub { color: #555; font-size: 1rem; line-height: 1.7; max-width: 540px; }

/* =============================================
   SERVIZI
   ============================================= */
.ec-servizi { background: var(--ec-gray); }
.ec-services-header { text-align: center; margin-bottom: 56px; }
.ec-services-header .ec-section-sub { margin: 0 auto; }
.ec-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}
.ec-card {
  background: var(--ec-white); border-radius: 16px; padding: 32px 28px;
  border: 1px solid rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.ec-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--ec-green), var(--ec-orange));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.ec-card:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.ec-card:hover::before { transform: scaleX(1); }
.ec-card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 20px;
}
.ec-icon-green { background: rgba(30,126,62,.12); }
.ec-icon-orange { background: rgba(232,147,26,.12); }
.ec-card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.ec-card-desc { font-size: .9rem; color: #666; line-height: 1.65; }
.ec-card-link {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 18px; font-size: .85rem; font-weight: 600;
  color: var(--ec-green); text-decoration: none; transition: gap .2s;
}
.ec-card-link:hover { gap: 9px; color: var(--ec-green); }

/* =============================================
   PERCHÉ NOI
   ============================================= */
.ec-perche { background: var(--ec-white); }
.ec-perche-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.ec-perche-visual {
  background: linear-gradient(135deg, var(--ec-dark) 0%, #1a2a1a 100%);
  border-radius: 24px; padding: 48px 36px;
  display: flex; flex-direction: column; gap: 20px;
}
.ec-perk-row {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  border-radius: 12px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
}
.ec-perk-icon { font-size: 1.5rem; min-width: 36px; text-align: center; }
.ec-perk-text strong { color: #fff; font-size: .95rem; display: block; margin-bottom: 3px; }
.ec-perk-text span { color: rgba(255,255,255,.5); font-size: .82rem; }
.ec-perche-points { display: flex; flex-direction: column; gap: 24px; }
.ec-point { display: flex; gap: 16px; align-items: flex-start; }
.ec-point-num {
  width: 36px; height: 36px; min-width: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ec-green), var(--ec-green-light));
  color: #fff; font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.ec-point-title { font-weight: 700; margin-bottom: 5px; font-size: .98rem; }
.ec-point-desc { color: #666; font-size: .88rem; line-height: 1.6; }

/* =============================================
   OFFERTE
   ============================================= */
.ec-offerte { background: #f9f9f9; }
.ec-offerte-header { text-align: center; margin-bottom: 52px; }
.ec-offerte-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.ec-offerta {
  background: var(--ec-white); border-radius: 20px; padding: 36px 28px;
  border: 2px solid transparent; text-align: center;
  transition: all .25s; position: relative; overflow: hidden;
}
.ec-offerta.featured {
  border-color: var(--ec-green);
  background: linear-gradient(180deg, rgba(30,126,62,.05) 0%, #fff 50%);
}
.ec-featured-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--ec-green); color: #fff;
  font-size: .7rem; font-weight: 700; padding: 4px 10px;
  border-radius: 10px; text-transform: uppercase; letter-spacing: .5px;
}
.ec-offerta:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.1); }
.ec-offerta-icon { font-size: 2.2rem; margin-bottom: 16px; }
.ec-offerta-name { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.ec-offerta-desc { color: #777; font-size: .88rem; line-height: 1.6; margin-bottom: 20px; }
.ec-offerta-features { text-align: left; list-style: none; margin-bottom: 24px; padding: 0; }
.ec-offerta-features li {
  font-size: .85rem; color: #555; padding: 5px 0;
  display: flex; align-items: center; gap: 8px;
}
.ec-offerta-features li::before { content: '✓'; color: var(--ec-green); font-weight: 700; }
.ec-offerta-cta {
  display: block; padding: 12px; border-radius: 25px; font-weight: 700;
  font-size: .88rem; text-decoration: none !important; transition: all .2s;
  background: linear-gradient(135deg, var(--ec-green), var(--ec-green-light));
  color: #fff !important;
}
.ec-offerta-cta:hover { box-shadow: 0 6px 18px rgba(30,126,62,.4); }

/* =============================================
   CONTATTI
   ============================================= */
.ec-contatti {
  background: linear-gradient(135deg, var(--ec-dark) 0%, #0d1f0f 100%);
  color: #fff;
}
.ec-contatti-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.ec-contatti-info .ec-section-title { color: #fff; }
.ec-contatti-info .ec-section-sub { color: rgba(255,255,255,.6); }
.ec-contact-items { margin-top: 36px; display: flex; flex-direction: column; gap: 20px; }
.ec-contact-item { display: flex; gap: 14px; align-items: center; }
.ec-contact-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.ec-contact-label {
  font-size: .78rem; color: rgba(255,255,255,.4);
  text-transform: uppercase; letter-spacing: .5px;
}
.ec-contact-val { font-size: .95rem; color: #fff; font-weight: 500; margin-top: 2px; }
.ec-form-wrap {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px; padding: 36px;
}
.ec-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.ec-form-group { margin-bottom: 14px; }
.ec-form-group label {
  display: block; font-size: .8rem; color: rgba(255,255,255,.5);
  margin-bottom: 6px; font-weight: 500;
}
.ec-form-group input,
.ec-form-group select,
.ec-form-group textarea {
  width: 100%; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
  color: #fff; padding: 12px 14px; font-size: .9rem;
  font-family: inherit; outline: none; transition: border-color .2s;
}
.ec-form-group input:focus,
.ec-form-group select:focus,
.ec-form-group textarea:focus { border-color: var(--ec-green-light); }
.ec-form-group select option { background: #1a1a1a; color: #fff; }
.ec-form-group textarea { resize: vertical; min-height: 100px; }
.ec-form-submit {
  width: 100%; padding: 14px; border: none; border-radius: 25px; cursor: pointer;
  background: linear-gradient(135deg, var(--ec-green), var(--ec-green-light));
  color: #fff; font-size: .95rem; font-weight: 700; font-family: inherit;
  transition: transform .2s, box-shadow .2s;
}
.ec-form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,126,62,.5); }

/* =============================================
   FOOTER
   ============================================= */
.ec-footer {
  background: #080808; color: rgba(255,255,255,.4);
  padding: 28px 6%; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem;
}
.ec-footer-logo { color: rgba(255,255,255,.7); font-weight: 700; font-size: .95rem; }
.ec-footer-logo .g { color: var(--ec-green-light); }
.ec-footer-logo .o { color: var(--ec-orange-light); }
.ec-footer a { color: rgba(255,255,255,.4); text-decoration: none; }
.ec-footer a:hover { color: var(--ec-orange-light); }

/* =============================================
   ANIMAZIONI SCROLL
   ============================================= */
.ec-fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.ec-fade-up.ec-visible { opacity: 1; transform: none; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .ec-nav-links { display: none; }
  .ec-perche-grid,
  .ec-contatti-grid { grid-template-columns: 1fr; }
  .ec-form-row { grid-template-columns: 1fr; }
  .ec-hero-stats { gap: 24px; }
}
