@media (max-width: 900px) {

  /* =========================
     GLOBAL
  ========================= */

  body{
    overflow-x:hidden;

  padding-bottom:110px;
  }

  .container,
  .review-layout,
  .hero-layout,
  .manifesto-wrapper,
  .about-layout{
    width:100%;
    padding-left:22px;
    padding-right:22px;
  }

section{
    padding-top:30px !important;
    padding-bottom:30px !important;
}

  .review-layout,
  .related-section,
  .newsletter,
  .featured-section,
  .contact-section{

    margin-top:0 !important;

    margin-bottom:0 !important;

  }

  h2{

    margin-bottom:1.8rem;
    font-size:32px;
    line-height:1;

  }

  p{
    font-size:16px;
    line-height:1.8;
    margin-bottom:1.2rem;

  }
  
  .no-break{

  white-space:normal;

  }

  h1{
    font-size:42px;
    line-height:.95;
  }

  .hidden-review{
  display:none;
  }
  /* =========================
     HEADER
  ========================= */

  .header{
    padding-top:14px;
    padding-bottom:0;
    
  }

  .header-inner{
    flex-direction:column;
    align-items:center;
    gap:10px;
  }

  .logo-block{

    width:100%;

    overflow:visible;
    display:flex;

  flex-direction:column;

  align-items:center;

  justify-content:center;

  text-align:center;

  }

  .logo-subtitle{

    width:100%;

    font-size:.72rem;

    line-height:1.7;

    text-align:center;

    white-space:normal;
    margin-top:-6px;
    overflow:visible;
    letter-spacing:.12em;

  }
  
  .logo{
    font-size:3.2rem;
    text-align:center;  
  margin-bottom:6px;
  }

  .profile-logo{

    font-size: 3rem;
    text-align: center;

  }

  .profile-nav{

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 12px;

  }

  .profile-nav a,
  .logout-btn{

    font-size: 0.9rem;

    padding: 10px 18px;

    border-radius: 999px;

  }

  /* =========================
     MENU
  ========================= */
 
.menu-toggle{

    display:block;

    background:none;
    border:none;

    cursor:pointer;

    z-index:1001;
    margin-top:4px;
  
  }

  .menu{

    position:fixed;

    top:0;
    right:-100%;

    width:100%;
    height:100vh;

    background:#08293b;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    gap:34px;

    transition:.45s ease;

    z-index:1000;

  }

  .menu.active{

    right:0;

  }

 


  /* =========================
     HERO
  ========================= */

  .hero{
    padding-top:40px;
    padding-bottom:30px;
    overflow:hidden;
  }

  .hero-layout{
    flex-direction:column;
    align-items:flex-start;
    gap:40px;
    width:100%;
    overflow:visible;

  }

  .hero-text{
    width:100%;
   padding:0;
    max-width:100%;
  }

  .hero-text h1{
    font-size:clamp(2.8rem, 12vw, 3.4rem);
    line-height:1.05;
    padding-right:6px;
    max-width:100%;
    padding-bottom: 8px;
  }

  .hero,
.hero-layout,
.hero-text{

  overflow:visible;

}

  .hero-sub{
    font-size:1rem;
    line-height:1.8;
    max-width:100%;
  }

  .hero-overlay h1{
    font-size: 2.8rem;
    line-height: .95;
  }
 
 .hero-cta{
    min-width:100%;
    padding-bottom:0;
  }

  .cta-link{
    width:100%;
    height:54px;
    font-size:.95rem;
  }


  .hero-subtitle{

    font-size:.78rem;

    letter-spacing:.18em;

    line-height:1.5;

    text-align:center;

    padding:0 14px;
    overflow-wrap:break-word;

  }

/* =========================
   PROFILE MOBILE
========================= */

  .profile-hero{

    min-height:auto;

    padding:120px 24px 60px;

  }

  .profile-avatar{

    width:110px;

    height:110px;

  }

  .profile-username{

    font-size:.95rem;

    letter-spacing:.24em;

  }

  .profile-bio{

    font-size:1.05rem;

    line-height:1.5;

    max-width:320px;

  }



  .profile-stat span{

    font-size:2.3rem;

    margin-bottom:6px;

  }

  .profile-stat p{

    font-size:.72rem;

    letter-spacing:.18em;

  }


/* =========================
     USER BOX
  ========================= */

  .profile-user{

    display: flex;
    justify-content: center;

    margin-bottom: 70px;

  }

  .profile-user-box{

    width: 100%;

    padding: 28px;

    border-radius: 30px;

    backdrop-filter: blur(12px);

  }

  .profile-user-label{

    font-size: 0.8rem;
    letter-spacing: 4px;

    margin-bottom: 14px;

  }

  .profile-email{

    font-size: 1rem;
    line-height: 1.6;

    word-break: break-word;

  }

 .profile-header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:9999;
  display:block !important;
  }
  /* =========================
     SELECTED
  ========================= */

 .selected-movie-card{

    flex-direction: column;

    gap: 24px;

  }

  .selected-movie-card img{

    width: 100%;

    max-width: 320px;
  }
 



  /* =========================
     HOME CARD
  ========================= */

  .film-section{
    margin:56px auto;
    
  }

  .film-grid{

  gap:18px;

  }
  
  .film-card{
    max-width:100%;
    padding:18px;
    border-radius:26px;
    margin-bottom:0;
  }

  .film-card img{
    height:260px;
    border-radius:18px;
  }

  .film-content{
    padding:18px 4px 4px;
  }

  .film-card h2{
    font-size:2rem;
    line-height:1;
  }

  .film-card p{
    max-width:100%;
    font-size:.95rem;
    line-height:1.7;
  }

  /* =========================
     SLIDER
  ========================= */

  .slide-item{
    min-width:84%;
    flex:0 0 84%;
  }

  .slide-card img{
    height:280px;
  }

  .slider-arrows{
    display:none;
  }

  /* =========================
     ARCHIVIO
  ========================= */

  .archivio-hero{
    margin-top:16px;
    margin-bottom:16px;
    padding-top:0;
    padding-bottom:0;
    padding:0 24px;
  }

  .archivio-title{
    font-size:2.7rem;
    line-height:.95;
    margin-bottom:14px;
  }

  .archivio-subtitle{
    font-size:.95rem;
    margin-top:0;
    line-height:1.6;
  }

