@charset "UTF-8";

/* ======  VARIABLES ====== */
:root {
  --green: #669966;
  --purple: #996699;
  --blue: #009999;
  --brown: #683c11;
  --cover: url('../img/cover.jpg');
}

/* ======  RESET & BASE ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  display: flex;
  justify-content: center;
  padding: 2rem;

  background: linear-gradient(to right,
      #BFE6BA,
      #D3959B,
      #FBC2EB,
      #A6C1EE,
      #BCE7FD,
      #CFFFE5,
      #BFE6BA);

  background-size: 400% 400%;
  animation: gradientAnimation 15s ease infinite;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

article {
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

main {
  background-color: #FFF;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .12);
  max-width: 820px;
}

.header {
  background-image: var(--cover);
  background-size: contain;
  padding: 2.5rem 2rem 400px 2rem;
  position: relative;
  overflow: hidden;
  background-position: center bottom;
  background-repeat: no-repeat;
}

.map {
  padding: 0rem 0px 4rem 0px;
  background-color: #009999;
  border-radius: 0px 0px 20px 20px;
}
.map h2{
  font-size: 24px;
  text-align: center;
  text-transform: uppercase;
  color: white;
  padding: 20px 0px 0px 0px;
}
.map h3{
  font-size:15px;
  text-align: center;
  color: white;
  padding: 20px 0px;
}
.map iframe {
  width: 100%;
  height: 400px;
}

.work-in-progress main {
  width: 100%;
  margin: 0px;
  padding: 0px;
}

.work-in-progress header {
  padding: 50px;
  width: 90%;
  margin: auto;
}

.work-in-progress .logo {
  display: block;
  margin: 0 auto 1.8rem auto;
  width: 340px;
}

.work-in-progress h2 {
  font-size: 42px;
  text-align: center;
  text-transform: uppercase;
  margin: 20px 0px;
}

/* ======  LOGOS ====== */
.sponsor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.sponsor img {
  height: 45px;
  object-fit: contain;
}

/* ======  BRAND  ====== */
.logo {
  display: block;
  margin: 0 auto 1.8rem auto;
  width: 340px;
}

.logo-animation {
  animation: logoAnimation 8s ease 1s 3 forwards;
  opacity: 0;
}

@keyframes logoAnimation {
  0% {
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  30% {
    opacity: 0;
  }

  45% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

/* ======  DATES ====== */
.dates {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--green);
  margin-bottom: 1.5rem;
  font-family: "TodaySHOP-Light", sans-serif;
}

.slogan {
  font-family: "TodaySHOP-Medium", sans-serif;
  font-size: 32px;
}

.download {
  background-color:#415d35;;
  color: white;
  padding: 20px;
  border-radius: 20px;
  margin: 2rem;
  text-align: center;
  text-decoration: none;
  position: relative;
  display: block;
  width: auto;
  max-width: 320px;
  margin: auto;
  text-transform: uppercase;
  border: 1px solid #415d35;
  animation: zoom-in-zoom-out 5s ease 2 both;
  transform: scale(1);
  box-shadow:  0 3px 5px 0 #999;
}

.download:hover {
  background-color:  #abbb2d;
}

@keyframes zoom-in-zoom-out {
  0% {
    scale: 100%;
  }

  50% {
    scale: 120%;
  }

  100% {
    scale: 100%;
  }
}

/* ======  TITLE ====== */
h1 {
  text-align: center;
  color: var(--purple);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.about {
  padding: 20px;
}

.about p {
  margin: 10px 0px;
  padding: 0px;
}

.events {
  width: 820px;
  max-width: 100%;
  padding: 2rem 2.5rem 0rem 2.5rem;
  position: relative;
  overflow: hidden;
  background-size: cover;
}
.events-header {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 40px;
}
.events-header img{
  max-width: 200px;
}
.events-header h2 
{
  font-size: 20px;
  text-align: center;
}
.download-programma {
  margin: 50px auto;
}
/* decorative plant bottom‑right */
.plant {
  width: 100%;
  pointer-events: none;
  overflow: hidden;
  /* transform: rotate(0deg);
  animation: plantRotate 4s ease-in-out 2s infinite; */
  /*
  - Durata totale di un ciclo completo → in questo caso 4 secondi
  - Delay iniziale → aspetta 2 secondi prima di iniziare il primo ciclo.
  - Ripete in loop
  */
  background-image: url('../img/flowers.png');
  background-repeat: repeat-x;
  background-size: contain;
}
/* @keyframes plantRotate {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(5deg);
  }
  75% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(-5deg);
  }
}
 */


/* ---- GRID ---- */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}

/* ---- LEFT COLUMN ---- */
.logo {
  width: 240px;
  margin-bottom: 1.8rem;
}

.event-group {
  margin-bottom: 1.8rem;
}

.event-group h3 {
  color: var(--dark-green);
  font-size: 1.05rem;
  text-transform: uppercase;
  background-color: #3f5d36;
  padding: 5px;
  color: white;
}
.event-group h3 small {
  font-style: italic;
  font-size: 1rem;
  text-transform: none;
  font-weight: normal;
}

.event-group p {
  border: 1px solid #3f5d36;
  padding: 10px 10px 10px 10px;
}
.event-group p:first-of-type{
  border-radius: 0px;
}
.event-group p:last-child{
  border-radius: 0px 0px 10px 10px
}
.event-group p span{
  display: inline-block;
}
.event-group p span:first-child{
  font-size: 24px;
}
.event-group p a{
  text-decoration: none;
  background-color: #7ccaf1;
  color: white;
  padding: 5px;
  margin: 5px 0px;
  display: block;
}

/* category colors */
.lab {
  color: var(--blue);
}
.lab::before{
  content: url('../svg/icon-leaf-blue.svg');
  width: 22px;
  display: inline-block;
  margin-right: 10px;
}
/* laboratori bambini */
.music {
  color: var(--purple);
}
.music::before{
  content: url('../svg/icon-leaf-pink.svg');
  width: 22px;
  display: inline-block;
  margin-right: 10px;
}

/* musica/spettacolo */
.talk {
  color: var(--green);
}
.talk::before{
  content: url('../svg/icon-leaf-green.svg');
  width: 22px;
  display: inline-block;
  margin-right: 10px;
}

/* seminari, conferenze, escursioni */
.conference {
  color: var(--brown);
}
.conference::before{
  content: url('../svg/icon-leaf-brown.svg');
  width: 22px;
  display: inline-block;
  margin-right: 10px;
}

/* ---- RIGHT COLUMN ---- */
.right h2 {
  font-family: 'TodaySHOP-Light', serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--dark-green);
  line-height: 1.05;
  margin-bottom: 1.8rem;
  border-left: 4px solid var(--dark-green);
  padding-left: 1rem;
  border-left: 2px dotted #999;
}

