/* ==============================
   MOBILE.CSS
   Sito: Pimu Studio Design
   Ultimo aggiornamento: 2025-11-22
   Richiede: variables.css, style.css, typography.css
   ============================== */

@media (max-width: 1024px) {
  .flex-row-mobile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* ============================== */
  /* ========== HEADER ============ */
  /* ============================== */

  header {
    margin: 3.19rem 1rem 6.8rem 1rem;
    padding-bottom: 1.55rem;
  }

  header ul li:first-of-type {
    display: none;
  }

  header ul li:last-child svg {
    width: 0.71538rem;
    height: 0.81756rem;
  }

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

  .hero h4 {
    margin-bottom: 3rem;
  }

  .hero span {
    display: none;
  }

  .hero h1 {
    line-height: 2.313rem;
    letter-spacing: 0;
  }

  .hero-heading {
    width: 21.625rem;
    height: 7.79356rem;
    margin: 0 auto;
  }

  /* posizionamento relativo al titolo */

  .hero-orbit--swirl img {
    width: 20.11006rem;
    height: 7.79356rem;
  }

  .hero-orbit--star-left {
    top: 17px;
    left: 46px;
  }

  .hero-orbit--star-right {
    bottom: -6px;
    right: 73.9px;
  }

  .hero-orbit--smile {
    bottom: 8px;
    right: 0;
  }
  .hero-orbit--star-left img {
    width: 1.29625rem;
    height: 2.09531rem;
  }

  .hero-orbit--star-right img {
    width: 0.7085rem;
    height: 1.14531rem;
  }

  .hero-orbit--smile img {
    width: 1.88819rem;
    height: 1.48488rem;
  }

  .hero p {
    margin-top: 2rem;
    width: 18.6875rem;
  }

  .hero a[href="#works-id"] {
    border-radius: 1.25rem;
    padding: 0.75rem 4.7rem;
    margin: 2.5rem auto 0 auto;
  }

  .hero a[href="#works-id"]:hover {
    background-color: #b3702c;
  }

  /* ============================== */
  /* =========== SERVIZI ========== */
  /* ============================== */

  .servizio-mobile {
    display: block;
    width: 7.625rem;
    height: 7.625rem;
    margin: 0.75rem 0 0 0;
  }

  .service {
    margin: 0 1rem 7.5rem 1rem;
    align-items: start;
  }

  .service-left p {
    margin-top: 1rem;
  }

  .services-inner {
    /* max-width: 960px; */
    margin: 3.75rem auto 0 auto;
    display: flex;
    gap: 1.75rem;
    align-items: flex-start;
  }

  /* Colonna immagine */
  .services-image-wrap {
    position: absolute;
    display: none;
  }

  .services-image-wrap.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .service-image-inner {
    width: 7.625rem;
    height: 7.625rem;
    overflow: hidden;
    will-change: transform;
  }

  .service-image {
    display: block;
    width: 100%;
    height: auto;
  }

  /* Colonna accordion */
  .services-accordion {
    display: flex;
    flex-direction: column;
    gap: 3.75rem;
  }

  .service-item + .service-item {
    margin-top: 1.25rem;
  }

  .service-header {
    width: 100%;
    background: none;
    border: none;
    color: inherit;
    display: flex;
    justify-content: normal;
    align-items: center;
    padding: 0.2rem 0;
    cursor: pointer;
    font: inherit;
  }

  .service-chevron {
    display: inline-flex;
    align-items: center;
    margin-left: 1.5rem;
    justify-content: center;
    transition: transform var(--duration) var(--easing),
      background-color var(--duration) var(--easing),
      border-color var(--duration) var(--easing);
  }

  .service-chevron::before {
    content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='19' height='11' viewBox='0 0 19 11' fill='none'><path fill-rule='evenodd' clip-rule='evenodd' d='M0.556492 0.536967C1.2985 -0.178989 2.50151 -0.178989 3.24352 0.536967L9.50002 6.57399L15.7565 0.536967C16.4985 -0.178989 17.7016 -0.178989 18.4435 0.536967C19.1855 1.25294 19.1855 2.41374 18.4435 3.12972L10.8435 10.4631C10.1016 11.179 8.89852 11.179 8.15651 10.4631L0.556492 3.12972C-0.185497 2.41374 -0.185497 1.25294 0.556492 0.536967Z' fill='%23F2F3F4'/></svg>");
  }

  .service-item.is-open .service-chevron {
    transform: rotate(180deg);
  }

  .service-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 260ms var(--easing), opacity 220ms var(--easing);
  }

  .service-item.is-open .service-panel {
    margin-top: 0.75rem;
    opacity: 1;
    max-height: 260px;
  }

  .service-panel p {
    margin: 0 0 0.5rem;
    color: var(--muted);
  }

  .service-panel ul {
    margin: 0;
    padding-left: 1.1rem;
  }

  .service-panel ul {
    list-style: disc;
  }

  /* Hover estetico */
  .service-item:not(.is-open) .service-header:hover .service-title {
    color: var(--accent);
  }

  /* ============================== */
  /* ============ LAVORI ========== */
  /* ============================== */
  #works-id h3 {
    padding: 0;
    text-align: center;
  }

  .carousel-container {
    margin: 7.5rem 1rem 5rem 1rem;
  }

  .carousel {
    gap: 0;
    margin-top: 2.31rem;
  }

  #prev {
    display: none;
  }

  #next {
    display: none;
  }

  .slide {
    grid-template-columns: repeat(2, 1fr); /* 2 x 2 */
    gap: 2.5rem 0;
    justify-items: center;
  }

  .card img {
    width: 9.25rem;
    height: 11rem;
  }

  /* DOTS */

  .dot.is-active {
    background: var(--color-secondary);
  }

  .lavoro:hover {
    content: url("../img/lavori/lavoro-hover.png");
  }

  .lavoro-cat:hover {
    content: url("../img/lavori/lavoro-cat-hover.png");
  }

  /* ============================== */
  /* =========== CHI SIAMO ======== */
  /* ============================== */

  .about {
    text-align: start;
    margin: 0 1rem 6.25rem 1rem;
    position: relative;
  }

  .about p {
    margin: 1.63rem auto 2.5rem auto;
  }

  .about img {
    width: 8.1875rem;
    height: 8.1875rem;
  }

  .about h3 {
    margin: 2.5rem 0 1.25rem 0;
  }

  .gap-5 {
    gap: 2.5rem;
  }

  .star-about-1 {
    display: none;
  }

  .star-about-2 {
    display: none;
  }

  /* ============================== */
  /* ============ VALORI ========== */
  /* ============================== */

  .values {
    text-align: left;
    margin: 0 1rem 6.25rem 1rem;
  }

  .grid-values {
    grid-template-columns: repeat(1, 1fr);
    gap: 2.5rem;
    margin: 2.5rem auto 0 auto;
  }

  .grid-item {
    text-align: left;
    max-width: 25.225rem;
    display: flex;
    gap: 0.75rem;
  }

  .values img {
    width: 4.0625rem;
    height: 4.0625rem;
  }

  .values h3 {
    margin: 0.75rem 0 0 0;
  }

  .values p br {
    display: none;
  }

  /* ============================== */
  /* ============ FOOTER ========== */
  /* ============================== */
  #contattaci {
    padding: 3.75rem 1rem 2.56rem 1rem;
  }

  .footer-left {
    gap: 2.5rem;
  }

  .footer-left div h6:first-of-type {
    margin: 1.25rem 0 1rem 0;
    width: 13.375rem;
  }

  .footer-right div {
    margin-top: 1.25rem;
    gap: 1.89rem;
  }

  #logo-instagram {
    width: 2.13663rem;
    height: 2.093rem;
  }

  #logo-tiktok {
    width: 1.657rem;
    height: 1.87444rem;
  }

  #logo-footer {
    width: 1.5625rem;
    height: 1.1235rem;
  }

  .firma {
    margin: 0.5rem 0 1.25rem 0;
  }
}