.archivio-grid{
  display:grid;
  grid-template-columns:
    repeat(2, 1fr);
  gap:18px;

}

  .archivio-card{
    width: 100%;
  }

  .archivio-card img{
    width: 100%;
    height: 68vw;
    object-fit: cover;
    border-radius: 2rem;
  }

  .archivio-info{
    padding-top: 1.4rem;
  }

  .archivio-card h3{
    font-size: 2.6rem;
    line-height: 0.95;
    margin-bottom: 1rem;
  }

  .archivio-card p{
    font-size: 1.05rem;
    opacity: 0.7;
    margin-bottom: 1rem;
  }

  .stars{
    font-size: 1.1rem;
    letter-spacing: 0.15rem;
  }


.archivio-section .container{

    width:100%;

    padding-left:22px;

    padding-right:22px;

}




  /* =========================
     FEATURED
  ========================= */

.featured-hero{

    display:flex !important;

    flex-direction:column !important;

    align-items:center;

    gap:40px;

    text-align:center;

  }

  .featured-image{

    width:78vw;

    max-width:320px;

    margin:0 auto;

  }

  .featured-content{

    width:100%;

    text-align:left;

  }
  .featured-image img{

  max-height:420px;

  object-fit:cover;

  }
    
  .featured-title{

    font-size:clamp(3rem, 14vw, 5rem);

    line-height:.9;

  }

  .featured-film{

    min-height: 520px;

  }
   

  /* =========================
     REVIEW
  ========================= */
  .review-actions{

    flex-direction: column;

    align-items: stretch;

  }

  #reviewRating{

    width: 100%;
  }

.review-hero{

    min-height:auto;

    padding:3rem 0 2rem;

  }

  .review-hero-content{

    gap:30px;

  }

  .review-poster{

    max-width:260px;

    margin:0 auto;

  }

  .review-title{

    font-size:3.5rem;

  }

  .review-meta{

    gap:12px;

  }

  .review-description{

    font-size:1rem;

    line-height:1.9;

  }


  .review-content p{

    font-size:1rem;

    line-height:2;

  }

  .review-content blockquote{

    font-size:1.5rem;

    padding:26px;

  }

  .review-author{

    flex-direction:column;

    text-align:center;

  }

