:root {
    --primary: #ddf23d; /* Giallo */
    --primary-light: #e4f2ae; /* Giallo chiaro */
    --secondary: #4f3e8c; /* Viola */
    --secondary-light: #9177f2; /* Viola chiaro */
    --dark: #0d0d0d; /* nero */
    --green: #595959; /* grigio scuro */
    --accent: #bfbfbf; /* grigio chiaro */
    --light: #F2F2F2; /* bianco */
}

/* Variabili CSS per Dark Mode */
:root.dark-mode {
    --primary: #9177f2;/* Giallo rimane stesso */
    --primary-light:#4f3e8c; /* Giallo chiaro rimane stesso */
    --secondary: #ddf23d;  /* Viola chiaro diventa principale */
    --secondary-light:#e4f2ae; /* Viola scuro diventa chiaro */
    --dark: #F2F2F2; /* bianco diventa testo */
    --green: #bfbfbf; /* grigio chiaro diventa testo secondario */
    --accent: #595959; /* grigio scuro diventa accent */
    --light: #0d0d0d; /* nero diventa sfondo */
}


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


/* Stile Generale */
body {
    margin: 0;
    padding: 0;
    font-family:'Work Sans';
    background-color:var(--light)
}

h1 {
    font-size: 62px;
    font-weight: 600;
    font-family: 'Funnel Display';
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: -2px;
    line-height: 1.2;
    /* padding: 20px 0px; */
    padding-bottom: 20px;
    /* opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
   */
}


h2 {
    font-family: 'Funnel Display';
    font-size: 36px;
    font-weight: 600;
    color: var(--secondary);
}

h3, h4, h5, h6 {
    font-family: 'Space Grotesk';
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    
}

p {
    font-family: 'Work Sans';
    font-size: 16px;
    color: var(--dark);
    
}

html {
    scroll-behavior: smooth;
  }


a {
  font-size: 30px;
  color: var(--light);
  cursor: crosshair;
}

a:hover{
  color: var(--dark);
  cursor: crosshair;
}

.scramble {
  font-family: monospace;
  cursor: pointer;
  display: inline-block;
  position: relative;
  cursor: crosshair;
}
.container {
  max-width: 1920px;
}

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
}

.preloader-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

#start-button {
  position: absolute;
  bottom: 10%;
  right: 5%;
  z-index: 10;
  display: none;
}

.preloader-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}



/* Navbar */

.navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 30px 20px;
    height: 50px;
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
    z-index: 1000;
    
}

.navbar-left {
    justify-self: start;
}

.navbar-center {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 10px;
   
}

.navbar-right {
    justify-self: end;
}



