/* ===========================================
   RESET
=========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===========================================
   COLORI E FONT
=========================================== */
:root {
  --rosso: #630003;
  --rosso-chiaro: #BD3C1A;
  --bianco: #FFFFFF;
  --nero: #1A1A1A;

  --sidebar-bg: var(--rosso);
  --sidebar-text: var(--bianco);

  --main-bg: var(--bianco);
  --main-text: var(--rosso);
}

body {
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  background: var(--main-bg);
  color: var(--main-text);
  line-height: 1.6;
}

/* ===========================================
   LAYOUT GENERALE
=========================================== */
.layout {
  display: flex;
  min-height: 100vh;
}

main {
  width: calc(100% - 250px);
  margin-left: 250px;
  padding: 50px 50px 80px 50px;
}

/* ===========================================
   SIDEBAR (DESKTOP)
=========================================== */
.sidebar {
  width: 250px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  border-right: 4px solid var(--rosso);
  padding: 30px 20px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar .logo {
  width: 150px;
  margin-bottom: 30px;
}

.sidebar nav {
  width: 100%;
  margin-bottom: 40px;
}

.sidebar nav a {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  color: var(--sidebar-text);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  font-size: 15px;
}

.sidebar nav a:hover {
  opacity: 0.7;
}

.flags img {
  width: 22px;
  margin: 10px 5px;
}

.address {
  margin-top: auto;
  text-align: center;
  font-size: 13px;
  color: var(--sidebar-text);
}

/* ===========================================
   TIPOGRAFIA
=========================================== */
h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
  margin-bottom: 15px;
}

h1 {
  font-size: 42px;
}

h2.section-title {
  font-size: 28px;
  margin: 60px 0 10px;
}

p {
  font-size: 17px;
  margin-bottom: 10px;
}

/* ===========================================
   HERO
=========================================== */
.hero img {
  width: 90%;
  margin: 0 auto 40px auto;
  display: block;
  border-radius: 4px;
}

.hero-logo {
  width: 260px;
  margin-bottom: 25px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================================
   GRID LAYOUTS
=========================================== */
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 60px 0;
}

.two-cols img {
  width: 100%;
  border-radius: 4px;
}

.three-cols {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1fr;
  gap: 30px;
  margin: 60px 0;
}

.three-cols img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.gallery-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin: 40px 0;
}

.gallery-half img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
}

.gallery-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin: 40px 0;
}

.gallery-3 img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: contain;
}

.gallery-quarter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 40px 0;
}

.gallery-quarter img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
}

/* ===========================================
   HAMBURGER + MENU MOBILE SLIDE-IN
=========================================== */
.hamburger {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  font-size: 32px;
  background: none;
  border: none;
  color: var(--rosso);
  z-index: 9999;
  cursor: pointer;
}

/* ===========================================
   MOBILE (FINALE, PULITO, STABILE)
=========================================== */
@media (max-width: 900px) {

  /* HAMBURGER */
  .hamburger {
    display: block;
  }

  /* SIDEBAR -> SLIDE-IN MENU */
  .sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 240px;
    height: 100vh;
    padding: 25px 20px;
    background: var(--rosso);
    color: var(--rosso);
    box-shadow: 3px 0 10px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 9998;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar nav a {
    color: var(--bianco);
    font-size: 18px;
    border-bottom: 1px solid #ddd;
    padding: 12px 0;
  }

  .sidebar img.logo {
    width: 140px;
    margin-bottom: 20px;
  }

  .address {
    color: var(--bianco);
  }

  /* MAIN */
  main {
    margin-left: 0;
    width: 100%;
    padding: 25px;
  }

  /* HERO */
  .hero img {
    width: 100%;
    margin-bottom: 25px;
  }

  .hero-logo {
    width: 75%;
  }

  .hero-text {
    text-align: center;
    max-width: 90%;
    font-size: 18px;
    margin: 10px auto;
  }

  /* GRIGLIE → 1 COLONNA */
  .two-cols,
  .three-cols {
    grid-template-columns: 1fr;
  }

  .gallery-half {
    grid-template-columns: 1fr;
  }

  .gallery-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-quarter {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {

  .hero img {
    height: auto;
  }

  .hero-text {
    font-size: 16px;
  }

  .section-title {
    font-size: 24px;
  }

  p {
    font-size: 16px;
  }
}
