/* ===========================
   FONT & BASE STRUCTURE
=========================== */
body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
  color: #222;
  transition: background 0.6s ease, color 0.6s ease;
}

/* ===========================
   HERO SECTION
=========================== */
#contenitore_home {
  background-image: url('fotoo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.overlay {
  background-color: rgba(20, 37, 48, 0.55);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#titolo_home {
  font-size: 4rem;
  color: white;
  font-weight: 800;
  letter-spacing: 2px;
  animation: fadeDown 1s ease-in-out;
}

/* ===========================
   CARD BASE STYLE
=========================== */
.icon-box, .icon-boxx {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  backdrop-filter: blur(18px);
  transition: all 0.5s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 370px;
}
.icon-box:hover, .icon-boxx:hover {
  transform: translateY(-8px) scale(1.03);
  background: rgba(255,255,255,0.22);
}

/* ===========================
   ICONS
=========================== */
.icon-box i, .icon-boxx i {
  font-size: 3rem;
  margin-bottom: 15px;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.icon-box:hover i, .icon-boxx:hover i {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.3));
}

/* ===========================
   SECTION TITLES
=========================== */
.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #383838;
  text-align: center;
  text-shadow: 0 0 15px rgba(255,255,255,0.3);
  margin-bottom: 2rem;
}

/* ===========================
   BUTTONS
=========================== */
.btn-custom, .btn-customm {
  border-radius: 30px;
  font-weight: 700;
  padding: 10px 25px;
  color: white;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
  margin-top: auto;
}

/* ===========================
   SECTIONS COLORS
=========================== */

/* 1️⃣ ACQUIRENTI (celeste) */
#acquirenti {
  padding: 80px 0;
}
#acquirenti .icon-box i {
  background: linear-gradient(135deg, #186f97, #00bbf9);
  -webkit-background-clip: text;
  color: transparent;
}
#acquirenti .btn-custom {
  background: linear-gradient(135deg, #00f5d4, #00bbf9);
}
#acquirenti .btn-custom:hover {
  background: linear-gradient(135deg, #00bbf9, #00f5d4);
  box-shadow: 0 0 25px rgba(0,200,255,0.4);
  color: white;
}

/* 2️⃣ VENDITORI (arancio) */
#venditori {
  padding: 80px 0;
}
#venditori .icon-boxx i {
  background: linear-gradient(135deg, #bb560d, #eec72a);
  -webkit-background-clip: text;
  color: transparent;
}
#venditori .btn-customm {
  background: linear-gradient(135deg, #f97316, #facc15);
}
#venditori .btn-customm:hover {
  background: linear-gradient(135deg, #facc15, #f97316);
  box-shadow: 0 0 25px rgba(255,180,50,0.4);
  color: white;
}

/* 3️⃣ SPEDIZIONI (mix) */
#spedizioni {
  padding: 80px 0;
}
#spedizioni .icon-boxx i {
  background: linear-gradient(135deg, #00f5d4, #f15bb5);
  -webkit-background-clip: text;
  color: transparent;
}


/* ===========================
   SCROLL ANIMATIONS
=========================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   DARK MODE (GLASS STYLE)
=========================== */
body.dark-mode {
  background: radial-gradient(circle at 30% 30%, #0b0c14, #161624, #0b0b10);
  color: #f1f5f9;
}

body.dark-mode .icon-box,
body.dark-mode .icon-boxx {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  backdrop-filter: blur(22px) saturate(180%);
}
body.dark-mode .icon-box:hover,
body.dark-mode .icon-boxx:hover {
  background: rgba(255, 255, 255, 0.14);
}

body.dark-mode .section-title {
  color: #f0f4f9;
  text-shadow: 0 0 15px rgba(255,255,255,0.3);
}

/* DARK MODE BUTTONS */
body.dark-mode .btn-custom,
body.dark-mode .btn-customm {
  color: white;
  box-shadow: 0 0 20px rgba(255,255,255,0.15);
}

/* ICON GLOW EFFECT */
body.dark-mode .icon-box i,
body.dark-mode .icon-boxx i {
  animation: pulseIcon 4s infinite ease-in-out;
  text-shadow: 0 0 10px rgba(255,255,255,0.15);
}

/* ===========================
   ANIMATIONS KEYFRAMES
=========================== */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.9; }
}
