/* =============================
   RESET & BASE
   ============================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: #333;
  background: #f5f5f5;
}

a {
  color: inherit;
  text-decoration: none;
}

i {
  color: #e63928;
} 

/* =============================
   COMPONENTI RIUTILIZZABILI
   ============================= */
.btn-red {
  background: #e63928;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}

.btn-red:hover {
  background: #c0311e;
}

.tag {
  display: inline-block;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.tag:hover {
  border-color: #e63928;
  color: #e63928;
}

/* =============================
   HEADER
   ============================= */
.header-wrapper {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.header-search {
  flex: 1;
  display: flex;
  align-items: center;
  border: 2px solid #e63928;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.header-search input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 9px 12px;
  font-size: 14px;
}

.header-search .divider {
  width: 1px;
  height: 28px;
  background: #e0e0e0;
}

.header-search .search-select {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
  color: #555;
}

.header-search .btn-red {
  padding: 10px 24px;
  font-size: 14px;
  border-radius: 0;
}

.btn-insert {
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
}

.btn-login {
  background: #fff;
  border: 1.5px solid #e63928;
  color: #e63928;
  border-radius: 4px;
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
}

/* Subnav */
.header-subnav {
  background: #f8f8f8;
  border-top: 1px solid #eee;
}

.header-subnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  padding: 8px 16px;
  font-size: 13px;
  overflow-x: auto;
}

.header-subnav a {
  color: #555;
  white-space: nowrap;
}

/* =============================
   MAIN
   ============================= */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* Macro categorie */
.macro-categorie {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.macro-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  padding: 20px 10px;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.macro-card:hover {
  border-color: #e63928;
}

.macro-card span {
  font-weight: 700;
  font-size: 15px;
  color: #222;
}

/* Carosello auto */
.carosello-box {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 28px;
  border: 1px solid #eee;
}

.carosello-box h2 {
  font-size: 16px;
  font-weight: 700;
  color: #222;
  margin-bottom: 16px;
}

.carosello-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.carosello-item {
  cursor: pointer;
  text-align: center;
}

.carosello-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 6px;
}

.carosello-item .car-name {
  font-size: 12px;
  font-weight: 600;
  color: #222;
}

.carosello-item .car-cat {
  font-size: 11px;
  color: #888;
}

/* Banner promo */
.banner-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.promo-card {
  border-radius: 12px;
  padding: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.promo-card--red {
  background: linear-gradient(135deg, #e63928, #ff6b54);
}

.promo-card--dark {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.promo-card .promo-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.85;
  margin-bottom: 6px;
}

.promo-card--dark .promo-label {
  opacity: 0.75;
}

.promo-card .promo-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.promo-card .promo-desc {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 16px;
}

.promo-card--dark .promo-desc {
  opacity: 0.85;
}

.btn-white-red {
  background: #fff;
  color: #e63928;
  border: none;
  border-radius: 20px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.btn-white-dark {
  background: #fff;
  color: #1a1a2e;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.promo-app-btns {
  display: flex;
  gap: 10px;
}

/* Tab link rapidi */
.tab-box {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 28px;
  border: 1px solid #eee;
}

.tab-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid #eee;
  padding-bottom: 0;
}

.tab-btn {
  padding: 10px 18px;
  font-size: 13px;
  border: none;
  cursor: pointer;
  background: none;
  margin-bottom: -1px;
}

.tab-btn.active {
  font-weight: 700;
  border-bottom: 2px solid #e63928;
  color: #e63928;
}

.tab-btn.inactive {
  font-weight: 600;
  border-bottom: 2px solid transparent;
  color: #666;
}

.tab-content {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Banner app */
.banner-app {
  background: #f0f0f0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.banner-app .app-title {
  font-size: 19px;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
}

.banner-app .app-desc {
  font-size: 13px;
  color: #555;
}

.banner-app .app-badges {
  display: flex;
  gap: 10px;
}

.banner-app .app-badges img {
  height: 40px;
  cursor: pointer;
}

/* =============================
   FOOTER
   ============================= */
.footer-wrapper {
  background: #222;
  color: #aaa;
  padding: 32px 16px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

.footer-col-title {
  font-weight: 700;
  color: #fff;
  font-size: 13px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.footer-col-links a {
  color: #aaa;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 20px;
}

.footer-social a {
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-icon {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.social-icon--fb   { background: #1877f2; }
.social-icon--tt   { background: #000; font-size: 9px; }
.social-icon--ig   { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); font-size: 9px; }
.social-icon--yt   { background: #f00; font-size: 9px; }

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom .copyright {
  font-size: 12px;
  color: #666;
}

