/* ============================================================
   Card "Servizi": icona del brand + nome (novembre 2026)
   Icone in assets/img/icons/ (ricavate dalle grafiche Instagram dei servizi).
   Font "Black Ops One" caricato da Google Fonts in index-test.html.
   Deve essere caricato DOPO style.css e dark-theme.css.
   ============================================================ */

.services #class_crossfit, .services #personal_trainer, .services #eventi,
.services #boxe, .services #weightlifting, .services #hyrox {
  background: radial-gradient(ellipse at 30% 15%, #232323 0%, #111111 55%, #0a0a0a 100%);
}

.services .icon-box {
  min-height: 250px; padding: 24px 22px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  position: relative; overflow: hidden;
  border: 1px solid #262626; border-radius: 8px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
/* grana leggera */
.services .icon-box::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns=%27http://www.w3.org/2000/svg%27 width=%27200%27 height=%27200%27><filter id=%27n%27><feTurbulence type=%27fractalNoise%27 baseFrequency=%270.9%27 numOctaves=%272%27 stitchTiles=%27stitch%27/><feColorMatrix values=%270 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.10 0%27/></filter><rect width=%27100%%27 height=%27100%%27 filter=%27url(%23n)%27/></svg>"); opacity: .6; mix-blend-mode: screen;
}
/* velatura rossa in basso a destra, solo in hover */
.services .icon-box::before {
  top: 0; opacity: 0; transition: opacity .3s;
  background: linear-gradient(135deg, rgba(225,29,46,0) 50%, rgba(225,29,46,.28) 100%);
}
.services .icon-box:hover::before { opacity: 1; background: linear-gradient(135deg, rgba(225,29,46,0) 50%, rgba(225,29,46,.28) 100%); }
.services .icon-box:hover {
  transform: translateY(-4px); border-color: #e11d2e;
  box-shadow: 0 12px 40px rgba(225,29,46,.18), 0 0 0 1px rgba(225,29,46,.35);
}

/* icona */
.services .icon-box .icon, .services .icon-box:hover .icon {
  display: block; width: 88px; height: 88px; margin: 0 auto 12px;
  background-color: transparent !important;
  background-repeat: no-repeat !important; background-position: center !important; background-size: contain !important;
  filter: drop-shadow(0 0 0 rgba(225,29,46,0));
  transition: transform .3s ease, filter .3s ease, margin .3s ease;
}
.services .icon-box:hover .icon { transform: scale(.9); margin-bottom: 4px; filter: drop-shadow(0 0 14px rgba(225,29,46,.75)); }
.services .icon-box .icon i { display: none; }
.services .icon-box#class_crossfit .icon,  .services .icon-box#class_crossfit:hover .icon  { background-image: url(../img/icons/crossfit.png); }
.services .icon-box#personal_trainer .icon, .services .icon-box#personal_trainer:hover .icon { background-image: url(../img/icons/burn.png); }
.services .icon-box#eventi .icon,           .services .icon-box#eventi:hover .icon           { background-image: url(../img/icons/calisthenics.png); }
.services .icon-box#boxe .icon,             .services .icon-box#boxe:hover .icon             { background-image: url(../img/icons/boxe.png); }
.services .icon-box#weightlifting .icon,    .services .icon-box#weightlifting:hover .icon    { background-image: url(../img/icons/weightlifting.png); }
.services .icon-box#hyrox .icon,            .services .icon-box#hyrox:hover .icon            { background-image: url(../img/icons/hyrox.png); }

/* nome */
.services .icon-box .title, .services .icon-box .title a { opacity: 1; }
.services .icon-box .title {
  margin: 0; font-family: 'Black Ops One', 'Raleway', sans-serif; font-size: 27px; font-weight: 400;
  letter-spacing: 2px; text-transform: uppercase; line-height: 1.1;
}
.services .icon-box .title a { color: #ffffff; transition: color .3s; }
.services .icon-box:hover .title a { color: #ff2d3f; }
.services .icon-box .title::after { content: ""; display: block; width: 36px; height: 3px; background: #e11d2e; margin: 10px auto 0; transition: width .3s, margin .3s; }
.services .icon-box:hover .title::after { width: 90px; margin-top: 6px; }

/* descrizione: compare in hover */
.services .icon-box .description {
  opacity: 0; max-height: 0; margin: 0; overflow: hidden; color: #c9c9c9; font-size: 13px; line-height: 19px;
  transition: opacity .3s, max-height .3s, margin .3s;
}
.services .icon-box:hover .description { opacity: 1; max-height: 60px; margin-top: 8px; }
