/* styles/custom.css */

/* ===== Stili per la pagina home ===== */
.homefront h1 {
  color: #2c3e50;
  border-bottom: 3px solid #3498db;
  padding-bottom: 10px;
  margin-bottom: 1.5rem;
}

.homefront h2 {
  color: #34495e;
  border-left: 4px solid #3498db;
  padding-left: 15px;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.homefront h3 {
  color: #2c3e50;
  margin-top: 1.5rem;
}

/* ===== Miglioramenti generali di leggibilità ===== */
.homefront {
  line-height: 1.6;
}

.homefront p {
  margin-bottom: 1rem;
  text-align: justify;
}

/* ===== Stili per le tabelle gt ===== */
.gt_table {
  margin: 2rem auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.gt_table th {
  background-color: #2c3e50 !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 12px 16px !important;
}

.gt_table td {
  padding: 10px 16px !important;
  vertical-align: top !important;
}

/* ===== Callout personalizzati ===== */
.callout-note {
  background-color: #e8f4fc;
  border-left: 4px solid #3498db;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}

.callout-tip {
  background-color: #e8f8f3;
  border-left: 4px solid #2ecc71;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}

.callout-important {
  background-color: #fff3e0;
  border-left: 4px solid #f39c12;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}

.callout-note h4,
.callout-tip h4,
.callout-important h4 {
  margin-top: 0;
  color: inherit;
  font-weight: 600;
}

/* ===== Grid cards per i link ===== */
.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.grid.cards > * {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.5rem;
  background-color: #f8f9fa;
  transition: transform 0.2s, box-shadow 0.2s;
}

.grid.cards > *:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.grid.cards h3 {
  margin-top: 0;
  color: #2c3e50;
}

/* ===== Responsive design ===== */
@media (max-width: 768px) {
  .homefront h1 {
    font-size: 1.8rem;
  }
  
  .homefront h2 {
    font-size: 1.5rem;
  }
  
  .gt_table {
    font-size: 0.9rem;
  }
  
  .grid.cards {
    grid-template-columns: 1fr;
  }
}

/* tabella nella homepage */

/* Stili specifici per la tabella del percorso */
.homefront .gt_table {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  border-collapse: separate;
  border-spacing: 0;
}

.homefront .gt_table td {
  border-bottom: 1px solid #e9ecef;
}

.homefront .gt_table tr:last-child td {
  border-bottom: none;
}

/* Icone nei titoli delle colonne */
.homefront .gt_table th:nth-child(3)::before {
  content: "⏱️ ";
  margin-right: 5px;
}

.homefront .gt_table th:nth-child(4)::before {
  content: "📊 ";
  margin-right: 5px;
}

.homefront .gt_table th:nth-child(5)::before {
  content: "🔗 ";
  margin-right: 5px;
}

/* ===== STILI COMPLETI PER CALLOUT ===== */

/* Stile base comune a tutti i callout */
.callout {
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
  border-left: 4px solid;
}

.callout h4 {
  margin-top: 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Note (blu) */
.callout-note {
  background-color: #e8f4fc;
  border-left-color: #3498db;
}

.callout-note h4 {
  color: #2980b9;
}

.callout-note h4::before {
  content: "📘";
}

/* Tip (verde) */
.callout-tip {
  background-color: #e8f8f3;
  border-left-color: #2ecc71;
}

.callout-tip h4 {
  color: #27ae60;
}

.callout-tip h4::before {
  content: "💡";
}

/* Important (arancione) */
.callout-important {
  background-color: #fff3e0;
  border-left-color: #f39c12;
}

.callout-important h4 {
  color: #d35400;
}

.callout-important h4::before {
  content: "⭐";
}

/* Caution (rosso) */
.callout-caution {
  background-color: #fff5f5;
  border-left-color: #e74c3c;
  border: 1px solid #fadbd8;
}

.callout-caution h4 {
  color: #c0392b;
}

.callout-caution h4::before {
  content: "⚠️";
}

/* Warning (giallo/ambra) - se vuoi differenziare da caution */
.callout-warning {
  background-color: #fff9e6;
  border-left-color: #f1c40f;
}

.callout-warning h4 {
  color: #f39c12;
}

.callout-warning h4::before {
  content: "🚧";
}

/* Stili per callout collassabili */
.callout[data-collapsed="true"] .callout-content {
  display: none;
}

.callout-toggle {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 0.9em;
  margin-top: 0.5rem;
  padding: 4px 8px;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.5);
}

.callout-toggle:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

