/* 
 * Stili aggiornati per i box dei servizi premium
 * Layout 2x2 con pulsanti multipli per consulenti ed enti certificatori
 * + Disclaimer temporaneo e correzione box banner
 */

/* ============================== */
/* DISCLAIMER TEMPORANEO */
/* ============================== */

.site-disclaimer {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0 3rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
  position: relative;
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.disclaimer-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}

.disclaimer-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 8px;
  color: #d97706;
}

.disclaimer-icon svg {
  width: 24px;
  height: 24px;
}

.disclaimer-text {
  flex-grow: 1;
  color: #78350f;
  font-size: 0.95rem;
  line-height: 1.6;
  padding-right: 2rem;
}

.disclaimer-text strong {
  font-weight: 700;
  color: #92400e;
}

.disclaimer-close {
  position: absolute;
  top: 0;
  right: 0;
  background: transparent;
  border: none;
  color: #d97706;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.disclaimer-close:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #92400e;
  transform: scale(1.1);
}

.disclaimer-close:active {
  transform: scale(0.95);
}

.disclaimer-close svg {
  width: 20px;
  height: 20px;
}

/* Responsive disclaimer */
@media (max-width: 768px) {
  .site-disclaimer {
    padding: 1rem 1.25rem;
    margin: 1.5rem 0 2.5rem;
  }
  
  .disclaimer-content {
    gap: 0.75rem;
  }
  
  .disclaimer-icon {
    width: 28px;
    height: 28px;
  }
  
  .disclaimer-icon svg {
    width: 20px;
    height: 20px;
  }
  
  .disclaimer-text {
    font-size: 0.9rem;
    padding-right: 1.5rem;
  }
}

@media (max-width: 480px) {
  .site-disclaimer {
    padding: 0.875rem 1rem;
    margin: 1.25rem 0 2rem;
  }
  
  .disclaimer-text {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  
  .disclaimer-close {
    width: 28px;
    height: 28px;
  }
}

/* ============================== */
/* LAYOUT 2x2 PER LA GRIGLIA */
/* ============================== */

/* Sovrascrive la configurazione a 3 colonne del responsive-home2.css */
.is-home .services-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important; /* 2 colonne invece di 3 */
  gap: 2rem !important;
  margin-bottom: 3rem !important;
}

/* ============================== */
/* CONTAINER PER PULSANTI MULTIPLI */
/* ============================== */

/* Container per i pulsanti quando ce ne sono più di uno */
.is-home .service-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  width: 100%;
}

/* ============================== */
/* PULSANTE SECONDARIO (SCHEDE) */
/* ============================== */

/* Stile base per il pulsante secondario */
.is-home .service-btn--secondary {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%) !important;
  color: var(--qa-gray) !important;
  border: 2px solid #e2e8f0 !important;
  font-size: 0.9rem !important;
  padding: 0.75rem 1.25rem !important;
  font-weight: 600 !important;
}

/* Hover per consulenti (blu) */
.is-home .service-card--consultants .service-btn--secondary:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
  color: #1e40af !important;
  border-color: #3b82f6 !important;
  transform: translateY(-2px);
}

/* Hover per enti certificatori (verde) */
.is-home .service-card--certification .service-btn--secondary:hover {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
  color: #065f46 !important;
  border-color: #10b981 !important;
  transform: translateY(-2px);
}

/* ============================== */
/* BOX "ALTRI SPAZI PUBBLICITARI" */
/* CORREZIONE: Solo icona rosa, resto normale */
/* ============================== */

/* RIMUOVE tutti gli stili rosa dal box - ora è uguale agli altri */
.is-home .service-card--banner {
  background: white !important;
  border: none !important;
}

/* Barra superiore rosa (come gli altri box hanno la loro) */
.is-home .service-card--banner::before {
  background: linear-gradient(90deg, #ec4899, #db2777) !important;
}

/* SOLO L'ICONA È ROSA - stile pastello come gli altri box */
.is-home .service-card--banner .service-icon {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%) !important;
  color: #be185d !important;
}

/* Titolo e testo normali (come gli altri box) */
.is-home .service-card--banner h3 {
  color: #1a202c !important;
}

.is-home .service-card--banner > p {
  color: var(--qa-gray-light) !important;
}

/* Pulsante normale (come gli altri box) */
.is-home .service-card--banner .service-btn {
  background: var(--qa-gray) !important;
  color: white !important;
}

/* Hover pulsante banner (rosa) */
.is-home .service-card--banner .service-btn:hover {
  background: #ec4899 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.3) !important;
}

/* Hover icona banner */
.is-home .service-card--banner:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ============================== */
/* RESPONSIVE DESIGN */
/* ============================== */

/* Mobile: torna a 1 colonna */
@media (max-width: 768px) {
  .is-home .services-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Stack pulsanti su mobile rimane verticale */
  .is-home .service-buttons {
    gap: 0.75rem;
  }
  
  /* Font leggermente più piccolo su mobile */
  .is-home .service-btn--secondary {
    font-size: 0.85rem !important;
    padding: 0.7rem 1rem !important;
  }
}

/* Tablet: mantiene 2 colonne */
@media (min-width: 769px) and (max-width: 1024px) {
  .is-home .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
}

/* Schermi molto grandi: mantiene 2 colonne con max-width */
@media (min-width: 1400px) {
  .is-home .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2.5rem !important;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Mobile molto piccolo: testi ancora più compatti */
@media (max-width: 480px) {
  .is-home .service-btn--secondary {
    font-size: 0.8rem !important;
    padding: 0.65rem 0.9rem !important;
  }
  
  .is-home .service-buttons {
    gap: 0.6rem;
  }
}

/* Ottimizzazione prestazioni mobile: disabilita transizioni complesse */
@media (max-width: 768px) {
  .is-home .service-btn--secondary:hover,
  .is-home .service-card--banner .service-btn:hover {
    transform: none;
  }
  
  .disclaimer-close:hover {
    transform: none;
  }
}