.reviews-grid{

    display:grid;

    grid-template-columns:
      repeat(2, 1fr);

    gap:14px;

}
  
  .review-extra{

    padding: 1.5rem;

    border-radius: 1.2rem;

  }

  .review-extra li{

    font-size: .95rem;

    line-height: 1.8;

  }
  
  .review-card{

  min-width:0;

  }


  #publishReviewBtn{

    width: 100%;
  }

  
  .review-layout{

    padding:4rem 0 6rem;

  }

  .sidebar-box{

    padding:24px;

  }

  /* =========================
     CARD
  ========================= */

  .saved-card{

    border-radius: 24px;

    overflow: hidden;

  }

  .saved-card img{

    width: 100%;
    aspect-ratio: 0.72;

    object-fit: cover;

    display: block;

  }

  .saved-card-content{

    padding: 16px;

  }

  .saved-card h3{

    font-size: 1rem;
    line-height: 1.3;

    margin-bottom: 8px;

  }

  .saved-card p{

    font-size: 0.9rem;
    line-height: 1.5;

  }


  .saved-movies{

    width:100%;

    padding-inline:20px;

  }

  .saved-section{

    padding:28px 20px;

    border-radius:28px;

    margin-bottom: 80px;

  }

  .saved-title{

    font-size: 2.4rem;

    margin-bottom: 30px;

    text-align: center;

  }


  .saved-grid{

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;

  }

  /* =========================
     MANIFESTO
  ========================= */


 .manifesto-wrapper{

  flex-direction:column;

  gap:50px;

}