/* Logo */
.logo-toggle {
    position: fixed;
    top: 38px;
    right: 20px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 1001; /* Aumentato! */
    transition: all 0.3s ease;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    /* NUOVE REGOLE: */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.logo-toggle:hover {
    filter: invert(100%);
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px;
    /* NUOVE REGOLE: */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.logo-image.rotating {
    transform: rotate(360deg);
    transform: scale(1.1);
}

/* Stati del logo per dark/light mode */
:root .logo-image {
    content: url('../img/logo-light.png');
}

:root.dark-mode .logo-image {
    content: url('../img/logo-dark.png');
}

/* MEDIA QUERIES PER MOBILE */
@media (max-width: 768px) {
    .logo-toggle {
        top: 30px;
        right: 15px;
        width: 50px;
        height: 50px;
        z-index: 1002;
    }
}

@media (max-width: 600px) {
    .logo-toggle {
        top: 25px;
        right: 15px;
        width: 45px;
        height: 45px;
        z-index: 1003;
    }
}

@media (max-width: 480px) {
    .logo-toggle {
        top: 20px;
        right: 10px;
        width: 40px;
        height: 40px;
        z-index: 1004;
    }
}
/* Menu Base */
.menu {
    list-style: none;
    padding: 0;
}

.menu li {
    display: inline;
    padding: 10px;
}

.menu a {
 
    font-family: 'Funnel Display';
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
  
    
}

.menu a:hover {
    color: var(--secondary);
}


@media (min-width: 1024px) {

  
    .hb {
        display: none;
    }

    .menu {
        position: static;
        background: transparent;
        height: auto;
        width: auto;
        opacity: 1;
        overflow: visible;
        z-index: 1;
    }

    .menu__title {
        display: none;
    }

    .menu__items {
        padding-top: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        gap: 5px;
    }

    .menu__items a {
        font-size: 20px;
        color: var(--secondary);
        opacity: 1;
        transition: ease 0.3s;
    }

    .menu__items a:hover {
        color: var(--primary);
        transition: ease 0.3s;
    }
}


@media (max-width: 1023px) {
    .hb {
        justify-self: end;
        z-index: 3;
    }

    .icon-hb {
        cursor: pointer;
        width: 2em;
        height: 1.5em;
        transform: rotate(0);
        transition: ease 0.5s;
        z-index: 2;
        position: relative;
    }

    .open .icon-hb {
        transform: rotate(180deg);
        transition: ease 0.5s;
    }

    .icon-hb span {
        display: block;
        position: absolute;
        left: 0;
        height: 4px;
        width: 100%;
        background: var(--primary);
        transition: ease 0.5s;
    }

    .icon-hb span:nth-child(1) {
        top: 0;
        transition: ease 0.5s;
    }

    .icon-hb span:nth-child(2) {
        top: 10px;
        transition: ease 0.5s;
    }

    .icon-hb span:nth-child(3) {
        top: 10px;
        transition: ease 0.5s;
    }

    .icon-hb span:nth-child(4) {
        top: 20px;
        transition: ease 0.5s;
        display: block;
    }

    .open .icon-hb span:nth-child(1) {
        top: 0;
        width: 0%;
        transition: ease 0.5s;
    }

    .open .icon-hb span:nth-child(2) {
        top: 10px;
        transform: rotate(45deg);
        transition: ease 0.5s;
    }

    .open .icon-hb span:nth-child(3) {
        top: 10px;
        transform: rotate(-45deg);
        transition: ease 0.5s;
    }

    .open .icon-hb span:nth-child(4) {
        top: 20px;
        width: 0%;
        transition: ease 0.5s;
    }

    /* Menu mobile */
    .menu {
        position: fixed;
        top: -100%;
        left: 0;
        height: 100%;
        width: 100%;
        background: var(--dark);
        z-index: 2;
        opacity: 1;
        transition: ease 0.5s;
        overflow-y: hidden;
        overflow-x: hidden;
    }

    .menu__title {
        display: block;
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 3;
        font-family: 'Work Sans';
        font-weight: 600;
        color: var(--light);
    }

    

    .menu__items {
        padding-top: 150px;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: ease 0.5s;
        gap: 20px;
    }

    .menu__items a {
        font-family: 'Work Sans';
        font-size: 32px;
        opacity: 0;
        transition: ease 0.5s;
        color: var(--light);
    }

    .menu__items a:hover {
        color: var(--secondary);
    }

    .open .menu__items a {
        transition: ease 0.5s;
        opacity: 1;
    }

    .open .menu {
        top: 0;
    }

    .open .icon-hb span {
        background:var(--light);
    }
}


/* Bottone Sound */

.btn-sound {
   position: relative;
   height: 30px;
   padding: 0 30px;
   border: 2px solid var(--dark);
   background: var(--light);
   user-select: none;
   white-space: nowrap;
   transition: all .05s linear;
   font-family: inherit;
   font-size: 20px;
   z-index: 3;
   font-weight: 600;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   text-decoration: none;
   color: var(--dark);
   text-transform: uppercase;
}

.btn-sound:before, .btn-sound:after {
   content: "";
   position: absolute;
   background: var(--light);
   transition: all .2s linear;
   z-index: -1;
}

.btn-sound:before {
   width: calc(100% + 6px);
   height: calc(100% - 16px);
   top: 8px;
   left: -3px;
   
}

.btn-sound:after {
   width: calc(100% - 16px);
   height: calc(100% + 6px);
   top: -3px;
   left: 8px;
}

.btn-sound:hover {
   cursor: crosshair;
   transform: scale(1.05);
}

.btn-sound:active {
   transform: scale(0.95);
}

.btn-sound:hover:before {
   height: calc(100% - 32px);
   top: 16px;
}

.btn-sound:hover:after {
   width: calc(100% - 32px);
   left: 16px;
}

.btn-sound:active {
 transform: scale(0.95);
}

.btn-sound:hover:before {
 height: calc(100% - 32px);
 top: 16px;
}

.btn-sound:hover:after {
 width: calc(100% - 32px);
 left: 16px;
}

.btn-sound {
 font-family:'Space Grotesk' ;
 font-size: 14px;
 z-index: 3;
 position: relative;
 font-weight: 600;
}



/* Bottone numero 1 */

.btn-primary {
   position: relative;
   height: 40px;
   padding: 0 30px;
   border: 2px solid var(--dark);
   background: var(--light);
   user-select: none;
   white-space: nowrap;
   transition: all .05s linear;
   font-family: inherit;
   z-index: 3;
   font-weight: 600;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   text-decoration: none;
   color: var(--dark);
}

.btn-primary:before, .btn-primary:after {
   content: "";
   position: absolute;
   background: var(--light);
   transition: all .2s linear;
   z-index: -1;
}

.btn-primary:before {
   width: calc(100% + 6px);
   height: calc(100% - 16px);
   top: 8px;
   left: -3px;
}

.btn-primary:after {
   width: calc(100% - 16px);
   height: calc(100% + 6px);
   top: -3px;
   left: 8px;
}

.btn-primary:hover {
   cursor: crosshair;
   transform: scale(1.05);
}

.btn-primary:active {
   transform: scale(0.95);
}

.btn-primary:hover:before {
   height: calc(100% - 32px);
   top: 16px;
}

.btn-primary:hover:after {
   width: calc(100% - 32px);
   left: 16px;
}

.btn-primary:active {
 transform: scale(0.95);
}

.btn-primary:hover:before {
 height: calc(100% - 32px);
 top: 16px;
}

.btn-primary:hover:after {
 width: calc(100% - 32px);
 left: 16px;
}

.btn-primary {
 font-family:'Space Grotesk' ;
 font-size: 16px;
 z-index: 3;
 position: relative;
 font-weight: 600;
}


/* Bottone numero 2 */

.btn-secondary {
   position: relative;
   height: 40px;
   padding: 0 30px;
   border: 2px solid var(--secondary);
   background: var(--primary);
   user-select: none;
   white-space: nowrap;
   transition: all .05s linear;
   font-family: inherit;
   z-index: 3;
   font-weight: 600;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   text-decoration: none;
   color: var(--dark);
}

.btn-secondary:before, .btn-secondary:after {
   content: "";
   position: absolute;
   background: var(--primary);
   transition: all .2s linear;
   z-index: -1;
}

.btn-secondary:before {
   width: calc(100% + 6px);
   height: calc(100% - 16px);
   top: 8px;
   left: -3px;
}

.btn-secondary:after {
   width: calc(100% - 16px);
   height: calc(100% + 6px);
   top: -3px;
   left: 8px;
}

.btn-secondary:hover {
   cursor: crosshair;
   transform: scale(1.05);
}

.btn-secondary:active {
   transform: scale(0.95);
}

.btn-secondary:hover:before {
   height: calc(100% - 32px);
   top: 16px;
}

.btn-secondary:hover:after {
   width: calc(100% - 32px);
   left: 16px;
}

.btn-secondary:active {
 transform: scale(0.95);
}

.btn-secondary:hover:before {
 height: calc(100% - 32px);
 top: 16px;
}

.btn-secondary:hover:after {
 width: calc(100% - 32px);
 left: 16px;
}

.btn-secondary {
 color: var(--secondary);
 font-family:'Space Grotesk' ;
 font-size: 16px;
 z-index: 3;
 position: relative;
 font-weight: 600;
}


 
/* Bottone numero 3 */

.btn-tertiary {
   position: relative;
   height: 40px;
   padding: 0 30px;
   border: 2px solid var(--primary);
   background: var(--secondary);
   user-select: none;
   white-space: nowrap;
   transition: all .05s linear;
   font-family: inherit;
   z-index: 3;
   font-weight: 600;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   text-decoration: none;
   color: var(--dark);
}

.btn-tertiary:before, .btn-tertiary:after {
   content: "";
   position: absolute;
   background: var(--secondary);
   transition: all .2s linear;
   z-index: -1;
}

.btn-tertiary:before {
   width: calc(100% + 6px);
   height: calc(100% - 16px);
   top: 8px;
   left: -3px;
}

.btn-tertiary:after {
   width: calc(100% - 16px);
   height: calc(100% + 6px);
   top: -3px;
   left: 8px;
}

.btn-tertiary:hover {
   cursor: crosshair;
   transform: scale(1.05);
}

.btn-tertiary:active {
   transform: scale(0.95);
}

.btn-tertiary:hover:before {
   height: calc(100% - 32px);
   top: 16px;
}

.btn-tertiary:hover:after {
   width: calc(100% - 32px);
   left: 16px;
}

.btn-tertiary:active {
 transform: scale(0.95);
}

.btn-tertiary:hover:before {
 height: calc(100% - 32px);
 top: 16px;
}

.btn-tertiary:hover:after {
 width: calc(100% - 32px);
 left: 16px;
}

.btn-tertiary {
 font-family:'Space Grotesk';
 color: var(--light);
 font-size: 16px;
 z-index: 3;
 position: relative;
 font-weight: 600;
}




 @media (max-width: 1115px) {
    .btn-primary, .btn-secondary, .btn-tertiary {
      font-size: 14px;
      padding: 10px 16px;
    }
 }

  @media (max-width: 700px) {
    .btn-primary, .btn-secondary, .btn-tertiary {
      padding: 0px 20px;
      font-size: 14px;
  
   
    }
  }

    @media (max-width: 600px) {
    .btn-primary, .btn-secondary, .btn-tertiary, .btn-sound {
      height: 30px;
      padding: 0px 10px;
      font-size: 12px;
  
   
    }
  }

/* PAGINA INDEX */

/* Hero - HOME */

.hero-section {
    width: 100vw;
    height: 100vh;
    min-height: 600px;
    position: relative;
    margin: 0;
    padding: 0;
  
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--accent);
    min-height: 600px;
    background-size: cover;
    background-attachment: fixed;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, 1fr);
    overflow: hidden;
    z-index: 0;
    
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    background: var(--light);
    opacity: 100%;
    z-index: 1;
}

