/* =============================================
   STYLE_COMMUNITY.CSS - Per community.html
   ============================================= */

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

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;
}

/* NAVIGATION */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  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 (MOBILE) */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* =============================================
   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;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 0;
}

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

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero p {
  margin-bottom: 1.5rem;
}

/* =============================================
   SEZIONI
   ============================================= */
.section {
  padding: 3rem 2rem;
  text-align: center;
}

.section h2 {
  color: var(--verde);
  margin-bottom: 1rem;
}

/* =============================================
   COMMUNITY SECTION
   ============================================= */
.community-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}

.community-section h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.community-section .intro {
  color: #555;
  margin-bottom: 2rem;
}

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

/* CARD */
.community-card {
  background: #f5f5f3;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 12px 24px rgba(0,0,0,0.1); 
  transform: translateY(-6px);      
  position: relative;
  overflow: hidden;
}

.community-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.community-card .description {
  font-size: 0.95rem;
  color: #444;
}

/* CONTENUTO (SEMPRE VISIBILE) */
.community-extra {
  margin-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 1;               
  transform: translateY(0); 
}

/* MEMBERS */
.members {
  font-size: 0.85rem;
  color: #555;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.members .badge {
  padding: 0.15rem 0.45rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

/* FASCE */
.badge.super {
  background: rgba(229, 57, 53, 0.15);
  color: #e53935;
}

.badge.attiva {
  background: rgba(251, 140, 0, 0.15);
  color: #fb8c00;
}

.badge.crescita {
  background: rgba(67, 160, 71, 0.15);
  color: #43a047;
}

/* BUTTON */
.join-btn { 
  background: #25d366; 
  color: #fff; 
  padding: 0.45rem 1rem; 
  border-radius: 20px; 
  text-decoration: none; 
  font-size: 0.85rem; 
  transition: background 0.2s ease; 
}

.join-btn.whatsapp-btn:hover {
  background: #1ebe5d;
}

/* INSTAGRAM */
.community-card.instagram {
  background: linear-gradient(
    135deg,
    rgba(225,48,108,0.35), 
    rgba(252,175,69,0.35) 
  );
}

.join-btn.instagram-btn {
  background: linear-gradient(
    135deg,
    #e1306c,
    #c13584,
    #f77737
  );
  color: #fff;
  transition: filter 0.2s ease;
}

.join-btn.instagram-btn:hover {
  filter: brightness(1.05); 
}

/* FACEBOOK */
.community-card.facebook {
  background: rgba(24, 119, 242, 0.35);
}

.join-btn.facebook-btn {
  background: #1877f2;
  color: #fff;
}

.join-btn.facebook-btn:hover {
  background: #166fe5;
}

/* TIKTOK */
.community-card.tiktok {
  background: linear-gradient(
    135deg,
    #040404
  );
}

.community-card.tiktok h2{
  color:  #fe2858
}
.community-card.tiktok .description,
.community-card.tiktok .members,
.community-card.tiktok .members .badge {
  color: #fff;
}

.join-btn.tiktok-btn {
  background:#fe2858
}

.join-btn.tiktok-btn:hover {
  background:#2af0ea;
}

/* WHATSAPP CHANNEL (card verde, bottone bianco) */
.community-card.whatsapp {
  background: rgba(37, 211, 102, 0.35);
}

.join-btn.whatsapp-solid-btn {
  background: #ffffff;
  color: #25d366;
  font-weight: 600;
}

.join-btn.whatsapp-solid-btn:hover {
  background: #f0f0f0;
}

/* =============================================
   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;
}

/* =============================================
   RESPONSIVE MOBILE
   ============================================= */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.85);
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    display: none;
    padding: 1rem 0;
  }

  nav.open ul {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .community-card {
    transform: none;
  }

  .community-extra {
    opacity: 1;
    transform: none;
    margin-top: 1rem;
  }
  
  .community-list {
    grid-template-columns: 1fr;
  }

  #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;
  }
}


/* =============================================
   FOOTER RISTRUTTURATO
   ============================================= */
.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; }

@media (max-width: 768px) {
  .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; }
}

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