/* ===========================
   GENERALE
=========================== */

body {
  font-family: Inter, Arial, sans-serif;
  background: #ffd1a3;
  color: #333;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===========================
   HEADER
=========================== */

.site-header {
  background: #ff9f5c;
  padding: 20px;
}

.site-branding {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo {
  height: 50px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 26px;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}

.brand-warning {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
}
/* ===========================
   LAYOUT PRINCIPALE
=========================== */

.container {
  display: flex;
  max-width: 1200px;
  margin: 20px auto;
  gap: 30px;
}

main {
  width: 70%;
}

.sidebar {
  width: 30%;
}

/* ===========================
   CARD POST (INDEX)
=========================== */

.post-preview {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  margin-bottom: 30px;
}

.preview-link {
  display: block;
}

.post-preview .post-title {
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
}

.preview-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-direction: row-reverse;
}

.preview-text {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  text-align: justify;
}

/* === MODIFICA PER 3 IMMAGINI === */

.preview-photo {
  display: flex;
  gap: 10px;
}

.preview-photo img {
  width: 150px;          /* stessa larghezza per tutte */
  height: 150px;         /* altezza fissa */
  object-fit: contain;   /* NON taglia, mantiene proporzioni */
  display: block;
  border-radius: 4px;
}

/* ===========================
   PAGINA POST
=========================== */

.post-box {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  margin-bottom: 30px;
}

.post-title {
  font-size: 26px;
  margin-bottom: 20px;
}

/* ===========================
   GALLERIA FOTO
=========================== */

.post-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  max-width: calc(150px * 4 + 20px * 3);
  margin: 0 auto;
}

.post-photos .photo {
  text-align: center;
}

.post-photos .photo img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}

/* ===========================
   SIDEBAR
=========================== */

.sidebar-section {
  margin-bottom: 30px;
}

.sidebar-feature {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 20px;
}

.feature-link {
  display: flex;
  align-items: center;
  width: 100%;
  color: #333;
}

.feature-photo img {
  max-width: 100px;
  max-height: 100px;
  height: auto;
  display: block;
}

.feature-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  margin-left: 15px;
  text-align: center;
}


.sidebar-badge {
  margin: 10px 0 20px 0;
  padding: 6px 10px;
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #ddd;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: center;
}


/* MODELS CON PALLINI */

.models-list {
  list-style: disc;
  padding-left: 20px;
}

.models-list li {
  margin-bottom: 8px;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }

  main,
  .sidebar {
    width: 100%;
  }

  .preview-row {
    flex-direction: column;
    align-items: center;
  }

  .preview-photo {
    justify-content: center;
    margin-top: 15px;
  }
}


/* ===========================
   BOTTONI NEXT/PREV
=========================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 40px 0;
}

.pagination a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 120px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-weight: 600;
  color: #333;
  text-align: center;
  box-sizing: border-box;
}


