@font-face {
  font-family: 'Mogra';
  src: url('fonts/MOGRA-REGULARE.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary-color: #002e81;
  --primary-color-hover: #0046c7;
  --primary-color-light: #98aef5;
  --secondary-color: #f7f7f7;
  --text-color: #000000;
  --sub-color: #525252;
  --red: rgb(173, 0, 0);
}

* {
  max-width: 100%;
}

body {
  margin: 0;
  font-family: 'Mogra', sans-serif;
  background-color: #f7f5f6;
  position: relative;
}

.btn-primary {
  background-color: var(--primary-color);
  padding: 15px 20px;
  border-radius: 30px;
  text-decoration: none;
  color: var(--secondary-color);
}

.btn-primary:hover {
  background-color: var(--primary-color-hover);
  font-weight: 600;
  transform: scale(1.05);
  text-decoration: none;
}

/* Navbar */
.navbar_full {
  width: 100%;
  height: 20vh;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 0;
  position: fixed;
  z-index: 1000;
  background-color: #f7f7f7;
  box-shadow: 2px 2px 10px rgba(118, 132, 255, 0.5);
}

.navbar_full::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 0;
  width: 100%;
  height: 3px;
  /* Altezza del bordo */
  background: linear-gradient(to right, var(--primary-color-light), var(--primary-color), var(--primary-color-light));
}

.nav-title {
  display: none;
}

.btn {
  display: none;
}

.no-btn {
  border: none;
  background-color: transparent;
  text-align: left;
}

/* Logo */
.logo {
  object-fit: contain;
  overflow: visible;
  height: 92%;
  width: fit-content;
  object-fit: cover;
  margin-left: 1%;
}

.logo a img {
  width: auto;
  height: 100%;
}


/* Top Bar */
.top-bar {
  overflow: visible;
  font-size: 2.3vw;
  font-weight: 700;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-around;
  margin: 0;
  align-items: center;
  justify-content: right;
}

/* Elementi della Top Bar */
.top-bar-element {
  overflow-x: visible;
  height: 4vw;
  padding: 0.5vw 1vw;
  margin: 0 1vw;
  border-radius: 15px;
  text-decoration: none;
  display: flex;
  cursor: pointer;
  align-content: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
  color: var(--primary-color);
}

/* Stati generici */
.top-bar-element:link,
.top-bar-element:visited {
  text-decoration: none;
  color: var(--primary-color);
}

.top-bar-element:hover {
  color: #f7f5f6;
  background-color: var(--primary-color);
}

/* Log top bar */
.log {
  align-items: center;
}

.log ul {
  margin: 0;
  width: fit-content;
  list-style: none;
}

.log-text {
  font-size: 1.55vw;
  font-weight: 600;
  color: var(--text-color);
  margin: 5px 10px 5px 0;
  text-align: right;
}

.log-text a {
  color: var(--sub-color);
  text-decoration: none;
}

.log-text a:hover {
  color: var(--primary-color-hover);
}

/* Login */
.login-container {
  width: 65%;
  height: 50%;
  margin: 2em auto;
  padding: 2em;
  background: var(--secondary-color);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
  text-align: center;
  height: auto;
  overflow: visible;
}

.form-group {
  margin-bottom: 1em;
}

label {
  display: block;
  margin-bottom: 0.3em;
}

input {
  width: 100%;
  padding: 0.5em;
}

button {
  width: 100%;
  padding: 0.7em;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
}

.error {
  color: red;
  font-weight: bold;
  margin-bottom: 1em;
}

/* header */

.header-content {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/header.png');
  background-size: cover;
  background-position: center;
  position: relative;
}

.header-content h1 {
  font-size: 8em;
  color: var(--secondary-color);
  margin-bottom: 0.5em;
  overflow: visible;
}

.header-content p {
  font-size: 3em;
  color: var(--secondary-color);
  margin-bottom: 1.5em;
}

