.boxes-section {
    --box-bg: #f5f4ef;        /* crema del tema */
    --box-card: #ffffff;
    --box-accent: #e8922b;    /* arancione del tema */
    --box-text: #111111;
    --box-muted: #5a5a55;
    --box-border: #e2e0d8;

    padding: 100px 0;
    background: var(--box-bg);
}

/* ---------- Griglia: 3 box affiancati ---------- */
.boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 407px));
    justify-content: center;
    gap: 24px;
}

.box-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--box-border);
    border-radius: 28px;
    background: var(--box-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.box-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(17, 17, 17, 0.08);
}

/* ---------- Immagine ---------- */
.box-image {
    margin: 14px 14px 0;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 4 / 3;
}
.box-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease;
}
.box-item:hover .box-image img {
    transform: scale(1.06);
}

/* ---------- Testi ---------- */
.box-body {
    flex: 1;
    padding: 26px 28px 32px;
    text-align: center;
}

.box-title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--box-text);
}

.box-text {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--box-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .boxes-grid { gap: 16px; }
    .box-body { padding: 22px 20px 26px; }
    .box-title { font-size: 20px; }
    .box-text { font-size: 15px; }
}

/* Su mobile i box vanno uno sotto l'altro */
@media (max-width: 767px) {
    .boxes-section { padding: 64px 0; }
    .boxes-grid { grid-template-columns: 1fr; }
    .box-title { font-size: 22px; }
    .box-text { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .box-item,
    .box-image img { transition: none; }
    .box-item:hover { transform: none; }
    .box-item:hover .box-image img { transform: none; }
}