.hero-content {
    grid-column: 1 / -1;
    grid-row: 8 / 8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    padding: 32px;
}

.hero-title {
    display: block;
    margin: 0;
    color: var(--primary);
    font-size: 150px;
    text-align: left;
    padding-bottom: 30px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  position: relative;
  right: 20px;

}

@media (max-width: 1024px) {
    .hero-content {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
    }
    
    .hero-grid {
        min-height: 500px;
        grid-template-rows: repeat(1, 1fr);
    }
    
    .hero-content {
        grid-row: 2 / 4;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 90px;
    }
    
    .hero-buttons {
    max-width: 300px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    position: relative;
    right: 20px;
    margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 80px;
    }
}

@media (max-width: 320px) {
    .hero-buttons {
        max-width: 280px;
    }
}


/* About - HERO */

.about {
  padding: 32px;
}

.about-content {

  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 32px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--secondary);
  
}

.about-text h1 {
  color: var(--secondary);
}

.about-text h3 {
    padding: 20px 0px;
  border-top: 1px solid var(--secondary);
  border-bottom: 1px solid var(--secondary);
  
}

.about-text p {
 padding: 20px 0px;
 
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--secondary);
  
}

.about-image p {
  font-size: 14px;
  line-height: 20px;
  
}

/* Responsive: colonna singola su schermi piccoli */
@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 100%;
  }
}