.manifesto-home{

  padding:140px 22px 80px;

}

  .manifesto-left{
    width:100%;
    overflow:hidden;
  }

 .manifesto-left h2{

  font-size:2.3rem;

  line-height:1;

  letter-spacing:-0.02em;

  word-break:normal;

 }

  .manifesto-left p{

    margin-top:28px;

  font-size:1rem;

  line-height:1.75;

  color:rgba(255,255,255,.72);

    max-width:100%;

  }

  /* LINEA */

  .manifesto-divider{

    width:100%;

    height:1px;

    min-height:1px;

  }

  /* BLOCCO SOTTO */

  .manifesto-right{

    width:100%;

  }

  .manifesto-right h2{

    font-size:3.4rem;

    line-height:.95;

  }

  .manifesto-right p{

    margin-top:20px;

    font-size:1.05rem;

    line-height:1.8;

  }

  /* BUTTON */

  .manifesto-btn{

    width:100%;

    justify-content:center;

    padding:20px;

    border-radius:18px;

  }

 .manifesto-divider{
  display:none;
  }


  /* =========================
     CONTACT
  ========================= */
 

  .contact-hero{

    padding-top:16px;
    padding-bottom:14px;

  }
  
  .contact-title{

  margin-bottom:12px;

  }

  .contact-subtitle{

  margin-bottom:20px;

  }

  .contact-intro{

    font-size:1rem;

    line-height:1.9;

    max-width:320px;

    margin:0 auto;

  }
  
  .contact-cards .container{

    display:flex;

    flex-direction:column;

    align-items:center;

  }
  
  .contact-header,
  .contact-hero{

    margin-bottom:20px !important;
    padding-bottom:8px !important;

  }

  .contact-cards{
    margin-top:8px !important;
    padding-top:10px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:16px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .contact-card{
    width: 100%;
    max-width:100%;

    margin: 0;
    padding: 38px 28px;

    border-radius: 32px;
  }

  .contact-hero{

    padding-top:0 !important;
    padding-bottom:0 !important;

    margin-top:0 !important;
    margin-bottom:0 !important;

  }

  .contact-page{

    padding-top:10px !important;
    padding-bottom:0 !important;

    margin-bottom:0 !important;

  }
  
 /* HERO CONTATTI */

.contact-hero{

  padding-top:24px !important;

  padding-bottom:46px !important;

}

.contact-page{

  display:flex;

  flex-direction:column;

  align-items:center;

  text-align:center;

}

.contact-title{

  font-size:4rem;

  margin-bottom:18px;

}

.contact-intro{

  max-width:300px;

  line-height:1.8;

}

  .contact-cards{

  gap:28px;

  margin-top:8px;

  padding:0 22px 60px;

}

.contact-card{

  padding:46px 30px;

  border-radius:34px;

}
  
.contact-card h2{

  margin-top:18px;

  margin-bottom:26px;

  line-height:.95;

}

  .contact-mail{

    font-size:1.2rem;

    padding:6px 0;
  }
  /* =========================
    RUBRICHE
  ========================= */
  
  .rubriche-grid{

    display:grid;

    grid-template-columns:1fr !important;

    gap:20px;

  }

  .rubrica-card{

    width:100%;

  }


  /* =========================
     LOGIN
  ========================= */

  .login-content{
    padding:120px 24px 80px;
  }


  .login-heading{

  display:flex;

  flex-direction:column;

  align-items:center;

  text-align:center;

}

.login-title{

  text-align:center;
  font-size:3rem;
    line-height:.92;
  margin-bottom:14px;

}

.login-subtitle{

  text-align:center;

  max-width:320px;
  font-size:1rem;
    line-height:1.6;
    white-space:normal;
  margin:0 auto;

}


  .login-box input{
    height:58px;
    font-size:1rem;
    border-radius:18px;
  }

  .login-buttons{
    flex-direction:column;
    gap:12px;
  }

  .login-btn,
  .register-btn{
    width:100%;
    height:54px;
  }
 
 .login-page{
    padding-top:40px;
    background-position:60% top;
   background-size:180% auto;
  background-position:center top;
   
  }
  .login-footer{

  text-align:center;

  max-width:280px;

  margin:28px auto 0;

  line-height:1.7;

  }

  .login-hero{

    min-height:auto;

   padding-top:10px;

  }

  .login-heading{

    margin-bottom:28px;

  }

  /* =========================
     QUOTE
  ========================= */

  .profile-quote{

    text-align: center;

    margin-top: 100px;
    margin-bottom: 50px;

    padding-bottom: 40px;

  }

  .profile-quote p{

    font-size: 1rem;
    line-height: 1.8;

    letter-spacing: 4px;

    opacity: 0.7;

  }

  /* =========================
     ABOUT CARDS
  ========================= */

 .about-page{

    padding-top:14px;
    padding-bottom:16px;

 }
  
  .about-top{

    display:flex;
    flex-direction:column;

    align-items:center;

    gap:26px;

    padding-top:16px;
  }


  .about-bottom{

    margin-top:16px;
    padding:0 24px;

  }

  
  .about-image{

    width:100%;

    display:flex;

    justify-content:center;

  }

  .about-image img{

    width:78vw;

    max-width:320px;

    border-radius:50%;

  }

  .about-text{

    width:100%;

    padding:0 24px;

    text-align:center;

  }

  .about-title{

    font-size:3.2rem;

    line-height:.9;

    margin-bottom:14px;

  }

  .about-intro{

    font-size:1rem;

    line-height:1.9;

    margin-bottom:0;
  }
  
  
  .about-cards{

    padding:20px 22px 100px;

  }

  .about-cards .container{

    width:100%;

    display:grid;

    grid-template-columns:1fr;

    gap:22px;

    padding:0;

  }

  .about-card{

    padding:30px 26px;

    border-radius:28px;

  }

  .about-card h2{

    font-size:2rem;

    line-height:1;

  }

  .about-card p{

    font-size:1rem;

    line-height:1.8;

  }


  /* =========================
     CARDS GRID
  ========================= */

  .sections .container,
  .contact-cards .container,
  .about-cards .container{
    grid-template-columns:1fr !important;
  }

  .card,
  .contact-card,
  .about-card{
    min-height:auto;
    padding:26px;
    border-radius:24px;
  }

.section-title {
  margin-bottom: 12px;
}

  
  /* =========================
   ARCHIVIO FILTRI MOBILE
========================= */

.search-area{

  margin-top:50px;

}

.filter-row{

  flex-direction:column;

  align-items:stretch;

  gap:14px;

}

.filter-row select{

  width:100%;

  height:58px;

  border-radius:22px;

  font-size:1rem;

  padding:0 22px;

}

.reset-btn{

  width:100%;

  height:58px;

  border-radius:22px;

  margin-top:6px;

}

#searchInput{

  height:60px;

  font-size:1rem;

  padding-left:58px;

}
  
  #resetFilters{

  width:52px;

  height:52px;

  min-width:52px;

  border-radius:50%;

  padding:0;

  display:flex;

  align-items:center;

  justify-content:center;

  flex-shrink:0;

  }
  /* =========================
     NEWSLETTER
  ========================= */

  .newsletter{
    padding:40px 20px;
  }

  .newsletter h2{
    font-size:2rem;
  }

  .newsletter-btn{
    max-width:100%;
  }

  /* =========================
   FOOTER MOBILE
========================= */

