/*
Theme Name: Privia
Author: Cupioli Davide
Author URI: https://cupiolistudio.it
Description: FSE theme for WordPress.
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
Version: 1.0.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: privia
Tags: full-site-editing, block-patterns, block-styles, custom-colors, editor-style, wide-blocks

Privia WordPress Theme, (C) 2025 Cupioli Davide
Privia is distributed under the terms of the GNU GPL.
*/

/* CSS Reset
---------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

b,
strong {
  font-weight: var(--wp--custom--font-weight--semi-bold);
}

ol,
ul {
  padding: 0;
}

ol:where(:not([class*="wp-block"])),
ol:where(.wp-block-list),
ul:where(:not([class*="wp-block"])),
ul:where(.wp-block-list) {
  padding-inline-start: var(--wp--preset--spacing--medium);
}

div[class*="wp-block-"] figcaption {
  color: var(--wp--preset--color--secondary);
  font-size: var(--wp--preset--font-size--x-small);
  margin-bottom: 0;
  margin-top: 20px;
  text-align: center;
}

img,
figure {
  max-width: 100%;
  height: auto;
}
:root :where(a:where(:not(.wp-element-button)):focus) {
  text-decoration: none;
}
/* Standardize form styling
--------------------------------------------- */

input,
button,
textarea,
select {
  font: inherit;
}

input[type="button"],
input[type="email"],
input[type="search"],
input[type="submit"],
input[type="text"],
textarea {
  -webkit-appearance: none;
  appearance: none;
}

input:not([type="submit"]),
select,
textarea,
.wp-block-post-comments-form input:not([type="submit"]):not([type="checkbox"]),
.wp-block-post-comments-form textarea {
  color: var(--wp--preset--color--basecolor);
  border-radius: 5px;
  border: solid 1px var(--wp--preset--color--primary);
  padding: 0.5em 1em;
  font-size: var(--wp--preset--font-size--font-p);
  background-color: #fff;
}

input:focus-visible,
textarea:focus-visible {
  outline-color: var(--wp--preset--color--primary);
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
  width: auto;
}

label {
  width: 100%;
  display: block;
}

::placeholder {
  color: var(--wp--preset--color--secondary);
  font-size: var(--wp--preset--font-size--font-p);
  opacity: 0.75;
}
.wp-block-search__button {
  border: none;
  color: var(--wp--preset--color--basecolor);
  transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}
.wp-block-search__button:hover {
  background-color: var(--wp--preset--color--hover);
  color: #fff;
}
.wp-block-search .wp-block-search__label {
  display: none;
}
/* Helper styles
---------------------------------------------------------------------------- */

/* ------- scroll top ------- */
#top {
  position: fixed;
  display: grid;
  place-content: center;
  bottom: 0;
  right: 3vw;
  border-radius: 8px 8px 0 0;
  background-color: var(--wp--preset--color--primary);
  height: 35px;
  width: 50px;
  cursor: pointer;
}
#top svg {
  height: 20px;
  width: 20px;
  stroke: #fff;
}
/* ------- sidebar ------- */

.site-aside {
  position: sticky;
  top: 80px;
}
.wp-block-latest-posts__post-title {
  display: flex;
  margin-bottom: 0.5rem;
  margin-top: 1.5rem;
  transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}
.wp-block-latest-posts.wp-block-latest-posts__list li a {
  text-decoration: none;
}
.wp-block-latest-posts__post-author,
.wp-block-latest-posts__post-date {
  color: var(--wp--preset--color--accent);
  font-weight: 700;
  font-size: 12px;
  transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}
.wp-block-latest-posts__post-author:hover,
.wp-block-latest-posts__post-date:hover {
  color: var(--wp--preset--color--button);
}

.wp-block-post-navigation-link a {
  text-decoration: none !important;
  color: var(--wp--preset--color--primary);
}
.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-previous,
.wp-block-post-navigation-link .wp-block-post-navigation-link__arrow-next {
  color: var(--wp--preset--color--button);
}

/* ------- icon footer ------- */
.site-footer .footer-arrow-icon img {
  background-color: var(--wp--preset--color--primary);
}
