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


body {
  font-family: Arial, sans-serif;
  color: #26276d;
}

/* HEADER*/


header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  flex-wrap: wrap;
}

/* Logo */
.logo img {
  height: 100px;
}

/* Navigation container */
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Navigation links */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #0e003b;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.nav-links a:hover {
  color: #000da1;
}

/* Search bar */
.search-item input {
  width: 150px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
}

/* Icons container */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-icons .icon {
  height: 22px;
  width: 22px;
  transition: transform 0.2s ease;
}

.nav-icons .icon:hover {
  transform: scale(1.1);
}

/* Hamburger menu*/
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  position: absolute; 
  top: 20px;         
  right: 20px;       
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #0e003b;
  border-radius: 2px;
}

/* Responsive header */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    position: relative; /* keep nav below hamburger */
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: white;
    width: 100%;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-icons {
    display: none; /* hide icons in mobile view */
  }

  .hamburger {
    display: flex; /* show hamburger */
  }
}

/* ALL SECTIONS*/

/* SECTION 1*/

.first-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
  background-color: #f9f9f9;
}

.section-1 {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  flex-wrap: wrap;
}

.section-1-img {
  width: 300px;
  border-radius: 15px;
}

.section-1-text {
  max-width: 500px;
}

.section-1-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.section-1-text p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.5;
}

.section-1-btn {
  background-color: #000da1;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.section-1-btn:hover {
  background-color: #0e003b;
}

/* SECTION 2 */

.second-section {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.second-section h1 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.section-2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  margin: 0 auto;
}

.section-2 > div {
  text-align: center;
}

.section-2 h2 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.section-2-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.section-2-img:hover {
  transform: scale(1.05);
}

.section-2-btn {
  margin-top: 10px;
  background-color: #000da1;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.section-2-btn:hover {
  background-color: #0e003b;
}

.gelato-section{
  background-color: #ffb2fb;
  padding: 32px;
}

.layers-section{
  background-color: #aaffa3;
  padding: 32px;
}

.sorbetto-section{
  background-color: #ff8e8e;
  padding: 32px;
}

.all-flavors-section{
  background-color: #ffcb8c;
  padding: 32px;
}

.section-2-text p {
  font-size: 1rem;
  color: #444;
}

/* Tablet view: 2 columns */
@media (max-width: 1024px) {
  .section-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile view: 1 column */
@media (max-width: 600px) {
  .section-2 {
    grid-template-columns: 1fr;
  }
}


/* SECTION 3*/

.third-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  gap: 60px;
}


.section-3-img {
  width: 50%;
  max-width: 400px;
}

.section-3-text {
  max-width: 500px;
  text-align: left;
}

.section-3-text h2 {
  font-size: 1.75rem;
  margin-bottom: 15px;
}

.section-3-text p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.5;
}