/* RESET E VARIABILI */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #0d2847;
  --accent-color: #d4a359;
  --accent-hover: #b88a44;
  --bg-color: #f0f4f8;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --radius-lg: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 20px -5px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
}

/* 1. HEADER COMPATTO CON DISSOLVENZA SFONDO */
.hero-header {
  width: 100%;
  height: 220px; /* Altezza contenuta */
  position: relative;
  overflow: hidden;
  background-color: var(--primary-color);
  background-size: cover;
  background-position: center;
  transition: background-image 1s ease-in-out; /* Transizione fluida slider */
}

.hero-header .overlay {
  width: 100%;
  height: 100%;
  background: rgba(13, 40, 71, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.header-content {
  color: #ffffff;
  padding: 15px;
}

.header-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: -0.5px;
}

.header-content p {
  font-size: 1rem;
  color: #e2e8f0;
  font-weight: 300;
}

/* FRECCE CONTROLLO SLIDER */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  color: #ffffff;
  border: none;
  font-size: 1.8rem;
  padding: 4px 12px;
  cursor: pointer;
  border-radius: 4px;
  z-index: 5;
  transition: background 0.2s;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

/* 2. LAYOUT A DUE COLONNE */
.main-container {
  max-width: 1140px;
  margin: 30px auto;
  padding: 0 20px;
  display: flex;
  gap: 25px;
}

/* COLONNA 1: MENU SIDEBAR */

.titolocorpo {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 0px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 0px;
}


.sidebar-menu {
  flex: 0 0 auto;
  width: max-content;
  min-width: max-content;
  background: var(--card-bg);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  height: fit-content;
}

.sidebar-menu h3 {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 5px;
}

.sidebar-menu nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn .arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.nav-btn:hover {
  background: #ffffff;
  border-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateX(3px);
}

.nav-btn:hover .arrow {
  transform: translateX(3px);
  color: var(--accent-color);
}

.nav-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
}

.nav-btn.active .arrow {
  color: var(--accent-color);
}

/* COLONNA 2: CONTENUTO DINAMICO */
.content-area {
  flex: 3;
  background: var(--card-bg);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 15px;

  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.card-header .tag {
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.card-header h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
}

.description {
  color: var(--text-muted);
  font-size: 1rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.info-box {
  background: #f8fafc;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.info-box strong {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.info-box span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.info-box .price {
  color: #10b981;
  font-size: 1.2rem;
}

.cta-btn {
  background: var(--accent-color);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.2s ease;
}

.cta-btn:hover {
  background: var(--accent-hover);
}

/* 3. FOOTER */
.main-footer {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 30px 20px 15px;
  margin-top: 40px; 
  text-align: center;
}

.footer-content {
  max-width: 1140px;
  margin: 0 auto 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  text-align: center;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  margin-left: 15px;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  color: #64748b;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 15px;
}
.TestoPaesiTitoletti {
			font-style: italic;

}
/*aggiunti da me:*/
.responsive-img {
  max-width: 100%; /* L'immagine non sarà mai più grande del suo contenitore */
  height: auto;    /* Mantiene le proporzioni originali dell'immagine */
  display: block;  /* Rimuove lo spazio vuoto indesiderato sotto l'immagine */
}
/* CONTENITORE DESTRO: prende tutto lo spazio rimasto */
.right-areas {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 25px;
  align-items: stretch;
}
/* AREA DESTRA 2: PANNELLO SECONDARIO */
.secondary-area {
  background: var(--card-bg);
  padding: 25px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.secondary-area .tag {
  color: var(--accent-color);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.secondary-area h3 {
  color: var(--primary-color);
  font-size: 1.45rem;
  margin-top: -5px;
}

.offer-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 13px;
}

.offer-item strong {
  display: block;
  color: var(--primary-color);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.offer-item p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.secondary-cta {
  align-self: stretch;
  margin-top: auto;
  text-align: center;
}
@media (max-width: 1050px) {
  .right-areas {
    grid-template-columns: 1fr;
  }
}
 

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }
  .sidebar-menu {
    width: 100%;
    min-width: 0;
  }
  .right-areas {
    width: 100%;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-links a {
    margin: 0 8px;
  }
}



.containerlogo {
  display: flex;
  justify-content: flex-start; /* Allinea tutti gli elementi a sinistra */
  gap: 15px;                    /* Spazio opzionale tra i div */
}

.elemento {
/*  background-color: #3498db;
  color: white;*/
  padding: 10px 20px;
}
