/* AGRISOLUZIONI.it — sito goliardico del team di meccanici di Nicolò Bulega */

:root {
  --verde-trattore: #2e7d32;
  --verde-scuro: #1b5e20;
  --rosso-gambale: #c62828;
  --giallo-racing: #fdd835;
  --nero-fumo: #1a1a1a;
  --beige-garage: #f5f5dc;
  --bianco: #ffffff;
  --ombra: 0 8px 24px rgba(0, 0, 0, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Lato", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--beige-garage);
  color: var(--nero-fumo);
  line-height: 1.6;
}

/* NAVBAR */
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--verde-scuro);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--ombra);
}

.logo {
  font-family: "Black Ops One", cursive;
  font-size: 1.6rem;
  color: var(--bianco);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--giallo-racing);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--bianco);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--giallo-racing);
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  color: var(--bianco);
  font-size: 1.8rem;
  cursor: pointer;
}

/* HERO */
.hero {
  position: relative;
  height: 90vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  z-index: -1;
}

.hero-content {
  color: var(--bianco);
  max-width: 900px;
  padding: 2rem;
}

.hero-content h1 {
  font-family: "Black Ops One", cursive;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--verde-scuro);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.btn {
  display: inline-block;
  background: var(--giallo-racing);
  color: var(--nero-fumo);
  padding: 0.9rem 2rem;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  box-shadow: var(--ombra);
  transition: transform 0.2s, background 0.2s;
  border: 3px solid var(--bianco);
}

.btn:hover {
  transform: scale(1.05);
  background: var(--rosso-gambale);
  color: var(--bianco);
}

/* SEZIONI */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  font-family: "Black Ops One", cursive;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--verde-scuro);
  margin-bottom: 1.5rem;
  text-align: center;
  text-transform: uppercase;
}

section h2 span {
  color: var(--rosso-gambale);
}

.intro {
  text-align: center;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 3rem;
}

/* CARD SERVIZI */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bianco);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--ombra);
  transition: transform 0.25s;
  border-top: 6px solid var(--verde-trattore);
}

.card:hover {
  transform: translateY(-8px) rotate(-1deg);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  color: var(--verde-scuro);
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.card-content p {
  font-size: 1rem;
}

/* TEAM */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  background: var(--bianco);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--ombra);
  border-bottom: 5px solid var(--rosso-gambale);
}

.team-member .avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--verde-trattore);
  color: var(--bianco);
  font-family: "Black Ops One", cursive;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  border: 4px solid var(--giallo-racing);
}

.team-member h4 {
  color: var(--verde-scuro);
  margin-bottom: 0.25rem;
}

.team-member .role {
  font-weight: 700;
  color: var(--rosso-gambale);
  font-size: 0.9rem;
}

/* LISTA MITI */
.miti {
  list-style: none;
  max-width: 700px;
  margin: 2rem auto 0;
}

.miti li {
  background: var(--bianco);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-left: 6px solid var(--giallo-racing);
  border-radius: 0 0.5rem 0.5rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-size: 1.1rem;
}

.miti strong {
  color: var(--verde-scuro);
}

/* SHOP */
.shop-banner {
  background: var(--verde-scuro);
  color: var(--bianco);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  margin-top: 2rem;
}

.shop-banner h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.shop-banner p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* CONTATTI */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.contact-grid img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: var(--ombra);
}

.contact-info {
  background: var(--bianco);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--ombra);
}

.contact-info p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.contact-info strong {
  color: var(--verde-scuro);
}

/* FOOTER */
footer {
  background: var(--nero-fumo);
  color: var(--bianco);
  text-align: center;
  padding: 2rem;
}

footer p {
  margin-bottom: 0.5rem;
}

footer .small {
  font-size: 0.85rem;
  color: #aaa;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    background: var(--verde-scuro);
    padding: 1rem 2rem;
    gap: 1rem;
  }

  .nav-links.open {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Easter egg: trattore che corre nella status bar? No, ma un po' di polvere sì */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px) rotate(-1deg); }
  75% { transform: translateX(3px) rotate(1deg); }
}

.logo:hover {
  animation: shake 0.4s ease-in-out infinite;
  display: inline-flex;
}