/* Discrict - HERO */

.district {
  padding: 32px;
}
.district__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  /* align-items: center; */
}

.district__image {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.district__img {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;

}

.district__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

.img-default {
  opacity: 1;
  z-index: 1;
}

.img-hover {
  opacity: 0;
  z-index: 2;
}

.district__img:hover .img-hover {
  opacity: 1;
}

.district__img:hover .img-default {
  opacity: 0;
}

.district__text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.district__titles h2 {
  font-size: 45px;
  color: var(--secondary);
  display: flex;
  flex-direction: column;
  padding-bottom: 30px;
 
}



@media (min-width: 768px) {
  .district__grid {
    grid-template-columns: 1fr 1fr;
  }

  .district__image {
    flex-direction: row;
    justify-content: space-between;
  }

  .district__img {
    height: 400px;
  }

  .district__text {
    padding-left: 40px;
  }
}



/* Progetti - Hero */

::-webkit-scrollbar {
  width: 0;
}


.navigation-wrapper ul {
  margin-top: 240px;
  margin-left: 100px;
  margin-bottom: 200px;
  list-style: none;

}

.navigation-item {
  display: block;
  user-select: none;
  margin: 120px 0;
}

.navigation-wrapper a {
  font-size: 100px;
  text-decoration: none;
  color: var(--secondary); 
  font-family: 'Funnel Display';
  font-weight: 600;
}

span {
  position: relative;
  display: block;
}

.navigation-item span:before {
  width: 0;
  color:var(--dark);
  overflow: hidden;
  position: absolute;
  content: attr(data-text);
  transition: all 1s cubic-bezier(0.84, 0, 0.08, 0.99);
}

.navigation-item span:hover:before {
  width: 100%;
}

.project-preview-wrapper {
  width: 100%;
  height: 100vh;
  position: fixed;
  display: flex;
  justify-content: center;
}

.project-preview {
  position: fixed;
  top: 12%;
  left: 50%;
  width: 0px;
  height: 400px;
  background: url(img/img-1.jpg) no-repeat 50% 50%;
  background-size: cover;
  overflow: hidden;
}

@media (max-width: 900px) {
  /* .progressbar,
  .project-preview-wrapper {
    display: none;
  } */

  .project-preview {
  top: 25%;
  left: 10%;
  height: 200px;
  background: url(img/img-1.jpg) no-repeat 50% 50%;
  background-size: cover;
  overflow: hidden;
}
  .navigation-wrapper a {
    font-size: 50px;
  }
}

  /* Sezione DOMANDA */
        .questions {
            background-color: var(--dark);
            padding: 40px 32px;
            position: relative;
        }

        .container {
            margin: 0 auto;
            position: relative;
        }

        .title-questions {
            font-size: 60px;
            color: var(--primary);
            margin-bottom: 60px;
        }

        .content {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 60px;
        }

        .text {
            max-width: 450px;
            font-size: 16px;
            color: var(--light);
           
        }

        .buttons {
            display: flex;
            gap: 20px;
            align-items: center;
        }

        /* Sezione Prefooter/follow */


        .prefooter {
            background-color:var(--secondary);
            padding: 32px 32px;
        }

        .prefooter-content {
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .social-links {
            display: flex;
            gap: 50px;
        }

        .title-follow {
            font-size: 30px;
            font-weight: 900;
            color: var(--light);
            line-height: 0.85;
           
        }

        .social-links a {
            color: var(--light);
            text-decoration: none;
            font-size: 14px;
            text-transform: uppercase;
            font-weight: 500;
            position: relative;
        }

        .social-links a:hover {
            color: var(--dark);
        }

        .social-links a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 1px;
    
        }

        .social-links a:hover::after {
            width: 100%;
        }

        @media (max-width: 1024px) {

            .content {
                gap: 40px;
            }
        }

        @media (max-width: 768px) {
            .questions {
                padding: 60px 20px;
            }
            .title-questions {
               font-size: 40px;
                margin-bottom: 40px;
                text-align: center;
            }

            .content {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 40px;
            }

            .text {
                max-width: 100%;
            }

            .buttons {
                justify-content: center;
            }

            .prefooter {
                padding: 40px 20px;
            }

            .prefooter-content {
                flex-direction: column;
                gap: 25px;
                text-align: center;
            }

            .social-links {
                gap: 30px;
            }
        }

        @media (max-width: 600px) {
            .title.questions {
                font-size: 40px;
            }

            .buttons {
                gap: 15px;
                width: 100%;
            }

            .btn {
                width: 100%;
                max-width: 250px;
                justify-content: center;
                padding: 16px 35px;
            }

            .social-links {
                flex-wrap: wrap;
                gap: 20px;
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .questions {
                padding: 40px 15px;
            }

            .text {
                font-size: 16px;
            }

            .prefooter {
                padding: 30px 15px;
            }

            .social-links {
                gap: 15px;
            }

            .social-links a {
                font-size: 12.8px;
            }
        }

/* Text loop */

 .testo-loop {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
    gap: 40px;
}

.scrolling-text-container-home {
  width: 100% !important;
   height: 50px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  background:var(--secondary);
}

.scrolling-text-home {
  font-size: 40px;
  color: var(--light);
  white-space: nowrap;
  position: absolute;
  will-change: transform;
  animation: scroll-text-home 180s linear infinite;
  left: 0;
  top: 50%;
  transform: translateY(-50%);

}

.scrolling-text-home:hover {	
    color:var(--primary);
}

@keyframes scroll-text-home {
    0% { 
        transform: translateX(0) translateY(-50%); 
    }
    100% { 
        transform: translateX(-100%) translateY(-50%); 
    }
}

/* Stile del bottone torna su */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    height: 30px;
    padding: 0 20px;
    border: 2px solid var(--dark);
    background: var(--light);
    user-select: none;
    white-space: nowrap;
    transition: all .05s linear;
    font-family: 'Space Grotesk', Arial, sans-serif;
    font-size: 14px;
    z-index: 1000;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--dark);
    cursor: crosshair;
}

