:root{
  --linkColor: rgb(5, 113, 160);
  --visitedLinkColor: rgb(128, 0, 128);
}

* {
  margin: 0;
  padding: 0;
}
.scroll-behaviour-smooth {
  scroll-behavior: smooth;
}
.hidden{
  display: none;
}
.header img{
  height: 80px;
}

.strong{
  font-weight: bold;
}

.nascosto {
  position: absolute;
  text-indent: -9999em;
}

#create{
  margin-bottom: 1.0em;
}

body {
  font-family: "Montserrat", sans-serif;
  color: #1d1a05;
  background-color: whitesmoke;
  font-size: 100%;
}
p{
  line-height: 1.7em;
}
h1 {
  font-size: 2.5em;
  font-weight: 600;
  line-height: 1.5em;
  padding-top: 0.2em;
}

.info p {
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  font-size: larger;
  line-height: 1em;
}


a:link{
  color: var(--linkColor);
}

a:visited{
  color: var(--visitedLinkColor);
}


#date{
  background-image: url(./images/cal_ico.svg);
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 1em;
  padding-left: 1.6em;
}

#place{
  background-image: url(./images/loc_ico.svg);
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 1em;
  padding-left: 1.6em;
}

.privacy-confirmation{
  display: flex;
  flex-direction: row;
  margin-top: 1em;
}

.privacy-sec h2{
  margin-bottom:0.6em;
}
.privacy-confirmation input{
  margin-right: 1em;
}

.footer{
  background-color: #9B0014;
  color: white;
}
.footer a{
  color: white;
}

.info a{
  text-decoration: none;
}

.italic{
  font-style: italic;
}

#programma, #classifica{
  margin-top: 1.5em;
  padding: 2em;
  border-radius: 50px;
  background: #ffffff;
  box-shadow:  20px 20px 60px #e4e4e4,
             -20px -20px 60px #ffffff;
}

.program-row{
  display: flex;
  margin-top:0.6em;
}

.program h2, .classifica h2{
  margin-bottom: 1em;
  margin-top: 1em;
}

.program-row time, .classifica dt{
  font-size: larger;
  font-weight: bold;
  margin-right: 1em;
}

.intervento, .classifica li, .classifica dt, .classifica dd{
  margin-top:0.5em;
}

.classifica ul {
  list-style-type: none;
  margin-bottom: 2em;
}

.header {
  display: flex;
  align-items: center;
  padding-top: 1em;
  padding-bottom: 1em;
  justify-content:flex-start;
  gap: 4em;
}

.content{
  display: grid;
  grid-template-columns: 65% 35%;
}

.container {
  width: 85%;
  margin-right: auto;
  margin-left: auto;
  max-width: 1140px;
}

.subscription-form {
  padding: 40px;
  background-color: rgb(231, 230, 230);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
}

.subscription-form h1 {
  text-align: center;
  font-size: larger;
  margin-bottom: 1em;
}

.input-row input{
  border-radius: 10px;
  border: solid 2px lightgray;
  font-family: "Montserrat";
  padding: 0.4em 0.4em 0.4em 0.4em;
  font-size: medium;
  line-height: 2em;
  resize: none;
}

.input-row input:focus {
  border-color: black;
}

  #download-ics {
  margin-top: 1.5em;
  display: inline-block;
  padding: 0.8em 1.5em;
  border-radius: 10px;
  background: rgb(5, 113, 160);
  box-shadow: 6px 6px 12px #f0f0f0, -6px -6px 12px #fafafa;
  text-decoration: none;
  color: white;
  border: none;
}

#download-ics:hover {
  box-shadow: 6px 6px 12px #71b3d13b, -6px -6px 12px #fafafa;
  cursor: pointer;
  text-decoration: underline;
}

#download-ics:visited {
  background: rgba(0, 86, 120, 0.9);
}


.back-home{
  width: max-content;
  margin-top: 1.5em;
  padding: 0.8em 1.5em;
  border-radius: 10px;
  background: #ffffff;
  box-shadow:  6px 6px 12px #f0f0f0,
              -6px -6px 12px #fafafa;
}

.back-home:hover{
  box-shadow:  6px 6px 12px #71b3d13b,
             -6px -6px 12px #fafafa;
}

.back-home{
  color: rgb(5, 113, 160);
}

.back-to:link{
  color: var(--linkColor);
}

.back-to:visited{
  color: var(--visitedLinkColor);
}

.back-home:hover{
  text-decoration: underline;
}

.button {
  background-color: #0571a0;
  color: white;
  width: 40%;
  align-self: center;
  font-size: 1.1em;
  font-weight: 600;
  padding: 0.45em 1em;
  border: none;
  border-radius: 0.8em;
  font-family: "Montserrat";
}
.button:hover {
  cursor: pointer;
}

.info a{
  text-decoration: none;
}