.header-content a {
  font-size: 2em;
}

/* section */
.section {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 2em 2em;
  position: relative;
}

.section-title h2 {
  font-size: 2vw;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 0.5em;
}

.section-title p {
  font-size: 1vw;
  color: var(--sub-color);
  text-align: center;
  margin-bottom: 1vw;
}

/* Eventi */

.eventi {
  height: fit-content;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  padding: 2em 0;
}

.evento-container {
  width: 20vw;
  height: 28vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1em;
  text-align: center;
  overflow: visible;
  perspective: 1000px;
  position: relative;
}

.attivo {
  opacity: 1;
}

.scaduto {
  opacity: 0.5;
}

#scaduto {
  font-size: 1.5vw;
  color: var(--red);
}

.evento-inner {
  width: 100%;
  height: 100%;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  border-radius: 15px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.evento-container:hover .evento-inner {
  transform: rotateY(180deg);
}

.evento-front,
.evento-back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  border-radius: 15px;
}

.evento-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

}

.evento-front img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 15px;
}

.evento-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1vw;
}

.evento-back h3 {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 0.5em;
  overflow: visible;
}

.evento-back p {
  font-size: 1em;
  color: var(--text-color);
  margin-bottom: 0.5em;
  overflow: visible;
}

#time {
  color: var(--sub-color);
  font-size: large;
}

#place {
  color: var(--sub-color);
  font-size: large;
}

/* Storia */

.storia {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2em 0;
}

.storia-blocco {
  width: 80%;
  height: 50vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: left;
  box-shadow: 2px 2px 10px var(--primary-color);
  margin: 2em 0;
  align-self: center;
  border-radius: 5px;
}

.blocco-testo {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 10px var(--sub-color);
}

.blocco-data {
  width: 30%;
  height: auto;
  display: flex;
  box-shadow: 0 0 10px var(--primary-color-light);
  align-self: center;
  align-items: center;
  justify-content: center;
  font-size: 3vw;
  color: var(--primary-color-hover);
  margin-bottom: 0.8vw;
  border-radius: 50px;
  padding: 0px 1vw;
}

.blocco-data p {
  margin-top: 1.2vw;
}

.blocco-descrizione {
  width: 80%;
  height: fit-content;
  text-align: center;
}

.blocco-descrizione h3 {
  color: var(--text-color);
  font-size: 1.8vw;
  margin-bottom: 1vw;
}

.blocco-descrizione p {
  font-size: 1vw;
}

.storia-img {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 2em 2em;
}

.storia-img img {
  border: 4px ridge black;
  width: 92%;
  height: 95%;
  object-fit: cover;
}


/* Unisciti */

.unisciti {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: row;
  align-items: left;
  justify-content: space-between;
  padding: 2vw 2vw;
}

.unisciti-text {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: left;
  justify-content: center;
  padding: 2em 0;
}

.unisciti-text h3 {
  text-align: center;
  font-size: 3em;
  color: var(--text-color);
  margin-bottom: 0.5em;
  overflow: visible;
}

#new {
  color: var(--sub-color);
  text-align: center;
}

.unisciti-text p {
  font-size: 1.5em;
  color: var(--text-color);
  margin-bottom: 0.5em;
  overflow: visible;
}

.unisciti-text ul {
  font-size: 1.3em;
  color: var(--);
  margin-bottom: 1.5em;
  overflow: visible;
}

