/* STYLE.CSS - F.M. GROUP 
  Versione: Contatti & Navigation
*/

:root {
  --yellow: #5ef500;
  --black: #111111;
  --mint: hsl(97, 70%, 60%);
  --gray: #f4f4f4;
  --white: #ffffff;
  --font-heading: "Playfair Display", serif;
  --font-body: "DM Sans", sans-serif;
  --transition: all 0.3s ease;
}

/* 1. RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

/* 2. TYPOGRAPHY */
h1,
h2,
h3,
h4,
.serif {
  font-family: var(--font-heading);
  font-weight: 600;
}

.label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
}

/* 3. LAYOUT UTILITIES */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 6rem 0;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 4. NAVIGATION & MOBILE MENU */
nav {
  padding: 1rem 0;
  border-bottom: 1px solid #2a2a2a;
  background-color: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--white);
}

.nav-content {
  display: flex;
  align-items: center;
  gap: 3.5rem;
}

.nav-links {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  color: #cccccc;
}

.nav-links a {
  color: #cccccc;
  font-weight: 500;
  transition: var(--transition);
}

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

.nav-contact {
  display: flex;
  gap: 1.125rem;
}

.icon-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--white);
}

.icon-link:hover {
  background-color: var(--yellow);
  color: var(--black);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--white);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* 5. CONTACT PAGE SPECIFIC */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.map-container {
  line-height: 1;
}

.map-container iframe {
  filter: grayscale(0.2) contrast(1.1);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background-color: var(--gray);
  padding: 2rem;
  border-radius: 20px;
  display: flex;
  gap: 1.5rem;
  transition: var(--transition);
  border: 1px solid transparent;
}

.contact-card:hover {
  background-color: var(--white);
  border-color: var(--yellow);
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-card-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  flex-shrink: 0;
}

.contact-card-content h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-card-content p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.contact-link {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
  border-bottom: 2px solid var(--yellow);
  transition: var(--transition);
}

.contact-link:hover {
  background-color: var(--yellow);
}

/* 6. FOOTER */
footer {
  background-color: var(--black);
  color: #888;
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-links h4 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

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

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
}

/* 7. RESPONSIVE BREAKPOINTS */

/* Mobile Navigation (< 991px) */
@media (max-width: 991px) {
  .menu-toggle {
    display: flex;
  }

  .nav-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
    border-bottom: 1px solid #2a2a2a;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
  }

  .nav-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    font-size: 1.2rem;
  }

  .nav-contact {
    justify-content: center;
    width: 100%;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* Tablet (>= 768px) */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* Desktop (>= 992px) */
@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .contact-page h1 {
    font-size: 4.5rem;
  }
}
