/* =============================================
   STYLE_INFO.CSS - Per info_aziendali.html
   ============================================= */

/* GOOGLE FONT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* COLORI BASE */
:root {
  --azzurro: #4fc3f7;
  --verde: #4caf50;
  --scuro: #1b1b1b;
  --chiaro: #f9f9f9;
  --panna: #f5f1ea;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background-color: var(--chiaro);
  color: var(--scuro);
}

/* =============================================
   HEADER
   ============================================= */
header {
  background: linear-gradient(90deg, var(--azzurro), var(--verde));
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.2rem;
  color: white;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
  border-radius: 50px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover { text-decoration: underline; }

nav a.active {
  text-decoration: underline;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
  user-select: none;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  text-align: center;
  padding: 5rem 2rem;
  color: white;
  background: url('immagini/home_4.webp') no-repeat center 75%;
  background-size: cover;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

.hero * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.2rem;
  margin: 0 0 0.5rem;
}

.hero p {
  margin: 0;
  opacity: 0.9;
  font-size: 1.05rem;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.info-main {
  max-width: 1100px;
  margin: 0 auto;
}

/* =============================================
   SEZIONI
   ============================================= */
.info-section {
  padding: 3.5rem 2rem;
  background: var(--chiaro);
}

.info-section-alt {
  background: var(--panna);
}

.info-section-title {
  color: var(--verde);
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  text-align: center;
}

/* =============================================
   CARD DATI AZIENDALI
   ============================================= */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.info-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 1.4rem 1.6rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.info-card-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}

.info-card-body h3 {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  font-weight: 600;
}

.info-card-body p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--scuro);
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.info-card-body p.info-sub {
  font-size: 0.85rem;
  color: #888;
  font-weight: 400;
  margin-top: 0.2rem;
}

.info-card-body a {
  color: var(--azzurro);
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.info-card-body a:hover { text-decoration: underline; }

/* =============================================
   MARCHIO REGISTRATO
   ============================================= */
.trademark-box {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  background: white;
  border-radius: 18px;
  padding: 2rem 2.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-left: 6px solid var(--verde);
}

.trademark-badge {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--verde);
  line-height: 1;
  flex-shrink: 0;
}

.trademark-content {
  flex: 1;
}

.trademark-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--scuro);
  margin: 0 0 0.6rem;
  letter-spacing: 0.04em;
}

.trademark-desc {
  color: #555;
  line-height: 1.6;
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
}

.trademark-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.trademark-detail-item {
  background: var(--panna);
  border-radius: 10px;
  padding: 0.7rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #888;
  font-weight: 600;
}

.detail-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--scuro);
}

.btn-trademark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--verde);
  color: white;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s, transform 0.2s;
}

.btn-trademark:hover {
  background: #3d9140;
  transform: translateY(-2px);
}

/* =============================================
   PUBBLICITÀ & COLLABORAZIONI
   ============================================= */
.adv-intro {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: white;
  border-radius: 16px;
  padding: 1.6rem 2rem;
  box-shadow: 0 3px 12px rgba(0,0,0,0.07);
  margin-bottom: 2rem;
}

.adv-intro p {
  flex: 1;
  margin: 0;
  line-height: 1.7;
  color: #444;
  font-size: 0.97rem;
}

.adv-stat {
  text-align: center;
  flex-shrink: 0;
  background: var(--panna);
  border-radius: 14px;
  padding: 1rem 1.4rem;
  border-top: 4px solid var(--verde);
}

.adv-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--verde);
  line-height: 1;
}

.adv-stat-label {
  display: block;
  font-size: 0.78rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
  line-height: 1.4;
}

.adv-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--scuro);
  margin: 0 0 1rem;
}

/* =============================================
   SERVIZI / COLLABORAZIONI
   ============================================= */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.service-item {
  background: white;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.07);
  padding: 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.11);
}

.service-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.service-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  color: var(--scuro);
}

.service-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
}

/* =============================================
   BOX CONTATTI PUBBLICITÀ
   ============================================= */
.adv-contact-box {
  background: var(--scuro);
  color: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  margin-top: 1rem;
}

.adv-contact-box h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: white;
}

.adv-contact-box p {
  margin: 0 0 1.2rem;
  color: #ccc;
  font-size: 0.95rem;
}

.adv-email-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.adv-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--azzurro);
  color: white;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s, transform 0.2s;
}

.adv-email-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* =============================================
   BOTTONI GENERICI
   ============================================= */
.contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 1.6rem;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.3s, transform 0.2s;
  font-size: 0.95rem;
}

.btn-green { background-color: var(--verde); }
.btn-blue  { background-color: var(--azzurro); }

.btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #25D366;
  color: white;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.3s, transform 0.2s;
}

.btn-whatsapp:hover {
  background-color: #1EBE5D;
  transform: translateY(-2px);
}

/* =============================================
   COOKIE BANNER
   ============================================= */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111;
  color: white;
  padding: 1rem 1.5rem;
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  z-index: 9999;
  font-size: 0.95rem;
}

#cookie-banner button {
  margin-left: 0.5rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

#accept-cookies { background: #4caf50; color: white; }
#reject-cookies { background: #555; color: white; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background-color: var(--scuro);
  color: #ccc;
  font-size: 0.9rem;
  padding-top: 2.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 2rem;
}

.footer-brand .footer-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem;
}

.footer-brand .footer-tagline {
  color: #aaa;
  font-size: 0.85rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.footer-socials {
  display: flex;
  gap: 0.8rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #ccc;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.footer-socials a:hover { background: var(--verde); color: white; }

.footer-col-title {
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links li {
  line-height: 1.6; }
.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.8rem;
  word-break: break-all;
  overflow-wrap: anywhere;
}
.footer-links a:hover { color: var(--azzurro); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p { margin: 0; font-size: 0.82rem; color: #888; }
.footer-bottom a { color: var(--azzurro); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

/* =============================================
   RESPONSIVE MOBILE
   ============================================= */
@media (max-width: 768px) {
  /* Menu mobile */
  nav ul {
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.92);
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }

  /* FIX: il JS aggiunge .open su <nav id="nav-menu">, non su nav ul */
  #nav-menu.open ul {
    display: flex;
    max-height: 400px;
    padding: 1rem 0;
  }

  .menu-toggle { display: block; }

  /* Sezioni */
  .info-section { padding: 2.5rem 1.2rem; }

  /* Marchio */
  .trademark-box {
    flex-direction: column;
    gap: 1rem;
    padding: 1.4rem;
  }

  .trademark-badge { font-size: 2.5rem; }

  /* Adv intro */
  .adv-intro {
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.4rem;
  }

  .adv-stat { width: 100%; }

  .adv-email-list { flex-direction: column; align-items: stretch; }
  .adv-email-btn { justify-content: center; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 0 1.2rem 1.5rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 1rem 1.2rem; }

  /* Cookie */
  #cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  #cookie-banner div {
    display: flex;
    gap: 0.7rem;
    justify-content: center;
    width: 100%;
  }

  #cookie-banner button { flex: 1; }

  .contact-cta-row { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }

  .hero h1 { font-size: 1.6rem; }

  .trademark-details { flex-direction: column; }

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