#backToTop:before, #backToTop:after {
    content: "";
    position: absolute;
    background: var(--light);
    transition: all .2s linear;
    z-index: -1;
}

#backToTop:before {
    width: calc(100% + 6px);
    height: calc(100% - 16px);
    top: 8px;
    left: -3px;
}

#backToTop:after {
    width: calc(100% - 16px);
    height: calc(100% + 6px);
    top: -3px;
    left: 8px;
}

#backToTop:hover {
    transform: scale(1.05);
}

#backToTop:active {
    transform: scale(0.95);
}

#backToTop:hover:before {
    height: calc(100% - 32px);
    top: 16px;
}

#backToTop:hover:after {
    width: calc(100% - 32px);
    left: 16px;
}

@media (max-width: 768px) {
    #backToTop {
        bottom: 20px;
        right: 20px;
        padding: 0 20px;
        font-size: 12px;
    }
}
/* Footer */

.footer {
  background-color: var(--secondary);
  padding: 60px 32px 30px 32px;
}

.contenuto-footer {
  padding: 32px 0p;
  margin: 0 auto;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 60px;
}

.sezione-superiore {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.sezione-principale {
  text-align: center;
}

.immagine-sinistra img,
.immagine-destra img {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-bottom: 1px solid var(--light);
  padding-bottom: 20px;

}

.sezione-principale h1 {
  font-size: 150px;
  font-weight: bold;
  color: var(--primary);
  margin: 0 0 40px 0;
  letter-spacing: 3px;
}

.collegamenti-footer {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}


.sezione-inferiore {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--light);
  padding-top: 20px;
}

.sinistra-footer {
  display: flex;
  align-items: center;
  gap: 20px;

}

.logo-footer {
  width: 60px;
  height: 60px;
}

.sinistra-footer p {
  color: var(--light);
  font-size: 14px;
}

.sinistra-footer a {  
  color: var(--light);
  font-size: 12px;

}

.destra-footer a {
color: var(--light);
  font-size: 12px;
}