/* ---- LEGEND ---- */
.legend {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-top: 2.2rem;
  max-width: 160px;
  justify-content: space-between;
  align-content: space-around;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  flex-direction: column;
}

.legend-item .leaf {
  width: 32px;
  height: 32px;
  display: block;
}

.legend-item span {
  display: block;
  font-size: 12px;
}

.legend-item .leaf-green {
  fill: var(--green)
}

.legend-item .leaf-blue {
  fill: var(--blue);
}

.legend-item .leaf-purple {
  fill: var(--purple);
}

.legend-item .leaf-dark {
  fill: var(--brown);
}

.legend-item img {
  width: 24px;
  height: 24px;
}

/* .mask {
  -webkit-mask-image: url(../img/mask_1.png);
  mask-image: url(../img/mask_1.png);
  mask-repeat: no-repeat;
  width: 900px;
  height: 900px;
} */
#slideshow {
  padding: 50px 0px 20px 0px;
  background-color: #405d35;
}

#slideshow h2{
  color: white;
  text-align: center;
  margin: 20px auto;
  font-family: "TodaySHOP-Light", sans-serif;
  text-transform: uppercase;
  font-size: 32px;
}

.slideshow {
  position: relative;
  width: 92%;
  margin: auto;
  height: 550px;
  overflow: hidden;
  padding: 20px;
}

.slideshow .slide {
  opacity: 0;
  background-size: cover;
  transition: opacity 1s ease-in-out;
  height: 550px;
  background-position: center;
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  border: 1px solid #405d35;
  border-radius: 20px;
  box-shadow: inset 0 0 10px #000;
}

.slideshow .slide.active {
  opacity: 1;
}

/* ---- FOOTNOTE ---- */
.note {
  font-size: .85rem;
  margin-top: 1.5rem;
  font-style: italic;
  color: #444;
}

@media(max-width:720px) {
  .grid {
    grid-template-columns: 1fr;
  }
  #slideshow h2{
    font-size: 25px;
  }
  .events-header {
    flex-direction: column;
  }
}

@media(max-width:640px) {
  main {
    margin: 10px;
  }

  body {
    display: block;
    padding: 0rem;
  }

  .sponsor {
    margin-bottom: 2rem;
  }

  .sponsor img {
    width: 82px;
    height: auto;
  }

  .header {
    width: 100%;
    padding: 2rem 1rem 10rem 1rem;
  }

  .log {
    width: 220px;
  }

  .events {
    width: auto;
    max-width: 100%;
    padding: 2rem 1rem 3.5rem 1rem;
  }

  .legend {
    justify-content: center;
  }

  .right h2 {
    text-align: center;
    padding-left: 0px;
    line-height: 1.2;
  }

  .brand-logo {
    width: 260px;
  }

  .dates {
    font-size: 1.6rem;
  }

  .plant {
    height: 150px;
  }

  .download {
    max-width: 80%;
    border: 3px solid #415d35;
  }
}