.unisciti-img {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.unisciti-img img {
  height: auto;
  width: 80%;
  overflow: hidden;
  border-radius: 15px;
  object-fit: contain;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

#btn-unisciti {
  margin-top: 1.5em;
  width: fit-content;
  align-self: center;
}

/* Corsi */

.corsi {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  padding: 2em 0;
}

.corso-card {
  width: 25em;
  height: 38em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1vw;
  text-align: center;
  overflow: visible;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  background-color: var(--secondary-color);
  border-radius: 15px;
}

.corsi:hover .corso-card:not(:hover) {
  filter: blur(5px);
}

.corso-card:hover {
  filter: none;
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.corso-img {
  width: fit-content;
  height: 50%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
}

.corso-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.corso-card h3 {
  height: 8%;
  font-size: 2em;
  color: var(--primary-color);
  overflow: visible;
  padding-top: 0.5vw;
}

.corso-info {
  height: 27%;
}

.corso-tempo {
  height: 15%;
  font-size: 1em;
  color: var(--primary-color-hover);
  overflow: visible;
}

/* Contatti */

.contatti {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2em 0;
}

.contatti-container {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  justify-content: left;
  margin-top: 2em;
  align-self: center;
}

.contatti-info {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: left;
}

.contatti-info h3 {
  font-size: 2.5em;
  color: var(--text-color);
  margin-bottom: 0.5em;
  overflow: visible;
}

.info-item {
  font-size: 1.3em;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: left;
  overflow: visible;
  margin-bottom: 0.5em;
}

.info-item p {
  margin: 0 0.5em;
}

.social {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: left;
}

.social a {
  margin: 1em 1em;
  font-size: 2em;
  width: 2em;
  height: 2em;
  text-align: center;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
}

.social a i {
  margin-top: 0.45em;
}

.social a:hover {
  color: var(--secondary-color);
  background-color: var(--primary-color-hover);
  transform: scale(1.1);
  border-color: var(--primary-color-hover);
}

.map {
  width: 90%;
  height: 30vh;
  box-shadow: 0px 0px 10px var(--sub-color);
}

.contatti-form {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2em 0;
}

.contatti-form h3 {
  font-size: 2.5em;
  color: var(--text-color);
  margin-bottom: 0.5em;
  overflow: visible;
}

#contatto {
  width: 80%;
  margin-bottom: 1em;
}

.form-group label {
  display: block;
  margin-bottom: 0.3em;
  font-size: 1.3em;
}

.form-group input {
  height: 2vw;
}

textarea {
  width: 100%;
  height: auto;
  padding: 0.5em;
  border-radius: 5px;
  border: 1px solid var(--sub-color);
  margin-bottom: 1em;
}

/* Footer */

.footer {
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 2em 0;
}

.footer-content {
  width: 90%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  width: 30%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-logo img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  margin-bottom: 1em;
}

.footer-links {
  width: 70%;
  height: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.footer-links h3 {
  font-size: 2.5em;
  color: var(--secondary-color);
  margin-bottom: 0.5em;
  overflow: visible;
}

.footer-links ul {
  list-style: none;
  padding: 1em;
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
}

.footer-links li {
  font-size: 1.5em;
  margin: 0 1.5em;
  text-align: center;
}

.footer-links li a {
  color: var(--primary-color-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links li a:hover {
  color: var(--secondary-color);
  transform: scale(1.1);
}

.footer-bottom {
  font-size: 1vw;
}

/***** Media Query per Large Desktop (min-width: 1440px) *****/
@media (min-width: 1440px) {


  /* Navbar */
  .navbar_full {
    height: 15vh;
  }

  .nav-title {
    display: none;
  }


  /* Logo */
  .logo {
    margin-left: 1%;
  }


  /* header */

  .header-content h1 {
    font-size: 6vw;
  }

  /* section */

  .section-title h2 {
    font-size: 2.5vw;
  }

  .section-title p {
    font-size: 1.5vw;
  }

  /* Eventi */

  .evento-back h3 {
    font-size: 2.1vw;
    margin-bottom: 0.3vw;
  }

  .evento-back p {
    font-size: 0.8vw;
    margin-bottom: 0.3vw;
  }

  #time {
    font-size: 1vw;
  }

  #place {
    font-size: 1vw;
  }

  /* Unisciti */

  .unisciti-text h3 {
    font-size: 2.5vw;
  }

  .unisciti-text p {
    font-size: 1.2vw;
  }

  .unisciti-text ul {
    font-size: 1.1vw;
  }

  #btn-unisciti {
    margin: 1vw;
    font-size: 1vw;
  }

  /* Corsi */

  .corso-card {
    width: 22vw;
    height: 34vw;
  }

  .corso-card h3 {
    font-size: 2vw;
  }

  .corso-info {
    font-size: 1vw;
  }

  .corso-tempo {
    font-size: 1vw;
  }

  /* Contatti */

  .contatti-info h3 {
    font-size: 2.5vw;
  }

  .info-item {
    font-size: 1vw;
  }

  .social a {
    margin: 1vw 1vw;
    font-size: 1.5vw;
    width: 3vw;
    height: 3vw;
  }

  .social a i {
    margin-top: 0.65vw;
  }

  .contatti-form h3 {
    font-size: 2.5vw;
    margin-bottom: 1vw;
  }

  .form-group label {
    margin-bottom: 0.3vw;
    font-size: 1.3vw;
  }

  textarea {
    padding: 0.5vw;
    margin-bottom: 1vw;
  }

  /* Footer */

  .footer {
    padding: 2vw 0;
  }

  .footer-logo img {
    margin-bottom: 1vw;
  }

  .footer-links h3 {
    font-size: 2.5vw;
    margin-bottom: 1vw;
  }

  .footer-links ul {
    padding: 1vw;
  }

  .footer-links li {
    font-size: 1.5vw;
    margin: 0 1.2vw;
  }
}

/***** Media Query per Desktop (min-width: 1024px) *****/
@media (min-width: 1024px) and (max-width: 1439px) {

  /* Navbar */
  .navbar_full {
    height: 12vh;
  }


  /* Logo */
  .logo {
    margin-left: 1%;
  }

  .nav-title {
    display: none;
  }


  /* header */

  .header-content h1 {
    font-size: 6vw;
  }

  .header-content p {
    font-size: 2.5vw;
  }

  .header-content a {
    font-size: 1.8vw;
  }

  /* section */

  .section-title h2 {
    font-size: 3vw;
  }

  .section-title p {
    font-size: 2vw;
  }

  /* Eventi */

  .evento-container {
    width: 22vw;
    height: 32vw;
  }

  #scaduto {
    font-size: 2vw;
  }

  .evento-back h3 {
    font-size: 2.5vw;
    margin-bottom: 0.3vw;
  }

  .evento-back p {
    font-size: 1vw;
    margin-bottom: 0.3vw;
  }

  #time {
    font-size: 1.3vw;
  }

  #place {
    font-size: 1.3vw;
  }

  /* Unisciti */

  .unisciti-text h3 {
    font-size: 3.5vw;
  }

  .unisciti-text p {
    font-size: 2vw;
  }

  .unisciti-text ul {
    font-size: 1.5vw;
  }

  #btn-unisciti {
    margin: 1vw;
    font-size: 2vw;
  }

  /* Corsi */

  .corso-card {
    width: 28vw;
    height: 45vw;
  }

  .corso-card h3 {
    font-size: 2.2vw;
  }

  .corso-info {
    font-size: 1.2vw;
  }

  .corso-tempo {
    font-size: 1.2vw;
  }

  /* Contatti */

  .contatti-info h3 {
    font-size: 3vw;
  }

  .info-item {
    font-size: 1.5vw;
  }

  .social a {
    margin: 1vw 1vw;
    font-size: 2.5vw;
    width: 5vw;
    height: 5vw;
  }

  .social a i {
    margin-top: 1vw;
  }

  .contatti-form h3 {
    font-size: 2.6vw;
    margin-bottom: 1vw;
  }

  .form-group label {
    margin-bottom: 0.3vw;
    font-size: 1.5vw;
  }

  textarea {
    padding: 0.5vw;
    margin-bottom: 1vw;
  }

  .form-group input {
    height: 3vw;
  }

  #contatto button {
    padding: 1vw 0;
    font-size: 2vw;
  }

  /* Footer */

  .footer {
    padding: 2vw 0;
  }

  .footer-logo img {
    margin-bottom: 1vw;
  }

  .footer-links h3 {
    font-size: 3vw;
    margin-bottom: 1vw;
  }

  .footer-links ul {
    padding: 1vw;
  }

  .footer-links li {
    font-size: 2vw;
    margin: 0 1.2vw;
  }
}

