/* ================================================
   GIANTTO — Responsividade
   Arquivo: css/responsive.css
   Referenciar no HTML após style.css:
   <link rel="stylesheet" href="css/responsive.css" />
   ================================================

   BREAKPOINTS:
   1280px  → Desktop grande / widescreen
   1024px  → Desktop médio / laptop
    900px  → Tablet landscape / iPad Pro
    768px  → Tablet portrait / iPad
    480px  → Mobile grande / iPhone Plus
    360px  → Mobile pequeno / Android padrão
*/

/* ══════════════════════════════════════════════
   1280px — Desktop grande
══════════════════════════════════════════════ */
@media (max-width: 1280px) {

  /* NAVBAR */

  /* HERO */

  /* SOLUÇÕES */

  /* SERVIÇOS */

  /* EXPERTISE */

  /* QUEM SOMOS */

  /* SOBRE */

  /* FOOTER */

}

/* ══════════════════════════════════════════════
   1024px — Desktop médio / laptop
══════════════════════════════════════════════ */
@media (max-width: 1024px) {

  /* NAVBAR */

  /* HERO */

  /* SOLUÇÕES */

  /* SERVIÇOS */

  .servicos-foto__layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    justify-items: center;
  }

  .servicos-foto__intro {
    align-items: center;
    text-align: center;
    max-width: 560px;
  }

  .servicos-foto__cards-col {
    width: 100%;
    max-width: 740px;
  }

  /* EXPERTISE */

  /* QUEM SOMOS */

  /* SOBRE */

  .sobre-porque {
    padding: 56px 0 0;
  }

  .sobre-porque .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    justify-items: center;
  }

  .sobre-porque .sobre-bloco__content {
    width: 100%;
    max-width: 620px;
  }
  .sobre-porque .sobre-porque__img-wrap {
    width: 100%;
    max-width: 780px;
    margin-top: 0px;
  }

  .sobre-porque__lista {
    margin-top: 20px;
  }

  /* FOOTER */

}