.sr{
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.subscription-form label {
  font-weight: 600;
}

.input-row{
  display: flex;
  flex-direction: column;
}

.subscription-form .button{
  margin-top: 1em;
}

.bold{
  font-weight: bold;
}

.description{
  width: fit-content;
  height: fit-content;
  margin-top: 1.5em;
  padding: 2em;
  border-radius: 50px;
  background: #ffffff;
  box-shadow:  20px 20px 60px #e4e4e4,
             -20px -20px 60px #ffffff;
}

.description p{
  margin-top: 1.5em;
}

.content-dx{
  padding-top: 40px;
  align-items: center;
}

.illustrazione img{
  margin-top: 2.5em;
  width: 80%;
  height: auto;
}

.button-row{
  display: flex;
  flex-direction: row;
  margin-top: 1.5em;
  gap: 1em;
}

#iscriviti {
  display: inline-block; /* Convert to inline block to allow padding */
  margin-top: 1.5em;
  padding: 0.8em 1.5em;
  border-radius: 10px;
  background: rgb(5, 113, 160);
  box-shadow:  6px 6px 12px #f0f0f0,
                 -6px -6px 12px #fafafa;
  text-decoration: none; /* Remove default underline for anchor */
  color: white; /* Set text color */
}

#iscriviti:hover {
  box-shadow:  6px 6px 12px #71b3d13b,
                 -6px -6px 12px #fafafa;
  cursor: pointer; /* Add pointer on hover */
  text-decoration: underline;
}

#iscriviti:link{
  color: rgb(255, 0, 0);
}

/* Style for visited link */
#iscriviti:visited {
  background: rgba(0, 86, 120, 0.9); /* Darker background for visited link */
}

.locandina {
  display: inline-block; /* Convert to inline block to allow padding */
  margin-top: 1.5em;
  width: fit-content;
  padding: .8em;
  border-radius: 10px;
  background: #ffffff;
  box-shadow:  6px 6px 12px #f0f0f0,
                 -6px -6px 12px #fafafa;
  text-decoration: none; /* Remove default underline for anchor */
  color: rgb(5, 113, 160); /* Set text color */
}

.locandina:link{
  color: var(--linkColor);
}

.locandina:hover {
  box-shadow:  6px 6px 12px #71b3d13b,
                 -6px -6px 12px #fafafa;
  cursor: pointer; /* Add pointer on hover */
  text-decoration: underline;
}

/* Style for visited link */
.locandina:visited {
  background: rgba(255, 255, 255, 0.9);/* Maintain text color for visited link */
  font-weight: bold;
  color: var(--visitedLinkColor);
}

.content-container-home{
  display: grid;
  grid-template-columns: 70% 30%;
}

.content-container-home .illustrazione{
  text-align:right;
}

.content-container-home .error-image{
  text-align:left;
}


.sponsor{
  margin-top: 3em;
  margin-bottom: 3em;
}

.sponsor ul {
  margin-top: 1.5em;
  display: flex;
  flex-wrap: wrap;
}

.sponsor img{
  height: 46px;
  width: auto;
  margin-left: 1.0em;
  margin-right: 1.0em;
}

.sponsor li{
  list-style-type: none;
  flex: 0 0 auto;
  margin:0.5em;
}

#usablenet{
  height: 23px;
  width: auto;
  padding-top: 11px;
  padding-bottom: 11px;
}


#giuria {
  margin-top: 1.5em;
  margin-top: 1.5em;
  padding: 2em;
  border-radius: 50px;
  background: #ffffff;
  box-shadow:  20px 20px 60px #e4e4e4,
             -20px -20px 60px #ffffff;

}

.giuria p{
  margin: 1.5em 0 1.5em 0;
}

.list-members{
  line-height: 2em;
  padding: 1em;
}


.footer {
  text-align: center;
  margin-top: 1.5em;
  padding: 1em 0;
}

.success-page, .error-page{
  margin-top:1.3em;
}

.info > p[class="larger"]{
  font-size: 1.4em;
  line-height: 1.5em;
}

.error-image img{
  height: 300px;
  width: auto;
}


@media screen and (max-width: 800px) {
  .content{
    display: flex;
    flex-direction: column;
  }
  .content-container-home{
    display: flex;
    flex-direction: column;
  }

  .grid{
    display: grid;
    grid-template-columns: 24fr 24fr 24fr;
    row-gap: 1em;
  }

  .info > p[class="larger"]{
    font-size: 1em;
  }

  .back-home{
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5em;
  }

  .description{
    padding: 1em;
    border-radius: 30px;
  }

  #programma{
    padding: 1em;
    border-radius: 30px;
  }

  #giuria{
    padding: 1em;
    border-radius: 30px;
  }

  .button-row{
    flex-direction: column;
    gap: 0em;
  }

  #download-ics {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  #iscriviti{
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  #iscriviti a{
    color: white;
  }

  .locandina{
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .locandina a{
    font-weight: bold;
  }

  .illustrazione {
    display: none;
  }
}

@media screen and (max-width: 480px) {


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

  .header {
    justify-content: center;
    gap: 1em;
  }

  .header img{
    height: 35px;
  }

  h1 {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 0.3em;
  }

  h2{
    font-size: 1.2em;
  }

  .content-dx{
    padding:0;
  }

  .subscription-form{
    padding-top:24px;
  }

  .info{
    padding-top: 10px;
  }

  .grid{
    display: grid;
    grid-template-columns: 50fr 50fr;
  }

  .subscription-form .button{
    width: 100%;
  }

}