/***** Media Query per Tablet (min-width: 768px e max-width: 899px) *****/
@media (min-width: 769px) and (max-width: 1023px) {


  /* Navbar */
  .navbar_full {
    height: 15vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Logo */


  /* Top Bar */
  .btn {
    display: block;
    text-align: right;
    width: 14vw;
    height: 14vw;
  }

  .btn button {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 6vw;
    border: none;
    padding: 0;
  }

  .offcanvas-body p a {
    text-decoration: none;
    font-size: 5vw;
  }

  a {
    text-decoration: none;
  }

  .top-bar {
    display: none;
  }

  .nav-title {
    font-size: 5.5vw;
    font-weight: 500;
    color: var(--primary-color);
    margin-left: 5vw;
    display: block;
  }


  /* header */

  .header-content h1 {
    font-size: 12vw;
  }

  .header-content p {
    font-size: 6vw;
    padding: 0 10vw;
  }

  .header-content a {
    font-size: 7vw;
  }

  /* section */

  .section-title h2 {
    font-size: 6vw;
  }

  .section-title p {
    font-size: 4vw;
  }

  /* Eventi */

  .evento-container {
    width: 40vw;
    height: 57vw;
  }

  .evento-back h3 {
    font-size: 3vw;
    margin-bottom: 0.3vw;
  }

  .evento-back p {
    font-size: 2vw;
    margin-bottom: 0.3vw;
  }

  #time {
    font-size: 2vw;
  }

  #place {
    font-size: 2vw;
  }

  #scaduto {
    font-size: 3vw;
  }

  /* Unisciti */

  .unisciti {
    flex-direction: column;
  }

  .unisciti-text {
    width: 100%;
  }

  .unisciti-img {
    width: 100%;
  }

  .unisciti-text {
    text-align: center;
  }

  .unisciti-text h3 {
    font-size: 4vw;
  }

  .unisciti-text p {
    font-size: 3vw;
  }

  .unisciti-text ul {
    font-size: 2.5vw;
    list-style: none;
    padding: 0;
  }

  #btn-unisciti {
    margin: 2vw;
    font-size: 4vw;
  }

  /* Corsi */

  .corso-card {
    width: 80vw;
    height: 110vw;
    margin: 1.5vw;
    padding: 5vw;
  }

  .corso-card h3 {
    font-size: 6vw;
    margin: 1vw 0;
  }

  .corso-info {
    font-size: 3vw;
  }

  .corso-tempo {
    font-size: 3vw;
  }

  /* Contatti */

  .contatti-info {
    width: 100%;
    text-align: center;
  }

  .contatti-form {
    width: 100%;
  }

  .contatti-info h3 {
    font-size: 5vw;
    margin-bottom: 5vw;
  }

  .info-item {
    width: 100%;
    justify-content: center;
    font-size: 3.3vw;
    margin-bottom: 2vw;
  }

  .social {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .social a {
    margin: 5vw 1vw;
    font-size: 7vw;
    width: 14vw;
    height: 14vw;
  }

  .social a i {
    margin-top: 3.25vw;
  }

  .map {
    width: 100%;
    margin-top: 5vw;
    height: 50vw
  }

  .contatti-form h3 {
    font-size: 5vw;
    margin-bottom: 1vw;
  }

  .form-group label {
    margin-bottom: 0.3vw;
    font-size: 4vw;
  }

  .form-group input {
    height: 5.5vw;
  }

  textarea {
    padding: 1vw;
    margin-bottom: 1vw;
  }

  #contatto button {
    padding: 1vw 0;
    font-size: 5vw;
  }

  /* Footer */

  .footer-logo p {
    font-size: 4vw;
  }

  .footer {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 2vw 0;
  }

  .footer-content {
    width: 80%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-logo {
    width: 40%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .footer-logo img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    margin-bottom: 2vw;
  }

  .footer-links {
    width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }

  .footer-links h3 {
    font-size: 5.5vw;
    color: var(--secondary-color);
    margin: 2vw 0;
    overflow: visible;
    text-align: center;
  }

  .footer-links ul {
    list-style: none;
    padding: 2vw;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-links li {
    font-size: 4.5vw;
    margin: 0 2vw;
    text-align: center;
  }

  .footer-links li a {
    color: var(--primary-color-light);
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .footer-links li a:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
  }

  .footer-bottom {
    font-size: 2vw;
    margin-top: 2vw;
  }

  /* Storia */

  .storia-blocco {
    width: 98%;
    height: 90vh;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 10px var(--primary-color);
    margin: 2em 0;
    align-self: center;
    border-radius: 5px;
  }

  .blocco-testo {
    width: 100%;
    height: 45vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 10px var(--sub-color);
  }

  .blocco-data {
    width: 30%;
    height: auto;
    display: flex;
    box-shadow: 0 0 10px var(--primary-color-light);
    align-self: center;
    align-items: center;
    justify-content: center;
    font-size: 6vw;
    color: var(--primary-color-hover);
    margin-bottom: 1.5vw;
    border-radius: 50px;
    padding: 0;
  }

  .blocco-data p {
    margin: 0;
    padding-top: 0.5vw;
  }

  .blocco-descrizione {
    width: 80%;
    height: fit-content;
    text-align: center;
  }

  .blocco-descrizione h3 {
    color: var(--text-color);
    font-size: 5vw;
    margin-bottom: 1vw;
  }

  .blocco-descrizione p {
    font-size: 3vw;
  }

  .storia-img {
    width: 100%;
    height: 45vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

  }

}

/***** Media Query per Mobile (max-width: 767px) *****/
@media (max-width: 768px) {

  /* Navbar */
  .navbar_full {
    height: 15vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Logo */


  /* Top Bar */
  .btn {
    display: block;
    text-align: right;
    width: 14vw;
    height: 14vw;
  }

  .btn button {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 6vw;
    border: none;
    padding: 0;
  }

  .offcanvas-body ul li {
    text-decoration: none;
    font-size: 6vw;
  }

  .offcanvas-body p button a {
    text-decoration: none;
    font-size: 8vw;
  }

  a {
    text-decoration: none;
  }

  .top-bar {
    display: none;
  }

  .nav-title {
    font-size: 5.5vw;
    font-weight: 500;
    color: var(--primary-color);
    margin-left: 5vw;
    display: block;
  }

  /* header */

  .header-content h1 {
    font-size: 12vw;
  }

  .header-content p {
    font-size: 6vw;
    padding: 0 10vw;
  }

  .header-content a {
    font-size: 5vw;
  }

  /* section */

  .section-title h2 {
    font-size: 7vw;
  }

  .section-title p {
    font-size: 4vw;
  }

  /* Eventi */

  .evento-container {
    width: 70vw;
    height: 98vw;
  }

  .evento-back h3 {
    font-size: 5vw;
    margin-bottom: 0.3vw;
  }

  .evento-back p {
    font-size: 3vw;
    margin-bottom: 0.3vw;
  }

  #time {
    font-size: 4vw;
  }

  #place {
    font-size: 4vw;
  }

  #scaduto {
    font-size: 5vw;
  }

  /* Unisciti */

  .unisciti {
    flex-direction: column;
  }

  .unisciti-text {
    width: 100%;
  }

  .unisciti-img {
    width: 100%;
  }

  .unisciti-text {
    text-align: center;
  }

  .unisciti-text h3 {
    font-size: 6vw;
  }

  .unisciti-text p {
    font-size: 4vw;
  }

  .unisciti-text ul {
    font-size: 3.5vw;
    list-style: none;
    padding: 0;
  }

  #btn-unisciti {
    margin: 2vw;
    font-size: 4vw;
  }

  /* Corsi */

  .corso-card {
    width: 80vw;
    height: 110vw;
    margin: 1.5vw;
    padding: 5vw;
  }

  .corso-card h3 {
    font-size: 6vw;
    margin: 1vw 0;
  }

  .corso-info {
    font-size: 3vw;
  }

  .corso-tempo {
    font-size: 3vw;
  }

  /* Contatti */

  .contatti-info {
    width: 100%;
    text-align: center;
  }

  .contatti-form {
    width: 100%;
  }

  .contatti-info h3 {
    font-size: 5vw;
    margin-bottom: 5vw;
  }

  .info-item {
    width: 100%;
    justify-content: center;
    font-size: 3.3vw;
    margin-bottom: 2vw;
  }

  .social {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .social a {
    margin: 5vw 1vw;
    font-size: 7vw;
    width: 14vw;
    height: 14vw;
  }

  .social a i {
    margin-top: 3.25vw;
  }

  .map {
    width: 100%;
    margin-top: 5vw;
    height: 50vw
  }

  .contatti-form h3 {
    font-size: 5vw;
    margin-bottom: 1vw;
  }

  .form-group label {
    margin-bottom: 0.3vw;
    font-size: 4vw;
  }

  .form-group input {
    height: 5.5vw;
  }

  textarea {
    padding: 1vw;
    margin-bottom: 1vw;
  }

  #contatto button {
    padding: 1vw 0;
    font-size: 5vw;
  }

  /* Footer */

  .footer-logo p {
    font-size: 4vw;
  }

  .footer {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 2vw 0;
  }

  .footer-content {
    width: 80%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-logo {
    width: 40%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .footer-logo img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    margin-bottom: 2vw;
  }

  .footer-links {
    width: 60%;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }

  .footer-links h3 {
    font-size: 5.5vw;
    color: var(--secondary-color);
    margin: 2vw 0;
    overflow: visible;
    text-align: center;
  }

  .footer-links ul {
    list-style: none;
    padding: 2vw;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-links li {
    font-size: 4.5vw;
    margin: 0 2vw;
    text-align: center;
  }

  .footer-links li a {
    color: var(--primary-color-light);
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .footer-links li a:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
  }

  .footer-bottom {
    font-size: 2vw;
    margin-top: 2vw;
  }

  /* Storia */

  .storia-blocco {
    width: 98%;
    height: 90vh;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 10px var(--primary-color);
    margin: 2em 0;
    align-self: center;
    border-radius: 5px;
  }

  .blocco-testo {
    width: 100%;
    height: 45vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 10px var(--sub-color);
  }

  .blocco-data {
    width: 30%;
    height: auto;
    display: flex;
    box-shadow: 0 0 10px var(--primary-color-light);
    align-self: center;
    align-items: center;
    justify-content: center;
    font-size: 6vw;
    color: var(--primary-color-hover);
    margin-bottom: 1.5vw;
    border-radius: 50px;
    padding: 0;
  }

  .blocco-data p {
    margin: 0;
    padding-top: 0.5vw;
  }

  .blocco-descrizione {
    width: 80%;
    height: fit-content;
    text-align: center;
  }

  .blocco-descrizione h3 {
    color: var(--text-color);
    font-size: 5vw;
    margin-bottom: 1vw;
  }

  .blocco-descrizione p {
    font-size: 3vw;
  }

  .storia-img {
    width: 100%;
    height: 45vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

  }


}