/* ══════════════════════════════════════════════
   900px — Tablet landscape / iPad Pro
══════════════════════════════════════════════ */
@media (max-width: 900px) {

  .container {
    padding: 0 32px;
  }

  /* NAVBAR */

  .navbar__nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    width: 260px;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 0;
    box-shadow: -4px 8px 30px rgba(0,0,0,0.12);
    border-top: 3px solid var(--color-accent);
    max-height: calc(100dvh - var(--navbar-height));
    overflow-y: auto;
    z-index: 999;
    border-radius: 0 0 0 12px;
  }

  .navbar__nav.open {
    display: flex;
  }

  .navbar__nav a {
    width: 100%;
    padding: 14px 12px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--color-off-white);
    display: block;
  }

  .navbar__nav .has-dropdown {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .navbar__nav .has-dropdown > a {
    border-bottom: 1px solid var(--color-off-white);
  }

  .navbar__nav .btn-contato {
    width: 100%;
    text-align: center;
    margin-top: 8px;
    border-bottom: none !important;
  }

  .navbar__nav a::after {
    display: none;
  }

  .navbar__toggle {
    display: flex;
  }

  /* HERO */

  .hero {
    min-height: 460px;
  }

  .hero .container {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero__slide {
    background-position: 72% center;
  }

  .hero__slide::after {
    background: linear-gradient(
      105deg,
      rgba(30,35,40,0.88) 0%,
      rgba(30,35,40,0.82) 62%,
      rgba(43,49,55,0.45) 100%
    );
  }

  /* SOLUÇÕES */

  .solucoes {
    padding: 60px 0;
    overflow-x: clip;
  }

  .solucoes__page.active {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .solucoes__body {
    min-width: 0;
  }

  /* SERVIÇOS */

  .servicos-foto__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .servicos-foto__intro {
    align-items: center;
    text-align: center;
  }

  .servicos-foto__title,
  .servicos-foto__desc {
    max-width: 640px;
  }

  .servicos-foto__badge {
    margin-bottom: 0;
  }

  .servicos-foto__page.active {
    gap: 16px;
  }

  .servico-foto-card {
    min-height: 340px;
  }

  .servico-foto-card__body {
    padding: 16px 14px;
  }

  /* EXPERTISE */

  .expertise__bg {
    background-position: 60% center;
  }

  /* QUEM SOMOS */

  .quem-somos {
    padding: 56px 0;
  }

  .quem-somos .container {
    gap: 32px;
  }

  .quem-somos__content p {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .quem-somos__img-wrap img {
    height: 460px;
  }

  /* SOBRE */

    .sobre-cards__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .sobre-cards__grid > * {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
  }

  /* FOOTER */

  .footer__contact-list {
    display: flex;
    gap: 10px;
  }

  .footer__contact-list li {
    position: relative;
    width: 36px;
    height: 36px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    transition: background var(--transition-fast), border-color var(--transition-fast);
  }

  .footer__contact-list li:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
  }

  .footer__contact-list li:hover i {
    color: #fff;
  }

  .footer__contact-list li a {
    position: absolute;
    inset: 0;
    font-size: 0;
  }

}

/* ══════════════════════════════════════════════
   768px — Tablet portrait / iPad
══════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* NAVBAR */

  /* HERO */

  .hero {
    min-height: 420px;
  }

  .hero__slide {
    background-position: 78% center;
  }

  .hero__slide::after {
    background: linear-gradient(
      120deg,
      rgba(30,35,40,0.92) 0%,
      rgba(30,35,40,0.86) 75%,
      rgba(43,49,55,0.55) 100%
    );
  }

  /* SOLUÇÕES */

  .solucoes {
    padding: 60px 0;
    overflow-x: clip;
  }

  .solucoes__page.active {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .solucoes__body {
    min-width: 0;
  }

  /* SERVIÇOS */

  /* EXPERTISE */

  .expertise__panel-lista {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .expertise__bg {
    background-size: 115% auto;
    background-repeat: no-repeat;
    background-position: center top;
    background-color: #14181c;
    filter: grayscale(35%);
  }

  .expertise__overlay {
    background: linear-gradient(
      180deg,
      rgba(20,24,28,0.60) 0,
      rgba(20,24,28,0.78) 28vw,
      rgba(20,24,28,0.92) 44vw,
      rgba(20,24,28,0.97) 100%
    );
  }

  /* QUEM SOMOS */

  /* SOBRE */

  .sobre-bloco:not(.sobre-porque) .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    justify-items: center;
  }

  .sobre-bloco:not(.sobre-porque) .sobre-bloco__content,
  .sobre-bloco__img-wrap {
    width: 100%;
    max-width: 620px;
  }

  .sobre-bloco__img-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

    .sobre-cards__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .sobre-cards__grid > * {
    max-width: 620px;
    width: 100%;
    margin: 0 auto;
  }

  .sobre-card {
    padding: 28px 24px;
  }

  /* FOOTER */

  .footer {
    padding-top: 36px;
    padding-bottom: 28px;
  }

  .footer__grid {
    grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 48px;
    row-gap: 0;
  }

  .footer__brand {
    grid-area: auto;
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
  }

  .footer__brand-logo { margin-bottom: 0; }

  .footer__side {
    display: flex;
    flex-direction: column;
  }

  .footer__col--ref { display: block; }

  .footer__block + .footer__block { margin-top: 0; }

  .footer__col-title,
  .footer__col-title:not(:first-child) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 17px 2px;
    border-top: 1px solid var(--footer-border);
    cursor: pointer;
    user-select: none;
  }

  .footer__col-title::after {
    content: '';
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    margin-right: 6px;
    border-right: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    transform: translateY(-3px) rotate(45deg);
    transition: transform var(--transition-fast);
  }

  .footer__col-title.is-open::after {
    transform: translateY(2px) rotate(-135deg);
  }

  .footer__acc-panel {
    overflow: hidden;
    max-height: 0;
    padding: 0;
    transition: max-height 0.3s ease;
  }

  .footer__nav li:last-child,
  .footer__contact-list li:last-child {
    margin-bottom: 16px;
  }

  .footer__social {
    margin-top: 0;
  }

  .footer__social a {
    margin-bottom: 18px;
  }

  .footer__contact-list li a { overflow-wrap: anywhere; }

}

 /* Politica de Privacidade */

.legal {
    padding: 48px 0 60px;
  }

  .legal__content h2 {
    margin-top: 30px;
  }

/* ══════════════════════════════════════════════
   480px — Mobile grande / iPhone Plus
══════════════════════════════════════════════ */
@media (max-width: 480px) {

  .container {
    padding: 0 20px;
  }

  /* TOPBAR */

  .hide-xs {
    display: none;
  }

  .topbar {
    font-size: 0.72rem;
  }

  .topbar .container {
    justify-content: center;
    gap: 8px 16px;
  }

  /* NAVBAR */
 .navbar__logo-img { height: 66px; }   /* base: 76px */


  .navbar__nav {
    width: 100%;
    border-radius: 0;
  }

    .navbar__nav {
    padding: 8px;
  }

  .navbar__nav a {
    padding: 11px 12px;
    font-size: 0.88rem;
  }

  .navbar__nav .btn-contato {
    padding: 10px 18px !important;
    margin-top: 6px;
  }

  /* HERO */

  .hero {
    min-height: 400px;
  }

  .hero .container {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero__content {
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 0;
  }

  .hero__title2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .hero__desc {
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 26px;
  }

  .hero__slide {
    background-position: 82% center;
  }

  /* SOLUÇÕES */

  .solucoes__page.active {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 28px;
  }

  .solucoes__card {
    padding: 20px 18px;
    gap: 14px;
  }

  .solucoes__body p {
    font-size: 0.85rem;
  }

  /* SERVIÇOS */

  .servicos-foto__page.active {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .servico-foto-card {
    min-height: 240px;
  }

  .servico-foto-card__img {
    object-position: center 22%;
  }

  .servico-foto-card__body {
    padding: 20px;
  }

  .servico-foto-card__body h3 {
    min-height: 0;
    display: block;
    font-size: 1.15rem;
    margin-bottom: 8px;
  }

  .servico-foto-card__body p {
    font-size: 0.9rem;
  }

  .servicos-foto__page[data-page="0"] .servico-foto-card:first-child .servico-foto-card__img {
    object-position: center 8%;
  }

  /* EXPERTISE */

  .expertise__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .expertise__content-wrap {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-left: 0;
    padding-top: 26px;
  }

  .expertise__title {
    display: block;
  }

  .expertise__tab-btn {
    padding: 13px 16px;
  }

  .expertise__bg {
    background-size: 165% auto;
    background-repeat: no-repeat;
    background-position: center top;
    background-color: #14181c;
    filter: grayscale(30%);
  }

  .expertise__overlay {
    background: linear-gradient(
      180deg,
      rgba(20,24,28,0.58) 0,
      rgba(20,24,28,0.72) 40vw,
      rgba(20,24,28,0.88) 62vw,
      rgba(20,24,28,0.96) 74vw,
      rgba(20,24,28,0.97) 100%
    );
  }

  /* QUEM SOMOS */

  .quem-somos {
    padding: 44px 0;
  }

  .quem-somos .container {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .quem-somos__visual {
    display: none;
  }

  .quem-somos__content {
    text-align: center;
  }

  .quem-somos__content .section__title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .quem-somos__content p {
    font-size: 0.92rem;
  }

  /* SOBRE */

    .sobre-porque__img-wrap {
    display: none;
  }

    .sobre-porque {
    padding: 56px 0;
  }

  

  /* FOOTER */

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
    row-gap: 0;
  }

  .footer__brand {
    grid-column: 1;
    grid-row: 1;
    align-self: auto;
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
  }

  .footer__col--menu       { grid-column: 1; grid-row: 2; }
  .footer__block--ref      { grid-column: 1; grid-row: 3; }
  .footer__block--servicos { grid-column: 1; grid-row: 4; }
  .footer__col--solucoes   { grid-column: 1; grid-row: 5; }
  .footer__col--contato    { grid-column: 1; grid-row: 6; }

   .footer__brand-logo img {
    height: 130px;                      /* base: 140px */
    max-width: 100%;
  }

  .footer__bottom {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 18px 0 6px;
  }

   /* Politica de Privacidade */

.legal__content p {
    font-size: 0.9rem;
    line-height: 1.75;
  }

  .legal__box {
    padding: 18px 20px;
  }

  /* Pagina 404 */

  .erro404 {
    padding: 60px 0 70px;
  }

  .erro404__actions {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 40px;
  }

  .erro404__actions .btn {
    justify-content: center;
  }

  .erro404__links ul {
    flex-direction: column;
    gap: 12px;
  }

}

/* ══════════════════════════════════════════════
   360px — Mobile pequeno / Android padrão
══════════════════════════════════════════════ */
@media (max-width: 360px) {

  /* TOPBAR */

  .topbar {
    font-size: 0.66rem;
    padding: 6px 0;
  }

  .topbar .container {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .hide-xs {
    display: flex;
  }

  .topbar__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    min-width: 0;
  }

  .topbar__contacts a {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }

  .topbar__social {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
  }

  /* NAVBAR */

  .navbar__logo-img { height: 56px; }   /* base: 76px */

    .navbar__nav {
    padding: 6px;
  }

  .navbar__nav a {
    padding: 9px 10px;
    font-size: 0.84rem;
  }

  /* HERO */

  .hero {
    min-height: 380px;
  }

  .hero .container {
    padding-top: 30px;
    padding-bottom: 66px;
  }

  .hero__dots {
    bottom: 20px;
  }

  .hero__slide {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .hero__slide:nth-of-type(1) { background-image: url('../images/hero-bg-1-mobile.webp') !important; }
  .hero__slide:nth-of-type(2) { background-image: url('../images/hero-bg-2-mobile.webp') !important; }
  .hero__slide:nth-of-type(3) { background-image: url('../images/hero-bg-3-mobile.webp') !important; }

  .hero__slide::after {
    background: linear-gradient(
      135deg,
      rgba(30,35,40,0.94) 0%,
      rgba(30,35,40,0.90) 78%,
      rgba(43,49,55,0.62) 100%
    );
  }

  /* SOLUÇÕES */

  .solucoes .section__title {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.35rem;
    text-wrap: balance;
    padding-bottom: 12px;
  }

  .solucoes .section__title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* SERVIÇOS */

  /* EXPERTISE */

  /* QUEM SOMOS */

  /* SOBRE */

    .sobre-bloco:not(.sobre-porque) .sobre-bloco__content {
    text-align: center;
  }

  /* FOOTER */

    .footer__brand-logo img {
    height: 120px;                      /* base: 140px */
    max-width: 100%;
  }
  
  .footer__bottom {
    font-size: 0.72rem;
    line-height: 1.5;
    gap: 8px;
    padding: 16px 0 4px;
  }

  .footer__bottom > span {
    text-wrap: balance;
  }
}