.credits{

  padding:34px 20px 24px;

}

.credits-inner{

  gap:4px;

}

.credits-label{

  margin-bottom:0;

}

.credits-name{

  margin-bottom:12px;

}

.signature-grid{

    grid-template-columns: 1fr;

  }


  .film-grid{

  grid-template-columns:1fr;

}

.film-card img{

  aspect-ratio:16/10;

}

  .watch-btn,
  .watchlist-btn,
  .love-btn{

    width:100%;

 }
  .profile-stats{

    display:grid !important;

    grid-template-columns:
      repeat(3, 1fr) !important;

    gap:0 !important;

    align-items:center;

    width:100%;

    max-width:340px;

    margin:14px auto 0;
    margin-bottom:16px !important;

    padding-top:0 !important;

    border-top:none !important;

  }

  .profile-stat{

    min-width:unset !important;

    width:100%;

    padding:0 14px !important;

    background:none !important;

    border:none !important;

    box-shadow:none !important;

    backdrop-filter:none !important;

    border-radius:0 !important;

    text-align:center;

    position:relative;

  }

  .profile-stat:not(:last-child)::after{

    content:"";

    position:absolute;

    right:0;

    top:50%;

    transform:translateY(-50%);

    width:1px;

    height:44px;

    background:
      rgba(255,255,255,.12);

  }
.current-favorite{

    flex-direction:row !important;

    align-items:center !important;

    justify-content:flex-start !important;

    gap:18px !important;
    margin-top:0 !important;

    padding:12px !important;

  }

  .current-favorite img{

    width:110px !important;

    min-width:110px !important;

    height:auto !important;

    border-radius:18px !important;

  }

  .current-favorite-content{

    display:flex !important;

    flex-direction:column !important;

    justify-content:center !important;

    text-align:left !important;

    flex:1 !important;

  }
  

  .current-favorite h3{

    font-size:2rem;

    margin-bottom:10px;

  }

  .current-favorite span{

    font-size:.95rem;

    line-height:1.5;

  }

  .signature-grid{

    display:flex !important;

    flex-direction:column !important;

    gap:18px !important;

  }

  .signature-film,
  .featured-film{

    position:relative !important;

    width:100% !important;

    height:180px !important;

    min-height:180px !important;

    border-radius:24px !important;

    overflow:hidden !important;

  }

  .signature-film img{

    width:100% !important;

    height:100% !important;

    object-fit:cover !important;

  }

  .signature-film-overlay{

    position:absolute !important;

    left:0 !important;

    bottom:0 !important;

    width:100% !important;

    padding:20px !important;

  }

  .signature-film-overlay h3{

    font-size:1.5rem !important;

    margin-bottom:6px !important;

  }

  .signature-film-overlay p{

    font-size:.9rem !important;

  }
  body .signature-section .signature-grid{

    display:flex !important;

    flex-direction:column !important;

    grid-template-columns:none !important;

    gap:18px !important;

  }

  body .signature-section .signature-film,
  body .signature-section .featured-film{

    width:100% !important;

    height:190px !important;

    min-height:190px !important;

    max-height:190px !important;

    border-radius:24px !important;

    overflow:hidden !important;

    position:relative !important;

  }

  body .signature-section .signature-film img{

    width:100% !important;

    height:100% !important;

    object-fit:cover !important;

  }

  body .signature-section .signature-film-overlay{

    position:absolute !important;

    left:0 !important;

    bottom:0 !important;

    width:100% !important;

    padding:20px !important;

  }
  

  .profile-header-inner{

    padding:14px 18px;

  }

  .profile-nav{

    display:flex;

    align-items:center;

    gap:18px;

  }

  .profile-nav a,
  .logout-btn{

    font-size:.8rem;

  }

  .profile-nav span{

    display:none;

  }

  .profile-nav i{

    font-size:1rem;

  }

  .profile-hero{

    padding-top:140px;

  }
  .reviews-grid{

    display:grid !important;

    grid-template-columns:1fr !important;

    gap:24px;

  }

  .review-card.hidden-review,
  .review-card.hidden{

    display:none !important;

  }

  .review-card:not(.hidden-review):not(.hidden){

    display:block !important;

  } 
  .profile-edit{

  width:100%;

  margin-top:26px;

}