.destra-footer p {
   color: var(--light);
  font-size: 14px;
  text-align: right;
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 15px 20px 15px;
  }
  
  .sezione-superiore {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .sezione-principale h1 {
    font-size: 56px;
  }
  
  .contenuto-footer {
    gap: 40px;
  }
  
  .sezione-inferiore {
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: center;
  }
  
  .sinistra-footer {
    justify-content: center;
    gap: 15px;
  
  }
  
  .destra-footer p {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .sezione-principale h1 {
    font-size: 100px;
    letter-spacing: 2px;
  }
  
  .sinistra-footer {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  
  .sinistra-footer p {
    font-size: 13px;
  }
  
  .destra-footer p {
    font-size: 13px;
  }
}

/* PAGINA WORK */

/* Hero Section - Work */

.hero-section-work {
    width: 100vw;
    height: 50vh;
    min-height: 600px;
    position: relative;
    margin: 0;
    padding: 0;
  
}

.hero-grid-work {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 50vh;
    background-color: var(--accent);
    min-height: 600px;
    background-size: cover;
    background-attachment: fixed;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, 1fr);
    overflow: hidden;
    z-index: 0;
    
}

.hero-img-work {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay-work {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    background: var(--light);
    opacity: 100%;
    z-index: 1;
}

.hero-content-work {
    grid-column: 1 / -1;
    grid-row: 8 / 8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    padding: 32px;
}

.hero-title-work  {
    display: block;
    margin: 0;
    color: var(--primary);
    font-size: 150px;
    text-align: left;
}

.hero-buttons-work  {
    position: relative;

}

@media (max-width: 1024px) {
    .hero-content-work  {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .hero-section-work  {
        min-height: 500px;
    }
    
    .hero-grid-work  {
        min-height: 500px;
        grid-template-rows: repeat(1, 1fr);
    }
    
    .hero-content-work  {
        grid-row: 2 / 4;
        padding: 0 20px;
    }
    
    .hero-title-work  {
        font-size: 100px;
    }
    
    .hero-buttons-work  {
        margin-bottom: 15px;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-title-work  {
        font-size: 80px;
    }
}

@media (max-width: 320px) {
    .hero-buttons-work  {
        max-width: 280px;
    }
}


/* Sezione griglia progetti */

.progetti {
  padding: 32px;
}

.progetti-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0 auto;

}

.progetti-img {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.progetti-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

.img-default {
  opacity: 1;
  z-index: 1;
}

.img-hover {
  opacity: 0;
  z-index: 2;
}

.progetti-img:hover .img-hover {
  opacity: 1;
}

.progetti-img:hover .img-default {
  opacity: 0;
}

.progetti-text {
  display: flex;
  flex-direction: column;
  justify-content:flex-start;
  align-items: flex-start;


}

.progetti-text h1 {
  font-size: 24px;
  font-weight: bold;
  color:var(--secondary);
}

.progetti-text p {
  font-size: 14px;
  color:var(--dark);
  margin: 0;
  
}

@media (max-width: 1024px) {
  .progetti-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .progetti {
    padding: 16px;
  }
  
  .progetti-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .progetti-img {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .progetti-grid {
    grid-template-columns: 1fr;
  }
  
  .progetti-img {
    height: 200px;
  }
}




/* PAGINA SINGOLO PROGETTO */

/* Hero Section - Singolo Progetti */

.hero-section-progetti {
    width: 100vw;
    height: 50vh;
    min-height: 600px;
    position: relative;
    margin: 0;
    padding: 0;
  
}

.hero-grid-progetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 50vh;
    background-color: var(--accent);
    min-height: 600px;
    background-size: cover;
    background-attachment: fixed;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, 1fr);
    overflow: hidden;
    z-index: 0;
    
}

.hero-img-progetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay-progetti {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    background: var(--light);
    opacity: 100%;
    z-index: 1;
}

.hero-content-progetti {
    grid-column: 1 / -1;
    grid-row: 8 / 8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    padding: 32px;
}

.hero-title-progetti  {
    display: block;
    margin: 0;
    color: var(--primary);
    font-size: 100px;
    text-align: left;
    padding-bottom: 20px;
}

.hero-buttons-progetti  {

    position: relative;
    right: 20px;
}

@media (max-width: 1024px) {
    .hero-content-progetti  {
        padding: 0 24px;
    }

}


@media (max-width: 768px) {

        .hero-content-progetti {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
    }

    .hero-section-progetti  {
        min-height: 500px;
    }
    
    .hero-grid-progetti  {
        min-height: 500px;
        grid-template-rows: repeat(1, 1fr);
    }
    
    .hero-content-progetti  {
        grid-row: 2 / 4;
        padding: 0 20px;
    }
    
    .hero-title-progetti  {
        font-size: 80px;
    }
    
    .hero-buttons-progetti {
        max-width: 300px;
    }
}

@media (max-width: 500px) {
    .hero-title-progetti  {
        font-size: 44px;
    }
}

@media (max-width: 320px) {
    .hero-buttons-progetti  {
        max-width: 280px;
    }
}



/* Descrizione - Singolo Progetti */

.descrizione {
   background-color:var(--secondary);
  padding: 32px;
  
}

.descrizione-content {
 
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 32px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--light);
  
}
.descrizione-text h2 {
  font-size: 45px;
  
   color: var(--primary);
   padding: 20px 0px;

}
.descrizione-text h3 {
  font-family: 'Work Sans';
  font-weight: 400;
  color: var(--light);
  padding: 20px 0px;
  border-top: 1px solid var(--light);
  border-bottom: 1px solid var(--light);
  
}

.descrizione-text  p {
 padding: 20px 0px;
  color: var(--light);
 
}

.descrizione-image p {
  color: var(--light);
}

.descrizione-image img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--light);
  
}

