/*
Theme Name: Código Seguro
Theme URI: https://codigoseguro.com.br
Author: Tai
Description: Tema limpo e compatível com Elementor — substituto do Hello Theme
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: codigo-seguro
Tags: elementor, full-width, custom-header, custom-footer
*/

/* ── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: inherit;
    line-height: 1.6;
    background: #fff;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* ── Elementor: full width sem gaps ──────────── */
.elementor-section.elementor-section-stretched {
    left: 0 !important;
    width: 100% !important;
}

/* Zerando margens que atrapalham o Elementor */
.cs-main {
    margin: 0;
    padding: 0;
}

/* ── Elementor: canvas / full-page ───────────── */
body.elementor-page .cs-main,
body.elementor-page #main {
    margin: 0;
    padding: 0;
}

/* ── Links ───────────────────────────────────── */
a {
    color: inherit;
    text-decoration: none;
    transition: opacity .2s;
}

/* ── Imagens ──────────────────────────────────── */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== FLOAT_CUBE ===== */
.float_cube {
  width: 160px;
  height: 160px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.18),
    0 2px 8px rgba(0, 0, 0, 0.10);
  animation: floatCube 3.2s ease-in-out infinite;
  will-change: transform;
}

.float_cube img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes floatCube {
  0%   { transform: translateY(0px)   rotate(0deg);    box-shadow: 0 8px  24px rgba(0,0,0,0.18), 0 2px 8px  rgba(0,0,0,0.10); }
  25%  { transform: translateY(-14px) rotate(1.5deg);  box-shadow: 0 22px 40px rgba(0,0,0,0.14), 0 6px 16px rgba(0,0,0,0.08); }
  50%  { transform: translateY(-20px) rotate(0deg);    box-shadow: 0 28px 48px rgba(0,0,0,0.12), 0 8px 20px rgba(0,0,0,0.07); }
  75%  { transform: translateY(-14px) rotate(-1.5deg); box-shadow: 0 22px 40px rgba(0,0,0,0.14), 0 6px 16px rgba(0,0,0,0.08); }
  100% { transform: translateY(0px)   rotate(0deg);    box-shadow: 0 8px  24px rgba(0,0,0,0.18), 0 2px 8px  rgba(0,0,0,0.10); }
}

/* ── WP Core: remover margens padrão ─────────── */
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1,h2,h3,h4,h5,h6 {
    margin: 0 0 .5em;
    line-height: 1.2;
    font-weight: 700;
}

ul, ol { margin: 0; padding: 0; list-style: none; }

/* ── Admin bar offset ─────────────────────────── */
@media screen and (min-width: 783px) {
    html body.admin-bar { margin-top: 0 !important; }
}
