/* =========================================================
   EDGE SRL - STYLE.CSS (GREEN PRIMARY)
   ========================================================= */

/* -------------------------
   VARIABLES
-------------------------- */
:root {
  --primary: #5f6f00;        /* verde principale */
  --primary-dark: #0b1e33;   /* blu istituzionale */
  --accent: #a7b700;         /* verde acceso */
  --highlight: #ffd60a;      /* giallo energia */
  --contrast: #751e2c;       /* bordeaux */

  --light: #f5f7f2;
  --dark: #0a0f14;
  --text: #1a1a1a;
  --white: #ffffff;
}

/* -------------------------
   RESET
-------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
}

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

/* -------------------------
   TYPOGRAPHY
-------------------------- */
h1, h2, h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  margin-bottom: 1rem;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

p {
  margin-bottom: 1rem;
}

/* -------------------------
   LAYOUT
-------------------------- */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 2rem 1.5rem;
}

.section {
  padding: 3rem 0;
}

.section.light {
  background-color: var(--light);
}

.section.cta {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
}

/* -------------------------
   HEADER
-------------------------- */
.header {
  background: var(--primary-dark);
  color: var(--white);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 1.4rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

nav a {
  color: var(--white);
  text-decoration: none;
}

/* -------------------------
   HERO
-------------------------- */
.hero {
  text-align: center;
  color: var(--white);
  padding: 5rem 1rem;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(95, 111, 0, 0.75); /* overlay verde */
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1,
.hero p {
  color: var(--white);
}

/* -------------------------
   BUTTON
-------------------------- */
.btn-primary {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.6rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 4px;
  transition: 0.3s;
}

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

/* -------------------------
   GRID / CARDS
-------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

/* -------------------------
   LISTS
-------------------------- */
.sector-list,
.benefits {
  padding-left: 1.2rem;
}

.sector-list li,
.benefits li {
  margin-bottom: 0.6rem;
}

/* -------------------------
   FORM
-------------------------- */
.contact-form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
}

/* -------------------------
   PARTNER GRID
-------------------------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.partner-grid img {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: 0.3s;
}

.partner-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* -------------------------
   WHATSAPP
-------------------------- */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  padding: 0.8rem;
  border-radius: 50%;
}

/* -------------------------
   FOOTER
-------------------------- */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  text-align: center;
  padding: 1rem;
}

/* -------------------------
   ANIMATION
-------------------------- */
.fade-in {
  animation: fade 1s ease-in;
}

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

/* -------------------------
   SPLIT CLIMA
-------------------------- */
.split-clima {
  height: 400px;
  background: linear-gradient(
    to right,
    rgba(255,120,0,0.4),
    rgba(0,140,255,0.4)
  ),
  url("../images/stock/clima-split.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-overlay {
  color: white;
  text-align: center;
}

/* -------------------------
   RESPONSIVE
-------------------------- */
@media (max-width: 768px) {

  h1 { font-size: 2rem; }

  nav ul {
    flex-direction: column;
  }

  .header .container {
    flex-direction: column;
  }

  .split-clima {
    height: 300px;
    background: linear-gradient(
      to bottom,
      rgba(255,120,0,0.4),
      rgba(0,140,255,0.4)
    ),
    url("../images/stock/clima-split.jpg") center/cover no-repeat;
  }
}

/* -------------------------
   DARK MODE
-------------------------- */
@media (prefers-color-scheme: dark) {
  body {
    background: var(--dark);
    color: #eee;
  }

  .section.light {
    background: #121820;
  }

  .service-card {
    background: #151c26;
  }
}