.descrizione-image p {
  font-size: 14px;
  line-height: 20px;
  
}

@media (max-width: 768px) {
  .descrizione-content {
    grid-template-columns: 1fr;
  }

  .descrizione-image {
    max-width: 100%;
  }
}





/* Descrizione - Progetto District */
.descrizione-discrict {
    background-color: var(--secondary);
    padding: 32px;
}

.descrizione-discrict-content {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 32px;
    align-items: start;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light);
}

.descrizione-discrict-text h2 {
    font-size: 45px;
    color: var(--primary);
    padding: 20px 0px;
}

.descrizione-discrict-text h3 {
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    color: var(--light);
    padding: 20px 0px;
    border-top: 1px solid var(--light);
    border-bottom: 1px solid var(--light);
}

.descrizione-discrict-text p {
    padding: 20px 0px;
    color: var(--light);
    line-height: 1.6;
}


.descrizione-discrict-image p {
    color: var(--light);
    font-size: 14px;
    line-height: 20px;
}

.descrizione-discrict-image video {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light);

}

/* Sezione griglia Progetti - reel */
.progetti-reel {
    padding: 32px;
}

.progetti-reel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 20px;
    margin: 0 auto;
}

.progetti-reel-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progetti-reel-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.progetti-reel-img img,
.progetti-reel-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.img-default,
.video-default {
    opacity: 1;
    z-index: 1;
}

.img-hover,
.video-hover {
    opacity: 0;
    z-index: 2;
}

.progetti-reel-img:hover .img-hover,
.progetti-reel-img:hover .video-hover {
    opacity: 1;
}

.progetti-reel-img:hover .img-default,
.progetti-reel-img:hover .video-default {
    opacity: 0;
}

.progetti-reel-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    aspect-ratio: 3/4;
}

.progetti-reel-text h1 {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary);
}

.progetti-reel-text p {
    font-size: 14px;
    color: var(--dark);
    margin: 0;
}


@media (max-width: 1024px) {
    .progetti-reel-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .descrizione-discrict {
        padding: 16px;
    }
    
    .descrizione-discrict-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .progetti-reel {
        padding: 16px;
    }
    
    .progetti-reel-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 16px;
    }
    
    .progetti-reel-text h1 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .progetti-reel-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        gap: 12px;
    }

    .progetti-reel-img {
        aspect-ratio: 2/3;
    }
    
    .progetti-reel-text {
        padding: 15px;
        min-height: 100px;
    }
}


/* Pagina Contatti */

.contact {
  padding: 32px;
}

.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--secondary);
}



.contact-form-header h1 {
  font-size: 62px;
  font-weight: 600;
  font-family: 'Funnel Display';
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: -2px;
  line-height: 1.2;
  padding-bottom: 30px;
}


.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-family: 'Space Grotesk';
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-note {
  font-weight: 400;
  font-size: 12px;
  color: var(--green);
  text-transform: lowercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--accent);
  border-radius: 0; 
  font-size: 14px;
  font-family: 'Work Sans';
  background: var(--light);
  color: var(--dark);
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}


.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: 'Work Sans';
  color: var(--dark);
  padding: 5px 0;
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--secondary);
}

.checkbox-terms {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--accent);
}

.checkbox-terms .checkbox-item {
  font-size: 12px;
  color: var(--green);
}


.form-actions {
  margin-top: 25px;
}


.contact-info-section {
   
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--accent);
}

.contact-info-section:last-child {
  border-bottom: none;
}

.contact-info-section h4 {
  font-family: 'Space Grotesk';
  font-size: 14px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-info-section p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--dark);
  margin: 0;
}

.contact-link {
  color: var(--secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--primary);
  cursor: crosshair;
}


.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icon {
  width: 35px;
  height: 35px;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--dark);
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--secondary);
  color: var(--light);
  cursor: crosshair;
}

