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

/* BASE */
html, body {
  font-family: 'Work Sans', sans-serif;
  background-color: #624c23;
  color: #f33622;
  height: 100%;
}

/* Layout per spingere il footer mobile in fondo */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* FIXED CORNERS - desktop */
.corner {
  font-size: 13px;
  line-height: 1.4;
  z-index: 10;
}

.top-left {
  position: fixed;
  top: 20px;
  left: 30px;
}

.top-right {
  position: fixed;
  top: 30px;
  right: 30px;
  text-align: right;
}

/* BOTTOM CORNERS - desktop */
.bottom-left {
  position: fixed;
  bottom: 30px;
  left: 30px;
}

.bottom-right {
  position: fixed;
  bottom: 30px;
  right: 30px;
  text-align: right;
  max-width: 240px;
}

.bottom-left a {
  text-decoration: underline;
  color: #f33622
}

.bottom-left a:hover {
  text-decoration: underline;
}

/* LOGO */
.corner-logo {
  width: 100px;
  height: auto;
}

/* FONT */
@font-face {
  font-family: 'BubbleCandy-Regular';

  src: url('../fonts/BubbleCandy-Regular.woff2') format('woff2'),
  url('../fonts/CreativeChildren-Regular.woff2') format('woff2'),
       url('../fonts/Howdybun.woff2') format('woff2'),
       url('../fonts/Omletta-Regular.woff2') format('woff2'),
       url('../fonts/Bubble.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* MAIN TITLE */
.main-title {
  font-family: 'BubbleCandy-Regular', sans-serif !important;
  font-size: 180px;
  text-align: center;
  text-transform: none;
  letter-spacing: 0.05em;
  color: #64625d;
  margin: 80px 0 0 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

h1, h2, .main-title {
  color: #ec3a1c;
}

/* CONTENT - desktop */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding: 0 120px 120px;
}

/* ROW IMAGES - desktop */
.row-images {
  display: flex;
  justify-content: center;
  gap: 30px;
  align-items: center;
}

.row-images img {
  max-width: 40%;
  height: auto;
  display: block;
}

.row-images.single img {
  max-width: 80%;
  margin: 0 auto;
}

/* RESPONSIVE: tablet */
@media (max-width: 1024px) {
  .main-title {
    font-size: 120px;
  }

  .corner-logo {
    width: 80px;
  }

  .row-images img {
    max-width: 48%;
  }
}

/* RESPONSIVE: mobile */
@media (max-width: 768px) {

  /* TITOLI */
  .main-title {
    font-size: 80px;
    margin-bottom: 20px;
  }

  /* CONTENT */
  .content {
    padding: 60px 20px 20px;
    gap: 0;
  }

  .row-images {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
  }

  .row-images img,
  .row-images.single img {
    max-width: 90%;
    height: auto;
    object-fit: contain;
  }

  .content img:last-child {
    margin-bottom: 40px;
  }

  /* TOP CORNERS - mobile (fixed) */
  .corner.top-left {
    position: fixed;
    top: 4px;
    left: 10px;
    font-size: 12px;
    mix-blend-mode: normal;
    z-index: 10;
  }

  .corner.top-right {
    position: fixed;
    top: 15px;
    right: 10px;
    font-size: 12px;
    text-align: right;
    color: #ff3b1f;
    filter: brightness(1.4) contrast(1.2);
    mix-blend-mode: difference;
    z-index: 10;
  }

  /* CONTAINER BOTTOM - mobile */
  .bottom-corners-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 10px;
    margin: 0px 0 20px;
  }

  /* BOTTOM CORNERS - mobile (NON fixed) */
  .bottom-left,
  .bottom-right {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    font-size: 12px;
    color: #ff3b1f;
    mix-blend-mode: normal;
  }

  .bottom-left {
    text-align: left;
  }

  .bottom-right {
    text-align: right;
  }

  /* LINK: niente inversione */
  .bottom-left a,
  .bottom-right a {
    mix-blend-mode: normal;
    color: white;
    text-decoration: underline;
  }
}