#saveProfileBtn{

  width:100%;

}
  .sidebar-box{

    grid-template-columns:
      repeat(2,1fr);

}
  /* =========================
   MOBILE TABBAR
========================= */
.mobile-tabbar{

  display:flex !important;

  position:fixed !important;

  bottom:0 !important;
  left:0 !important;
  right:0 !important;

  width:100% !important;
  height:78px !important;

  background:
    rgba(8,22,35,.96) !important;

  backdrop-filter:
    blur(18px);

  border-top:
    1px solid rgba(255,255,255,.08);

  justify-content:space-around !important;

  align-items:center !important;

  padding:0 8px !important;

  visibility:visible !important;

  opacity:1 !important;

  transform:translateY(0) !important;

  z-index:999999 !important;
}
  
.tab-item{

  flex:1;

  display:flex;

  flex-direction:column;

  align-items:center;

  justify-content:center;

  gap:5px;

  background:none;
  border:none;

  color:
    rgba(255,255,255,.55);

  text-decoration:none;

  font-size:.68rem;
}


.tab-item i{

  font-size:1.1rem;

}

/* ACTIVE */

.tab-item.active{

  color:var(--panea-yellow);

}

/* HOVER */

.tab-item:hover{

  color:var(--panea-yellow);
}
  .profile-user-meta{

    display:flex;
    flex-direction:column;
    align-items:center;

  }

  .profile-username{

    margin:12px 0 4px !important;

  }

  .profile-bio{

    margin:0 0 10px !important;

  }

  #editProfileBtn{

    margin-top:0 !important;

  }
    .profile-edit{

    width:92%;
    margin:16px auto 28px;

    padding:18px;

    display:none;
    flex-direction:column;
    gap:14px;

    border-radius:28px;

    background:
      rgba(12,32,46,.92);

    border:
      1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(16px);

  }

  .profile-edit input,
  .profile-edit textarea{

    width:100%;
    box-sizing:border-box;

  }

  #avatarInput{

    font-size:.85rem;

  }

  .profile-edit{
  display:none;
}

.profile-edit.open{
  display:flex;
  }
  
  .profile-header{
  display:none !important;
  }

  .activity-feed{

  display:grid !important;

  grid-template-columns:
    repeat(2,1fr);

  justify-content:start !important;

}

.activity-feed .saved-card{

  width:100%;

}
  .review-card{

    grid-template-columns:1fr;

  }

  .review-poster img{

    height:260px;

  }

  .review-film{

    font-size:1.4rem;

  }
  .movie-card.hidden-mobile{
    display:none;
  }
 }










@media screen and (min-width:901px){

    .rubrica-card{

  min-height:280px;

  padding:40px;
  }
  
  .review-hero-content{

    grid-template-columns:1fr;

    gap:40px;

  }

  .review-poster{

    max-width:340px;

  }

  .review-layout{

    grid-template-columns:1fr;

    gap:50px;

  }

  .review-sidebar{

    position:relative;

    top:auto;

  }

  .related-grid{

    grid-template-columns:1fr 1fr;

  }

  .mobile-tabbar{

    display:none !important;

  }
  .profile-nav{
    display: flex;
  }
}