.social-icon i {
  font-size: 16px;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .contact {
    padding: 20px;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-form-header h1 {
    font-size: 45px;
  }
  
  .checkbox-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .social-icons {
    gap: 10px;
  }
  
  .social-icon {
    width: 30px;
    height: 30px;
  }
  
  .social-icon i {
    font-size: 14px;
  }
}

@media (max-width: 600px) {
  .contact {
    padding: 15px;
  }
  
  .contact-form-header h1 {
    font-size: 35px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .form-group label {
    font-size: 12px;
  }
  
  .checkbox-item {
    font-size: 13px;
  }
  
  .contact-info-section h4 {
    font-size: 12px;
  }
  
  .contact-info-section p,
  .contact-link {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .contact-form-header h1 {
    font-size: 28px;
  }
  
  .contact-content {
    gap: 30px;
  }
}






/* Correzioni forzatee */
@media (max-width: 768px) {
    .hero-title {
        font-size: 80px !important; 
        line-height: 0.9;
        text-align: center;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        padding: 20px;
    }
    
    .hero-buttons {
        right: 0; 
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 60px !important; 
    }
    
    .hero-section {
        min-height: 80vh; 
    }
    
    .hero-grid {
        min-height: 80vh;
    }
}

@media (max-width: 320px) {
    .hero-title {
        font-size: 50px !important;
    }
}

/* Fix per Navbar */
@media (max-width: 600px) {
    .navbar {
        padding: 15px 10px;
        top: 10px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
    }
    
    .logo-toggle {
        top: 25px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .btn-sound {
        height: 35px;
        padding: 0 15px;
        font-size: 12px;
    }
}

/* per Navigation Progetti*/
@media (max-width: 900px) {
    .navigation-wrapper ul {
        margin-top: 80px;
        margin-left: 20px;
        margin-bottom: 80px;
    }
    
    .navigation-item {
        margin: 40px 0; 
    }
    
    .navigation-wrapper a {
        font-size: 35px; 
    }
    
    .project-preview {
        top: 20%;
        left: 5%;
        width: 200px;
        height: 150px;
    }
}

@media (max-width: 600px) {
    .navigation-wrapper ul {
        margin-left: 15px;
    }
    
    .navigation-wrapper a {
        font-size: 28px;
    }
    
    .navigation-item {
        margin: 30px 0;
    }
}

@media (max-width: 400px) {
    .navigation-wrapper a {
        font-size: 24px;
    }
    
    .navigation-item {
        margin: 25px 0;
    }
}

/* District Section */
@media (max-width: 768px) {
    .district__grid {
        gap: 20px;
    }
    
    .district__text {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
        text-align: left;
    }
    
    .district__titles h2 {
        font-size: 35px;
        padding-bottom: 15px;
    }
}

@media (max-width: 600px) {
    .district {
        padding: 20px;
    }
    
    .district__titles h2 {
        font-size: 28px;
    }
    
    .district__paragraph p {
        font-size: 15px;
        line-height: 1.6;
    }
}

/* About Section */
@media (max-width: 600px) {
    .about {
        padding: 20px;
    }
    
    .about-text h1 {
        font-size: 45px;
    }
    
    .about-text h3 {
        font-size: 24px;
    }
}

/* Questions Section */
@media (max-width: 600px) {
    .title-questions {
        font-size: 35px !important;
        text-align: left;
        margin-bottom: 30px;
    }
    
    .content {
        gap: 25px;
    }
    
    .buttons {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
    
    .buttons .btn-secondary,
    .buttons .btn-tertiary {
        width: 100%;
        justify-content: center;
    }
}

/*  Footer */
@media (max-width: 600px) {
    .sezione-principale h1 {
        font-size: 80px !important;
        letter-spacing: 1px;
    }
}

@media (max-width: 400px) {
    .sezione-principale h1 {
        font-size: 60px !important;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
}


@media (max-width: 600px) {
    .scrolling-text-home {
        font-size: 30px;
    }
}

@media (max-width: 400px) {
    .scrolling-text-home {
        font-size: 24px;
    }
}

/* Preloader su mobile */
@media (max-width: 768px) {
    #video-mobile {
        display: block;
    }
    
    #video-desktop {
        display: none;
    }
    
    #start-button {
        bottom: 15%;
        right: 50%;
        transform: translateX(50%);
    }
}


@media (hover: none) and (pointer: coarse) {
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-tertiary:hover {
        transform: none; 
    }
    
    .district__img:hover .img-hover {
        opacity: 0; 
    }
    
    .navigation-item span:hover:before {
        width: 0; 
    }
}


@media (max-width: 280px) {
    .hero-title {
        font-size: 40px !important;
    }
    
    .navigation-wrapper a {
        font-size: 20px;
    }
    
    .title-questions {
        font-size: 28px !important;
    }
}